doomedraven / VirusTotalApi

VirusTotal Full api
MIT License
290 stars 85 forks source link

WindowsError: [Error 126] The specified module could not be found #25

Closed SackOfHacks closed 6 years ago

SackOfHacks commented 6 years ago

When I run vt.exe on windows 10, I get the following error:

Traceback (most recent call last): File "C:\Python27\Scripts\vt-script.py", line 11, in load_entry_point('vt==3.0.0', 'console_scripts', 'vt')() File "C:\Python27\lib\site-packages\pkg_resources__init.py", line 587, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Python27\lib\site-packages\pkg_resources__init.py", line 2800, in load_entry_point return ep.load() File "C:\Python27\lib\site-packages\pkg_resources__init__.py", line 2431, in load return self.resolve() File "C:\Python27\lib\site-packages\pkg_resources\init.py", line 2437, in resolve module = import__(self.module_name, fromlist=['name'], level=0) File "C:\Python27\lib\site-packages\vt-3.0.0-py2.7.egg\vt\main.py", line 8, in from .vt import main File "C:\Python27\lib\site-packages\vt-3.0.0-py2.7.egg\vt\vt.py", line 72, in import magic File "C:\Python27\lib\site-packages\magic.py", line 159, 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

So far I tried reinstalling the vt module, updating required modules and reinstalling python. Without success.

doomedraven commented 6 years ago

hello thanks for reporting but why vt.exe that doesn't exist, you should exec it as python vt.py i don't test a lot windows, well not test at all, bcz i don't use it

doomedraven commented 6 years ago

apart of that check if magic module is installed, bcz it looks like missed dependency

SackOfHacks commented 6 years ago

Thanks for responding doomdraven.

vt.exe is created by setup.py when run on a windows system.

I tested the python script with the same results:

C:\Python27\Scripts> python .\vt-script.py Traceback (most recent call last): File ".\vt-script.py", line 11, in load_entry_point('vt==3.0.0', 'console_scripts', 'vt')() File "C:\Python27\lib\site-packages\pkg_resources__init.py", line 587, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Python27\lib\site-packages\pkg_resources__init.py", line 2800, in load_entry_point return ep.load() File "C:\Python27\lib\site-packages\pkg_resources__init__.py", line 2431, in load return self.resolve() File "C:\Python27\lib\site-packages\pkg_resources\init.py", line 2437, in resolve module = import__(self.module_name, fromlist=['name'], level=0) File "C:\Python27\lib\site-packages\vt-3.0.0-py2.7.egg\vt\main.py", line 8, in from .vt import main File "C:\Python27\lib\site-packages\vt-3.0.0-py2.7.egg\vt\vt.py", line 72, in import magic File "C:\Python27\lib\site-packages\magic.py", line 159, 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

You put me on the right track with the magic module dependency requirement. After I reinstalled the file-magic and python-magic modules the script now works.

Thanks and keep up the great work.

doomedraven commented 6 years ago

cool glad to hear that, closing al solved, feel free to reopen if needed