8000 Packaging hy code with zipapp does not work · Issue #1774 · hylang/hy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Packaging hy code with zipapp does not work #1774
Open
@AlexanderWingard

Description

@AlexanderWingard

I'm writing this ticket in response to this How to load Hy package in zipapp? stackoverflow question.

I have tried reproducing this on the latest master a38cdb7 using the files in this gist

It works fine when not using zipapp:

$ python3 hyz
hello hy

But after zipping:

$ python3 -m zipapp hyz
$ python3 hyz.pyz 
Traceback (most recent call last):
  File "/home/lex/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/lex/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "hyz.pyz/__main__.py", line 2, in <module>
ModuleNotFoundError: No module named 'hyz'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0