Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load failed while importing openlimits_python #13

Open
Bi0max opened this issue Mar 15, 2021 · 4 comments
Open

ImportError: DLL load failed while importing openlimits_python #13

Bi0max opened this issue Mar 15, 2021 · 4 comments

Comments

@Bi0max
Copy link

Bi0max commented Mar 15, 2021

I have installed the wheel on Windows 10, but it gives an error, when importing:

Error
Traceback (most recent call last):
  File "C:\Users\Maksim\Miniconda3\envs\arb32\lib\unittest\case.py", line 60, in testPartExecutor
    yield
  File "C:\Users\Maksim\Miniconda3\envs\arb32\lib\unittest\case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "C:\Users\Maksim\Miniconda3\envs\arb32\lib\unittest\case.py", line 633, in _callTestMethod
    method()
  File "C:\Users\Maksim\Miniconda3\envs\arb32\lib\unittest\loader.py", line 34, in testFailure
    raise self._exception
ImportError: Failed to import test module: test_nash
Traceback (most recent call last):
  File "C:\Users\Maksim\Miniconda3\envs\arb32\lib\unittest\loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "D:\projects\arbitrage_trader\arbitrage_trader\tests\exchange\test_nash.py", line 4, in <module>
    from openlimits_python import ExchangeClient
ImportError: DLL load failed while importing openlimits_python: The specified module could not be found.
@notdanilo
Copy link
Contributor

@Bi0max have you verified that you have gmp.dll installed?

@Bi0max
Copy link
Author

Bi0max commented Mar 25, 2021

@notdanilo, yes, I put it to C:\Users\XXX\.rustup\toolchains\nightly-i686-pc-windows-msvc\lib\rustlib\i686-pc-windows-msvc\lib, as described in the link, that you provided here nash-io/openlimits#167. Without putting it there, it would not even compile.
Should I put it somewhere else as well to be able to import the library?

@notdanilo
Copy link
Contributor

@Bi0max I just realized this is not related to gmp.dll. It is not finding openlimits_python.dll produced by maturin build.

@notdanilo
Copy link
Contributor

@Bi0max fyi I will try to replicate this issue on my Windows machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants