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

unable to run shiv module after manual unzip #259

Open
sir1st opened this issue Oct 30, 2024 · 0 comments
Open

unable to run shiv module after manual unzip #259

sir1st opened this issue Oct 30, 2024 · 0 comments

Comments

@sir1st
Copy link

sir1st commented Oct 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant