Skip to content

unable to run shiv module after manual unzip #259

@sir1st

Description

@sir1st

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions