Replies: 11 comments 1 reply
-
Could you test only a simple script in the raspi4? |
Beta Was this translation helpful? Give feedback.
-
tested with just one simple script, still gettting the same error |
Beta Was this translation helpful? Give feedback.
-
Just for confirmation, obfuscating one simple print "hello world" script and run it in rasp pi4 with these commands
It raise runtime error out of pyarmor. |
Beta Was this translation helpful? Give feedback.
-
getting same error again. script contains only |
Beta Was this translation helpful? Give feedback.
-
Can not reproduced. It seems that using different pyarmor versions. |
Beta Was this translation helpful? Give feedback.
-
I also can reproduce this error on RaspberryPi 4. Obfuscating a single file works fine. However, obfuscating a project results in same error. I guess this is due to obfuscation messing up import procedure. My raspberry pi specs:
I have prepared a minimal example below with structure:
and obfuscated with the command below:
After making sure pytransform.so is in path, i ran main.py(not obfuscated) and got the traceback:
The minimal example bundled below: |
Beta Was this translation helpful? Give feedback.
-
@Deahran got it, thanks. I'll check it. I verify it in linux.aarch64, not linux.armv7l |
Beta Was this translation helpful? Give feedback.
-
@Deahran I wonder do you test this in a clean machine? If not, please remove |
Beta Was this translation helpful? Give feedback.
-
Hello, I've been able to obfuscate successfully with a fresh rpi image(link) on my raspberry pi 4, using pyarmor==7.7.4 with core library Even though rpi4 uses ARM v8 processors, legacy images point to armv7l, which i showed in my previous post. With the newest 32-bit OS, it shows the processor info as:
I also verified that OS is 32 bit as well:
On a fresh image, i built python3.9.15 from source, installed pyarmor==7.7.4 with pip. After, tried to obfuscate a single script but got the error: Command line output
So it seems that pyarmor recognizes the processor bit size instead of OS and looking for 64 bit binaries. I manually downloaded armv7 binaries with
and saw that pyarmor is still trying to use the wrong binaries. I manually copied Obfuscation command line output
Again pyarmor tries to copy wrong precompiled binaries, i manually copied
|
Beta Was this translation helpful? Give feedback.
-
Try to export PYARMOR_PLATFORM=linux.armv7 may fix the wrong platform |
Beta Was this translation helpful? Give feedback.
-
@jondy That did not fix the issue on rpi4. Pyarmor still fetches the wrong runtime (arm64 instead of arm7vl). However, manually generating runtime for armv7 and using that runtime solved the issue. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Just trying to obfuscate a custom python module with a config file in raspberry pi 4.
Module files obfuscated without problem, but failed to run module due to the following error.
** Same module obfuscated and run without any problem in windows 10.
RuntimeError: Call spp code out of pyarmor
-- version info --
-- build command --
pyarmor build --no-runtime --force .pyarmor_config_file
-- config file --
pyarmor_runtime folder contains the files that generated by pyarmor runtime command
Beta Was this translation helpful? Give feedback.
All reactions