ahupp / python-magic

A python wrapper for libmagic
Other
2.6k stars 280 forks source link

Error: The specified module could not be found #277

Closed mnjagadeesh closed 2 years ago

mnjagadeesh commented 2 years ago

I am using python-magic-0.4.12 I am getting this error. File "d:\XXX\YY\modules\sentinel_build\eggs\python_magic-0.4.12-py2.7.egg\magic.py", line 154, in libmagic = ctypes.CDLL(dll) File "C:\Python27\lib\ctypes__init.py", line 366, in init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found

when I tried to print dll I got c:\python27\magic

What am I missing and how to fix it?

mnjagadeesh commented 2 years ago

I added python in path. It was causing issue. now I adjusted path. It is fine. Sorry about this.