- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2k
TypeError: an integer is required (got type bytes) when compiling any script #4265
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
Comments
Note that i was using Python 3.8. |
Seems like this is constructing a code object and could be due to PEP 570 implementation : python/cpython#12701
|
I have the exact same error, using python3.8.0 and pyinstaller 3.5 |
Bump
|
Me too. Exactly same error. Python 3.8.0 and PyInstaller 3.5 |
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.
|
请问你解决了?我也是Python3.8 +3.5报同样的错误,哪怕最简单的 print "hell oworld" 编译为exe都报错 |
I have the same problem with Python 3.8 |
Direct install the latest version can compatible with python 3.8 |
use python 3.7.5 is ok. |
Same here, but fixed with latest development version provided by shuax. |
Thank you! |
Thanks) |
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. |
Thank you @shuax , it is ok |
Gracias ! |
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. |
Fortunately, until then, it's not too difficult to find this thread. |
thanks a lot man! |
Closing as invalid. Python 3.8 is not yet supported. |
@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 |
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. |
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 |
WFM with this |
Worked like a charm! |
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. Edit: Both extensions work, on Windows, Ubuntu, Kali, and Pi. I don't know why it didn't before. Probably a typo on my part. And it probably works universally across most, if not all, OSs. My errors constantly set back my learning, due to confusion. Ah, well. |
Thanks! |
Thanks |
Most helpful. Thanks. |
Thank you very much buddy |
I am able to make exe after following @shuax solution but facing the following issue while executing the exe: Traceback (most recent call last): IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed.
Note: this error has many possible causes, so please don't comment on Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found. [23260] Failed to execute script AriesoProcess |
Thanks very much....You are a live saver |
Love u boi |
|
you are the best |
Workaround for pyinstaller/pyinstaller#4265.
Thx...4hrs searching has come to an end...praise him |
I have it too |
Love it, thanks bro ! |
i have it tried what shuax say,
|
Solution from shuax solved the issue I was facing: |
Now I am getting a new error OS Details
Error
|
Some pyspark error in 3.8 pyinstaller/pyinstaller#4265
it works thanks |
Fixed --> try using older versions of python; it is compatibility issue. I changed to 3.7.6 and works fine now |
I'm getting the error even after loading
I'm currently using python 3.8.1 on Mac OSX High Sierra (v. 10.13.6). |
^Dev version fixed the issue using pyinstaller, but now back to the same issue while trying to make PyUpdater work. Any word on when this fix will be released as stable? |
|
Mine too, with python 3.8.2 and spark hadoop 2.4.5, also pip version is upgraded to 20.0.2 |
Thanks to shuax. This issue has been dogging me for a few days. Your suggestion fixed my issue! |
xception ignored in thread started by: <function check_errors..wrapper at 0x7f96f302bd30> Need Help with this anyone please |
Oh you are amazing..... |
Locking this issue. See #4265 (comment) |
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:
The text was updated successfully, but these errors were encountered: