Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTypeError: an integer is required (got type bytes) when compiling any script #4265
Comments
This comment has been minimized.
This comment has been minimized.
Note that i was using Python 3.8. |
This comment has been minimized.
This comment has been minimized.
Seems like this is constructing a code object and could be due to PEP 570 implementation : python/cpython#12701
|
This comment has been minimized.
This comment has been minimized.
I have the exact same error, using python3.8.0 and pyinstaller 3.5 |
This comment has been minimized.
This comment has been minimized.
Bump
|
This comment has been minimized.
This comment has been minimized.
Me too. Exactly same error. Python 3.8.0 and PyInstaller 3.5 |
This comment has been minimized.
This comment has been minimized.
I'm also seeing this error. I'm using pyenv 1.2.13 to create a python 3.8.0 environment (
Not sure if it helps at all, but the issue also occurs when UPX is installed.
|
This comment has been minimized.
This comment has been minimized.
请问你解决了?我也是Python3.8 +3.5报同样的错误,哪怕最简单的 print "hell oworld" 编译为exe都报错 |
This comment has been minimized.
This comment has been minimized.
I have the same problem with Python 3.8 |
This comment has been minimized.
This comment has been minimized.
Direct install the latest version can compatible with python 3.8 |
This comment has been minimized.
This comment has been minimized.
use python 3.7.5 is ok. |
This comment has been minimized.
This comment has been minimized.
Same here, but fixed with latest development version provided by shuax. |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Thanks) |
This comment has been minimized.
This comment has been minimized.
Thank you @shuax , it worked! I thought that the error was caused by the pickled file that would have to be somehow "linked", but actually it's enough to just put them together in the same directory. Thank you again. |
This comment has been minimized.
This comment has been minimized.
Thank you @shuax , it is ok |
This comment has been minimized.
This comment has been minimized.
Gracias ! |
This comment has been minimized.
This comment has been minimized.
Seeing as how the dev version currently fixes this error that everyone with Python 3.8 will come across, it should probably be released as soon as possible. |
This comment has been minimized.
This comment has been minimized.
Fortunately, until then, it's not too difficult to find this thread. |
This comment has been minimized.
This comment has been minimized.
thanks a lot man! |
This comment has been minimized.
This comment has been minimized.
Closing as invalid. Python 3.8 is not yet supported. |
This comment has been minimized.
This comment has been minimized.
@ghazias I guess this thread will now be a bit harder to find with it being closed, and the question marked as invalid and not supported, even though the archived version supports it :p |
This comment has been minimized.
This comment has been minimized.
For anyone coming here experiencing this problem even if they are not running Python 3.8, I wanted to mention that I experience this same error with Python 3.7.4 on a macOS 10.13 system. Similarly to other people above, the problem goes away if I install the dev version as suggested by shuax above. |
This comment has been minimized.
This comment has been minimized.
Hello, can I perhaps suggest that this gets tagged as "3.8 defects" rather than close outright. As a maintainer/owner you can do of course whatever you want, but closing a defect for what is a likely common issue for many perhaps could be reconsidered? Much love |
This comment has been minimized.
This comment has been minimized.
WFM with this |
This comment has been minimized.
This comment has been minimized.
Worked like a charm! |
This comment has been minimized.
This comment has been minimized.
Seeing the same TypeError as everyone else after upgrading Python to 3.8 from 3.7.5. Fixed with latest dev version. Windows user, so had to modify it to:
To some, it may seem obvious to change the extension. I wouldn't have thought of it a few months ago, though. |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks very much.I hope this newest version could be uploaded to PYPI(pip) as soon as possibble!Thanks |
This comment has been minimized.
This comment has been minimized.
Huge thanks, this helped a lot! |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Thank you so much, bro! This was giving me too much headache since 3 months ago! |
This comment has been minimized.
This comment has been minimized.
You can install direct from a git hash if you'd rather not float over develop: Latest as of this writing: |
When i compile any script using pyinstaller i get
TypeError: an integer is required (got type bytes)
i tried both with and without UPX, still the same error, i even tried installing the latest dev builds and it's still the same error.
Here's the log: