Pyarmor CLI Core Alpine
raw JSON → 8.1.1 verified Mon Apr 27 auth: no python
Provides pre-built extension modules `pytransform3` and `pyarmor_runtime` for Pyarmor, tailored for Alpine Linux. Version 8.1.1 is the latest on PyPI; the broader Pyarmor ecosystem (v9.x) is active. Package is updated alongside Pyarmor releases.
pip install pyarmor-cli-core-alpine Common errors
error ImportError: No module named 'pytransform3' ↓
cause Trying to import pytransform3 directly, which is an internal extension module.
fix
Do not import pytransform3; use pyarmor.cli.core or pyarmor_runtime as documented.
error pyarmor: error: unrecognized arguments: gen ↓
cause Using an old Pyarmor 7.x command syntax with Pyarmor 8+ which only has gen, reg, cfg.
fix
Use 'pyarmor gen', 'pyarmor reg', or 'pyarmor cfg' instead of old subcommands like 'obfuscate'.
error NameError: name '__assert_armored__' is not defined ↓
cause Obfuscated script with --obf-code 2 and attribute in base classes; bug in Python 3.12 (fix in 9.1.8).
fix
Upgrade Pyarmor to 9.1.8+ or avoid --obf-code 2 on Python 3.12.
Warnings
breaking Pyarmor 9.x requires new license regfile for CI/Group licenses; upgrade may break existing registrations. ↓
fix Obtain new regfile from pyarmor.dashingsoft.com for your license type.
gotcha Direct import of pytransform3 raises ImportError. This module is loaded internally by pyarmor.cli.core. ↓
fix Use pyarmor.cli.core or pyarmor_runtime as documented.
deprecated pyarmor.cli.core>=7.6.7 may cause crashes with special scripts in Python 3.9+ if using old bootstrap code. ↓
fix Update to latest pyarmor.cli.core; adjust bootstrap as per Pyarmor docs.
gotcha Alpine uses musl libc; some pre-built extensions may have compatibility issues. This package provides Alpine-specific builds. ↓
fix Ensure you install pyarmor-cli-core-alpine instead of pyarmor on Alpine Linux.
Imports
- pytransform3 wrong
import pytransform3correctNo direct import; runtime is loaded internally by Pyarmor. - pyarmor_runtime wrong
import pyarmor_runtimecorrectfrom pyarmor_runtime import __pyarmor__
Quickstart
# Obfuscate a script using pyarmor
pyarmor gen --enable-rft myscript.py