-
Notifications
You must be signed in to change notification settings - Fork 93
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
docx2pdf not found when building using pyinstaller #5
Comments
@prickett sorry I don't have much experience with pyinstaller. If you include an easily reproducible example I can try and take a look |
pyinstaller is missing save
Run pyinstaller — onefile youscript.py |
@acrete s solution works. here detailed> |
this solution seemed to work for me if I dont select onefile option. However when i do select onefile my exe just shows a blank console with nothing running? |
@acrete Your solution worked perfectly! Thanks. |
glad ya'll got it working! I'm not super familiar with PyInstaller, but is there something I can do on the library side to make it easier? |
@AlJohri I'm not super familiar with PyInstaller either, so I don't have any suggestions at the moment. Docx2pdf works like a charm and suited perfectly for our project. Thank you for sharing your work! |
There is an error in the docx2pdf code. It is about the version. It does not seem that there is a version. A friend helped me to solve this by setting version =1 where it says #version = version(package). The version was set as followed: version = 1 and this solved the problem I had. |
hi @KieuHa! I don't believe this is an error. There certainly is a version that is being set dynamically using Line 3 in 269757c
However, it looks like pyinstaller require hardcoding this value based on these issues?
Would you mind sending the specific error / stacktrace you receive when the version is dynamically set? |
https://stackoverflow.com/questions/66676982/pyinstaller-doesnt-recognize-docx2pdf-library The answer here worked for me, pyinstaller works fine after commenting out those lines. |
try: |
|
I'm trying to build my project using pyinstaller and am running into a "library not found" error for docx2pdf. I'm not sure what is causing this problem. Have you used pyinstaller with docx2pdf? And if so, have you had the same problem?
The text was updated successfully, but these errors were encountered: