-
After trying to run my obfuscated project I get the following issue:
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
I mean somehow the imports aren't working this is why I can't run obfuscated scripts |
Beta Was this translation helpful? Give feedback.
-
@jondy I'm having the same problem. Here's how I'm running pyarmor:
Here are the logs:
The dist package directory looks like this:
And
This is what happens when I try to run
I'm considering buying a pro license, but I won't until I can confirm my software will run as expected. |
Beta Was this translation helpful? Give feedback.
-
Having the same problem with our libraries |
Beta Was this translation helpful? Give feedback.
-
I have bought already a pro license but support isn't the best rn ... so I wait until pyarmor 8 is operational |
Beta Was this translation helpful? Give feedback.
-
@JFuqX please check to solve this problem This is wrong usage, all of them could be solved by reading the documentation, I may not answer this kind of question. |
Beta Was this translation helpful? Give feedback.
-
It seems I'm late for the party, but I think I have figured out a way to work on this, in case for future users. myproject |- moduleA | |- scriptA.py | |- scriptB.py |- moduleB | |- scriptC.py | |- scriptD.py |- main.py Instead of doing this: import os
for module in module_list:
os.system(f"pyarmor gen -O encoded_project -r -i {module}")
os.system("pyarmor gen -O encoded_project -i main.py") The idea is that you should obfuscating the packages and scripts only instead of obfuscate the whole project. |
Beta Was this translation helpful? Give feedback.
-
as the ducument mentioned, https://pyarmor.readthedocs.io/en/stable/reference/errors.html Do not use -i or --prefix if you don’t know what they’re doing. This works for me:
The my_folder directory is:
in dist directory, I get:
Then (important)
go to my_folder directory,codes can be executed correctly
|
Beta Was this translation helpful? Give feedback.
-
Try to use both
And obfuscate all of them by this command:
Run the obfuscated script:
Check the whole content of If need not save runtime package in any child folder, it's easy by this way:
|
Beta Was this translation helpful? Give feedback.
@JFuqX please check to solve this problem
http://pyarmor.readthedocs.io/en/stable/questions.html
http://pyarmor.readthedocs.io/en/stable/reference/errors.html
This is wrong usage, all of them could be solved by reading the documentation, I may not answer this kind of question.