Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python-magic exceptions #36

Closed
adimenia opened this issue Jul 15, 2013 · 1 comment
Closed

Python-magic exceptions #36

adimenia opened this issue Jul 15, 2013 · 1 comment

Comments

@adimenia
Copy link

hello

ive installed python magic on a winxp sp3 32bit. ive tried testing it with a few sample code lines featured in README:
import magic
magic.from_file("bot.exe")
magic.from_buffer(open("bot.exe").read(1024))
magic.from_file("bot.exe", mime=True)

when im running the script im getting the following exception:
Traceback (most recent call last):
File "magic test.py", line 2, in
magic.from_file("bot.exe")
File "build\bdist.win32\egg\magic.py", line 99, in from_file
File "build\bdist.win32\egg\magic.py", line 96, in _get_magic_type
File "build\bdist.win32\egg\magic.py", line 89, in _get_magic
File "build\bdist.win32\egg\magic.py", line 51, in init
File "build\bdist.win32\egg\magic.py", line 138, in errorcheck
magic.MagicException: could not find any magic files!

must be something in the module!
any ideas?

@ahupp
Copy link
Owner

ahupp commented Sep 27, 2013

Some libmagic installs on windows do not work out of the box. See the section of the readme that starts with "'MagicException: could not find any magic files!'"

@ahupp ahupp closed this as completed Sep 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants