-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
unqualified exec is not allowed (Python 2.7.6) #1408
Comments
Please try if this occurs on the current |
@topiwala There is no specific cypher recipe in the wiki. But the manual for the python3 branch contains this .spec example: block_cipher = pyi_crypto.PyiBlockCipher(key='test_key')
a = Analysis(['test_onefile_crypto.py'], cipher=block_cipher)
pyz = PYZ(a.pure, cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='test_onefile_crypto') Please note that you do not need to use the line |
I have a python2.7 project, and I don't think we can move to python3. I tried packaging with python3 branch, and ran into this error: Is there any other way? Perhaps a merge of the changes from this branch into the main dev branch for just the cipher support?
|
I think that's a bug - the |
Can you try changing this line: To this: And tell me if it fixes the problem? |
That didn't work. However, a minor modification
caused me to get further along, until I hit the error below:
|
These are your system specs from another issue:
I have a feeling this would work for you on Python 2.7.9 (it has further changes for python 3 compatibility), but I found out 2.7.6 is the last version offered on that version of Ubuntu, so I won't ask you to change Python versions. The The (Or we could just say "Requires Python 2.7.9" and then @topiwala is out of luck...) |
I tested this with Python 2.7.4: fails
fails
passes (but does not what we want)
passes
passes
I'm going to implement this work-around. |
In Python < 2.7.9 the function has an underscore prefix. See issue #1408.
I have the same issue as topiwala - I cannot use a block cipher with my Python 2.7 project (same error). System info:
|
Ups, I already fixed this in fd59a96, but did not close the issue. |
@uzpei This ticket was discussing several different issues.Please open a new ticket describing "same error". Thanks, |
Followed the recipe in the manual for block cipher when packaging, but on extracting the executable, get the following error:
I also had to add
to be able to follow the manual's example.
Does anyone have a recipe that I can follow?
The text was updated successfully, but these errors were encountered: