How to compile a .py module into an executable .exe file with an image?
📁 AI
I have a script in PyQt5, and it contains images,
but after compiling .py to .exe, the images still remain separate.
How to embed an image into the script so that the script and the photo are not located in different places?
Let's figure out why this error occurs. Let's look at the expression:
round(int(x + 31) / 64)x + 31 is an array of length 1024, and we are casting it to int and it's unclear what the result should be. Python says:
TypeError: only arrays of length 1 can be cast to a scalar type (int is a scalar type)
Let's remove the cast to int:
y = ns * byts[round((x + 31) / 64)]The error will disappear, but a new one will appear:
TypeErro
Log in to leave an answer