I get the following error when running code containing pytables:
Traceback (most recent call last):
File "C:\Users\pierr\python354\lib\site-packages\pandas\io\pytables.py", line 469, in __init__
import tables # noqa
File "C:\Users\pierr\python354\lib\site-packages\tables\__init__.py", line 90, in <module>
from .utilsextension import (
ImportError: DLL load failed: The specified procedure could not be found.
...
File "C:\Users\pierr\python354\lib\site-packages\pandas\io\pytables.py", line 472, in __init__
'importing'.format(ex=str(ex)))
ImportError: HDFStore requires PyTables, "DLL load failed: The specified procedure could not be found." problem importing
python version 3.5.4 | tables version 3.4.2 | windows 10
I had a similar problem. When I tried to run the following code:
I got an error:
Even though the
pytablesmodule was installed using both conda and pip (with last, of course astables), the error still persisted. Theimport tablesdidn't work either:"Не найден указанный модуль"means"The specified module was not found"in Russian.I climbed into the folder where the last module from the Traceback is located - '~\AppData\Roaming\Python\Lib\site-packages\tables' and found file named
utilsextension.cp37-win_amd64.pydthere. Then I downloadedDependency Walkerutility and looked at this file. The program said it couldn't findpytables_hdf5.dll. I found this file in the folder~\AppData\Roaming\Python\Lib\site-packages\tables\and added it to a PATH variable by:After that everything worked,
import tablesandpd.read_hdfreturn no more errors. Hope this is useful to someone.