Skip to content
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

FileNotFoundError after "pyarmor pack" #544

Closed
rejjin opened this issue Jul 16, 2021 · 1 comment
Closed

FileNotFoundError after "pyarmor pack" #544

rejjin opened this issue Jul 16, 2021 · 1 comment
Assignees
Labels

Comments

@rejjin
Copy link

rejjin commented Jul 16, 2021

Hello. I do not know if this is a pyarmor problem, or a pyinstaller problem, but the result is an error:

$ start.exe
Traceback (most recent call last):
  File "<dist\obf\start.py>", line 3, in <module>
  File "<frozen start>", line 81, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 540, in exec_module
  File "orderedmultidict\__init__.py", line 19, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\admin\\AppData\\Local\\Temp\\_MEI100362\\orderedmultidict\\__version__.py'
[7684] Failed to execute script start

(I don't use orderedmultidict, it's some kind of third-party library dependency)

For build I use:

pyarmor pack --clean -e " --onefile " -x " --exact " "./start.py"

I try --debug option, all works fine with obfuscated script, but cant start from finish build, after pyinstaller works.

Thank you.

@rejjin
Copy link
Author

rejjin commented Jul 16, 2021

I found the problem: gruns/orderedmultidict#25

This does not apply to pyarmor.

@rejjin rejjin closed this as completed Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants