-
Notifications
You must be signed in to change notification settings - Fork 315
[BUG] TypeError: 'builtin_function_or_method' object does not support the context manager protocol #2082
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
When I replace the above recursion code with something like this, it will work fine after Pyarmor obfuscation:
|
Please provide full options to generate the obfuscated scripts, do not pack but only run the obfuscated scripts, and which line is 77 in the snapshot code? |
Pyarmor full cmd:
Line 77 of the report is a call to the function
|
The following example minimally reproduces the above problem, which is the error caused by inline functions: Source Code:
|
@jondy This error occurs if the inline function uses the function's variables. |
Reproduced, I'll check it. |
This bug will be fixed in next release (v9.1.2) The pre-release version could be downloaded from https://pyarmor.dashingsoft.com/downloads/temp/pyarmor-9.1.2.tar.gz |
Fixed in v9.1.2 |
Base info:
When I packaged the code after obfuscating it with Pyarmor, I can start the program normally, but when executing a specific function, an error occurs (the original code does not have this problem) with the error message shown below:
I then replaced the obfuscated python source file with the obfuscated file in order of precedence, and found the function that had been obfuscated by Pyarmor with an error:
The text was updated successfully, but these errors were encountered: