This is my development environment:
- Windows 7 on an HP Pavilion 64-bit laptop.
- Python 2.7, 32-bit in folder C: \ python27
- The development environment is Eclipse with PyDev, but that doesn't seem to matter, because I get the same failure if I use Anaconda or Notepad ++.
- Python 2.7 Binary Installer for Windows - 32-bit v3.5.3 After installing the PATH environment on Windows for Python, BLPAPI finds and installs in C: \ Python27, creating
C:\Python27\Lib\site-packages\blpapi .
Earlier in my 32-bit installation of Python and BLPAPI, I tried 64-bit Python 2.7 with a 64-bit installation of BLPAPI, but the results are the same for 64-bit or 32-bit.
My Python script does not work on this line: import blpapi
PyDev generates this error code:
Traceback (most recent call last): File "C:\Users\Greg\workspace2\Bloomberg\src\TestImport.py", line 1, in <module> import blpapi File "C:\Python27\lib\site-packages\blpapi\__init__.py", line 5, in <module> from .internals import CorrelationId File "C:\Python27\lib\site-packages\blpapi\internals.py", line 50, in <module> _internals = swig_import_helper() File "C:\Python27\lib\site-packages\blpapi\internals.py", line 46, in swig_import_helper _mod = imp.load_module('_internals', fp, pathname, description) ImportError: DLL load failed: The specified module could not be found.
source share