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

How can I include this package into exe by pyinstaller #14

Open
52manhua opened this issue Oct 17, 2018 · 6 comments
Open

How can I include this package into exe by pyinstaller #14

52manhua opened this issue Oct 17, 2018 · 6 comments

Comments

@52manhua
Copy link

Thank you for developing this module.

But now I have a problem, maybe it has little to do with the project itself, and if someone like me has the same problem, maybe we can all get help.
It's about pyinstaller.

I try to put the package file in the same folder of pyw file,
or use the command:
pyinstaller --hidden-import=infi.systray usbdbp.pyw
also I tried:
pyinstaller usbdbp.pyw -p D:\Python27\Lib\site-packages

There is no way to solve this problem.

btw: My development environment is
95 INFO: PyInstaller: 3.1
95 INFO: Python: 2.7.12
96 INFO: Platform: Windows-7-6.1.7601-SP1

Thx for any help~

@vudinhtuanhut
Copy link

@52manhua : You may refer to the instruction of @activatedtmx in the following report.
I follwed him and it's nice. 👍

#13

@kevcallahan
Copy link

I used this -
pyinstaller --hidden-import pkg_resources --hidden-import infi.systray --onefile --noconsole test.py

@52manhua
Copy link
Author

Thank you, I will try it.

@52manhua : You may refer to the instruction of @activatedtmx in the following report.
I follwed him and it's nice.

#13

I used this -
pyinstaller --hidden-import pkg_resources --hidden-import infi.systray --onefile --noconsole test.py

@AngarosGamer
Copy link

@kevcallahan You are an absolute legend

@cholojuanito
Copy link

Probably about time to close this issue if it was resolved

@bmrussell
Copy link

@kevcallahan 's fix worked for me too . Probably worth including this in the README.md

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

6 participants