pyarmor not working with streamlit #1584
-
I have a streamlit app where the architecture is: /subfolder1 Now I'm obfuscating using:
Then I run "bash start.sh" which is an executable file containing the command 'python -m main.py'
Already checked python version is same, using within python 3.9.18 env, tried many combinations from pyarmor docs, nothing seems to work.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The issue you're experiencing with PyArmor and your Streamlit app seems to be related to the way PyArmor obfuscates the code and the subsequent execution of the obfuscated code. PyArmor obfuscates Python code and typically requires a runtime hook (
By addressing these points, you should be able to resolve the |
Beta Was this translation helpful? Give feedback.
-
Solved the issue by using config: |
Beta Was this translation helpful? Give feedback.
-
how to solved this problem |
Beta Was this translation helpful? Give feedback.
Solved the issue by using config:
{
"version": "2.1",
"name": "synthetic-static-main",
"title": "synthetic-static-main",
"src": ".",
"is_package": null,
"manifest": "global-include *.py",
"entry": "main_podman_st.py",
"output": "dist",
"runtime_path": null,
"restrict_mode": 0,
"obf_code": 0,
"obf_mod": 0,
"wrap_mode": 0,
"advanced_mode": 0,
"bootstrap_code": 1,
"cross_protection": 0,
"mixins": null,
"plugins": null,
"platform": null,
"package_runtime": 1,
"enable_suffix": 0,
"license_file": null,
"build_time": 1699857259.86041
}