RFT mode circular import issue #1842
-
When running pyarmor with rft mode enabled the obfuscation process works fine, but running the obfuscated files directly causes an error that would imply a circular dependency of imports (ImportError: cannot import name 'x' from 'y'). Running the unobfuscated files directly works fine, it's only the obfuscated files that seem to have this circular dependency. One more thing to note is without rft mode enabled, the obfuscated files run fine again without a circular dependency so this issue seems to only be tied to rft mode. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
RFT mode really changes the |
Beta Was this translation helpful? Give feedback.
-
test_pyarmor.zip |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks. I'll check it when I'm back office in next Monday. |
Beta Was this translation helpful? Give feedback.
-
It will be fixed in next release, here is pre-release |
Beta Was this translation helpful? Give feedback.
-
Are you really using |
Beta Was this translation helpful? Give feedback.
-
This is because your package structure is not plain, for example, in pyarmor view, |
Beta Was this translation helpful? Give feedback.
-
For example, move |
Beta Was this translation helpful? Give feedback.
For example, move
test/test1/test3
totest/test3
If not move the folder,
import test1.test3.xxx
instead ofimport test3.xxxx