Import error
See original GitHub issueHi Marin,
I have encountered the following error when importing quspin:
~\Anaconda3\envs\quspin_env\lib\site-packages\quspin\basis\basis_1d\_basis_1d_core\__init__.py in <module>
----> 1 from . import hcp_basis,hcp_ops
2 from . import boson_basis,boson_ops
3 from . import spf_basis,spf_ops
quspin\basis\basis_1d\_basis_1d_core\sources/hcp_bitops.pyx in init quspin.basis.basis_1d._basis_1d_core.hcp_basis()
ImportError: DLL load failed: The specified procedure could not be found.
This happened when I imported the Matlab engine API for python before importing quspin. However, if I import quspin first, then everything is alright.
Best
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >Python Import Error (ModuleNotFoundError) - Finxter
Python's ImportError ( ModuleNotFoundError ) indicates that you tried to import a module that Python doesn't find. It can usually be eliminated by...
Read more >Python Exception Handling: ImportError and ... - Airbrake Blog
The ImportError is raised when an import statement has trouble successfully importing the specified module. Typically, such a problem is due to ...
Read more >import error: 'No module named' *does* exist - python
I set the PYTHONPATH to '.' and that solved it for me. export PYTHONPATH='.' For a one-liner you could as easily do: PYTHONPATH='....
Read more >How to catch ImportError Exception in Python? - Tutorialspoint
ImportError is raised when a module, or member of a module, cannot be imported. There are a two conditions where an ImportError might...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😦 – I don’t have access to matlab for osx. From your message, it looks like reverting the order of imports does the job, though.
Closing due to lack of activity.