You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: windows server 2022
python: 3.10
pyarmor version: 7.7.4
pyinstaller version: 5.8.0
I don't know if we should consider this a bug or just leave it here for other people experiencing this behavior to know.
When running pyarmor.exe pack in windows path is case sensitive.
I could only reproduce this from python, not from command line (I have a python script to compile my project).
C:\work>python
>>> from subprocess import check_output
>>> open("c:\work\hello.py", "rt").read()
'print("Hello World")'
>>> #------------ run with lowercase path fails
>>> check_output(r"C:\Python310\Scripts\pyarmor.exe pack hello.py", cwd=r"c:\work", shell=True)
INFO PyArmor Trial Version 7.7.4
INFO Python 3.10.10
INFO Prepare to pack obfuscated scripts with PyInstaller...
INFO entry script: hello.py
INFO src for searching scripts: .
INFO build path: dist\obf
INFO Run PyArmor to obfuscate scripts...
INFO
.....
10312 INFO: Graph cross-reference written to c:\work\build\hello-patched\xref-hello-patched.html
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python310\lib\site-packages\PyInstaller_main.py", line 198, in
run()
File "C:\Python310\lib\site-packages\PyInstaller_main.py", line 180, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Python310\lib\site-packages\PyInstaller_main.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 977, in main
build(specfile, distpath, workpath, clean_build)
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 899, in build
exec(code, spec_namespace)
File "hello-patched.spec", line 33, in
raise RuntimeError('No obfuscated script found')
...
>>> #------------ run with uppercase path works
>>> a=check_output(r"C:\Python310\Scripts\pyarmor.exe pack hello.py", cwd=r"C:\work", shell=True)
INFO PyArmor Trial Version 7.7.4
INFO Python 3.10.10
INFO Prepare to pack obfuscated scripts with PyInstaller...
INFO entry script: hello.py
INFO src for searching scripts: .
INFO build path: dist\obf
...
INFO Pack obfuscated scripts successfully.
>>>
The text was updated successfully, but these errors were encountered:
OS: windows server 2022
python: 3.10
pyarmor version: 7.7.4
pyinstaller version: 5.8.0
I don't know if we should consider this a bug or just leave it here for other people experiencing this behavior to know.
When running
pyarmor.exe pack
in windows path is case sensitive.I could only reproduce this from python, not from command line (I have a python script to compile my project).
C:\work>python
>>> from subprocess import check_output
>>> open("c:\work\hello.py", "rt").read()
'print("Hello World")'
>>> #------------ run with lowercase path fails
>>> check_output(r"C:\Python310\Scripts\pyarmor.exe pack hello.py", cwd=r"c:\work", shell=True)
INFO PyArmor Trial Version 7.7.4
INFO Python 3.10.10
INFO Prepare to pack obfuscated scripts with PyInstaller...
INFO entry script: hello.py
INFO src for searching scripts: .
INFO build path: dist\obf
INFO Run PyArmor to obfuscate scripts...
INFO
.....
10312 INFO: Graph cross-reference written to c:\work\build\hello-patched\xref-hello-patched.html
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python310\lib\site-packages\PyInstaller_main.py", line 198, in
run()
File "C:\Python310\lib\site-packages\PyInstaller_main.py", line 180, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Python310\lib\site-packages\PyInstaller_main.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 977, in main
build(specfile, distpath, workpath, clean_build)
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 899, in build
exec(code, spec_namespace)
File "hello-patched.spec", line 33, in
raise RuntimeError('No obfuscated script found')
...
>>> #------------ run with uppercase path works
>>> a=check_output(r"C:\Python310\Scripts\pyarmor.exe pack hello.py", cwd=r"C:\work", shell=True)
INFO PyArmor Trial Version 7.7.4
INFO Python 3.10.10
INFO Prepare to pack obfuscated scripts with PyInstaller...
INFO entry script: hello.py
INFO src for searching scripts: .
INFO build path: dist\obf
...
INFO Pack obfuscated scripts successfully.
>>>
The text was updated successfully, but these errors were encountered: