-
Notifications
You must be signed in to change notification settings - Fork 298
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
pytransform.PytransformError: Could not find "/myapp/app/platforms/android/armv7/_pytransform.so" #207
Comments
Try to use this platform |
i am currently using 5.9.3. I will try. Thanks @jondy for the reply. I'll let you know. |
Hi @jondy,
I'am currently using the trial version since i would like to test it first on my current project |
Sorry, the platform name should be |
What's the output of following commands?
|
where should i run this in my build machine? |
No, run it in the target machine. It's better to check the |
Hi @jondy , but her is the gcc the buildroot using the result
|
I think the problem that the target machine uses |
Here's the result
|
Hi @jondy, Not sure you can you can check https://buildroot.org/downloads/manual/manual.html#_cross_compilation_toolchain Then you can use the available config of raspberrypi3_defconfig |
Please download this new one Save it in the build machine "~/.pyarmor/platforms/android/armv7/0/_pytransform.so", then obfuscate the script with If not work, check it in the target machine by |
Hi @jondy, I saved the file and tried ldd _pytransform.so same error i used --platform android.armv7
it downloaded again the file and overwrite the file i copied. Thanks. |
Only download this file to target machine Then run |
Hi jondy, ldd _pytransform.sochecking sub-depends for '/lib/libc.so.0' I didn't get an error now |
In build machine, first download this file, save it to any path, for example
Note that PYARMOR_PLATFORM should be set for this platform, refer to |
Hi @jondy, Got an error: Script:
|
Create an extra path |
Hi @jondy, > /usr/bin/python3.7: symbol '__ctype_b_loc': can't resolve symbol
Got this error now: I used same version of python with my build machine and target machine |
It seems the uclibc in the target machine misses this function |
Hi @jondy, Can you rebuild the _pytransform.so to remove this dependency? |
Hi @jondy, I rebuild my uclibc, it work now. Thanks a lot! |
Hi @jondy, i got an error running this: Python 3.7.2 (default, Mar 18 2020, 12:43:35)
|
This function should be called in the obfuscated scripts. If just debug in the plain script, call
|
Hi i'm gettiing an error when i tried to run my obfuscated python script in my target machine
Target Machine:
Device: Raspberry PI 3B+
OS: Custom Embedded Linux by Buildroot
Build Machine:
OS: Ubuntu 18.04
Script run on my build machine:
PYTHONPATH=python3 pyarmor obfuscate --recursive --output ../myapp/app app/__init__.py --platform linux.armv7.3
I used linux.armv7.3 is it correct for my target machine or not?
I copied the obfuscated script in my target machine
The pytransform is included with _pytransform.so.
When I tried to run my python scripts i got an error _pytransform.so. File not Found
I tried your suggestion in the document :
Got this error instead.
I don't have the platforms folder since this is the target machine. And why is the platform android/armv7
Thanks..
The text was updated successfully, but these errors were encountered: