shiv icon indicating copy to clipboard operation
shiv copied to clipboard

unable to run shiv module after manual unzip

Open sir1st opened this issue 1 year ago • 0 comments

i build a zip file with shiv named 'hello.zip', but it is too large (2.2GB) that the original method 'python hello.zip' report error: no module name main, i find associated issues and understand it is a python bug. then i want to unzip this zip myself and i get files like --bootstrap --site-packages --main.py --environment.json when i run python main.py, its reports error: Traceback (most recent call last): File "D:\env\test_code\hello-world\hellonew_main.py", line 3, in bootstrap.bootstrap() File "D:\env\test_code\hello-world\hellonew_bootstrap_init.py", line 196, in bootstrap env = Environment.from_json(archive.read("environment.json").decode()) AttributeError: 'NoneType' object has no attribute 'read' any suggestions? i use win10 with python3.10.11 as the runtime env.

sir1st avatar Oct 30 '24 03:10 sir1st