Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Need help.

I have a python program which uses python-magic. When I run interactively, it runs as expected. When I compile the program with pyinstaller - it executes fine.

but I need to compile the program with py2exe. but when I compile the program with py2exe and run the program

Traceback (most recent call last):
  File "filemonitor13.py", line 24, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "magic\__init__.pyc", line 1, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "magicmagic.pyc", line 189, in <module>
ImportError: failed to find libmagic.  Check your installation

I am using python 9.1. I need help as all our program are compiled with py2exe, I need to execute exe compiled by py2exe


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
421 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...