Closed john012343210 closed 4 years ago
This is unrelated to pdblp
and is a problem with installing blpapi
due to improperly set environment variables. I would suggest installing pdblp
using conda
from the conda-forge
channel which will also properly handle blpapi
configuration, i.e. conda install -c conda-forge pdblp
Installation problem by
pip install
ImportError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\blpapi\internals.py in swig_import_helper() 38 try: ---> 39 return importlib.import_module(mname) 40 except ImportError:
~\Anaconda3\lib\importlib__init__.py in import_module(name, package) 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128
~\Anaconda3\lib\importlib_bootstrap.py in _gcd_import(name, package, level)
~\Anaconda3\lib\importlib_bootstrap.py in _find_andload(name, import)
~\Anaconda3\lib\importlib_bootstrap.py in _find_and_loadunlocked(name, import)
~\Anaconda3\lib\importlib_bootstrap.py in _load_unlocked(spec)
~\Anaconda3\lib\importlib_bootstrap.py in module_from_spec(spec)
~\Anaconda3\lib\importlib_bootstrap_external.py in create_module(self, spec)
~\Anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\blpapi__init__.py in
5 try:
----> 6 from .internals import CorrelationId
7 except ImportError as error:
~\Anaconda3\lib\site-packages\blpapi\internals.py in
41 return importlib.import_module('_internals')
---> 42 _internals = swig_import_helper()
43 del swig_import_helper
~\Anaconda3\lib\site-packages\blpapi\internals.py in swig_import_helper() 40 except ImportError: ---> 41 return importlib.import_module('_internals') 42 _internals = swig_import_helper()
~\Anaconda3\lib\importlib__init__.py in import_module(name, package) 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128
ModuleNotFoundError: No module named '_internals'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)