Replies: 20 comments 3 replies
-
Hi, I'd greatly appreciate it if someone could offer some guidance on obfuscating Streamlit code. Your input would be very helpful. |
Beta Was this translation helpful? Give feedback.
-
Try to run |
Beta Was this translation helpful? Give feedback.
-
Hi I am also trying to obfuscate streamlit app but getting following errors. I used 2023-12-01 05:05:15.921 Uncaught app exception Any help is appreciated |
Beta Was this translation helpful? Give feedback.
-
same here |
Beta Was this translation helpful? Give feedback.
-
Same here. 2024-01-05 08:16:00.429 Uncaught app exception |
Beta Was this translation helpful? Give feedback.
-
How about disable this check by
Then obfuscate the scripts again. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
same probleme is there a solution yet ...? |
Beta Was this translation helpful? Give feedback.
-
Same problem, I have a small test case and I am certain every file has been obfuscated using the same trial license. I can run a script using
|
Beta Was this translation helpful? Give feedback.
-
Please refer to |
Beta Was this translation helpful? Give feedback.
-
Same problem, it happens to me when I use --obf-module 0 instead of the default one. |
Beta Was this translation helpful? Give feedback.
-
--obf-module 0 results in RuntimeError, it's a bug. It will be fixed in next release v8.5.9 |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem. I am using pyarmor 8.5.8 and I am running "pyarmor cfg restrict_module=0" first, and then obfuscate my scripts all at once using "pyarmor gen -r -O dist wrapper.py, dir1, dir2 ...".
If then, I run the obfuscated wrapper, the Streamlit app runs just fine. When using --obf-module=0, the browser doesn't even open, but I immediately get the error that @madhuri-rai07 sent in on Nov 30, 2023, but in a Windows-frame. However, my goal is to create an EXE (using cx_Freeze or stlite and npm) from my Streamlit app. Whether the EXE is created and then the scripts are obfuscated or the other way around. When running the EXE using obfuscated files, it looks like it's working. But when I click on anything, I get the error:
Does anyone know what is causing this and how to fix that behaviour? Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
I have tested this with the new version ( The RuntimeError is gone, but we're back to:
However! A rectification... I was assuming that
But then! While the script does start the web app and it looks like it's working, I then get the exact same behavior as described by @Waschbrettwade in the previous post. As soon as you interact:
|
Beta Was this translation helpful? Give feedback.
-
Try disable this option:
It may fix this problem |
Beta Was this translation helpful? Give feedback.
-
I'm not sure pyarmor could work with streamlit because I don't know well about streamlit. |
Beta Was this translation helpful? Give feedback.
-
Noted, thank you @jondy. |
Beta Was this translation helpful? Give feedback.
-
any update? |
Beta Was this translation helpful? Give feedback.
-
I have explain it
I'm not sure |
Beta Was this translation helpful? Give feedback.
-
Thanks to @jondy for the answer. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have tried to obfuscate a Streamlit application using the following command:
pyarmor gen -O chat chat-app/
Obfuscation is a success, but while trying to run the Streamlit application I am getting the following exception:
In a previous discussion I saw someone stating to use
--no-cross-protection
. But it doesn't work with version 8.pyarmor gen --no-cross-protection -O chat chat-app/
While running this command I get the following message:
Can we achieve code obfuscation for Streamlit? I would greatly appreciate any guidance or suggestions on how to do this.
Beta Was this translation helpful? Give feedback.
All reactions