libmagic library issue - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: libmagic library issue (/thread-14070.html) |
libmagic library issue - Sudhakar - Nov-13-2018 have installed python 2.7.15 (32 bit) on windows 2012 R2 -64 bit server. we have installed elastalert which install magic & liblogic modules. when I run the elastalert process , its giving following error. got something in google and copied files from https://github.com/pidydx/libmagicwin64 and placed into c:\windows\system32 folder. still getting same error.the mail problem I see is python is not finding the copied dlls >>> os.path.exists("C:\\Windows\\syswow64\\magic1.dll") Falseif I copy these files to C:\windows\syswow64 folder, python is able to find the file from system32. >>> os.path.exists("C:\\Windows\\syswow64\\magic1.dll") True >>> ctypes.util.find_library('magic1') 'C:\\Windows\\system32\\magic1.dll'when I run the import magic, its giving following error >>> import magic Can anyone please suggest?
|