Skip to content

Import __version__ from hy rather than from hy.version. - #24

Open
scolobb wants to merge 1 commit into
Calysto:masterfrom
scolobb:fix-version
Open

Import __version__ from hy rather than from hy.version.#24
scolobb wants to merge 1 commit into
Calysto:masterfrom
scolobb:fix-version

Conversation

@scolobb

@scolobb scolobb commented Sep 11, 2024

Copy link
Copy Markdown

Installing the Calysto Hy kernel currently breaks with the following error message:

$ python -m calysto_hy install
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/home/scolobb/Candies/prj/hy/hy-venv/lib/python3.12/site-packages/calysto_hy/__init__.py", line 2, in <module>
    from .kernel import CalystoHy
  File "/home/scolobb/Candies/prj/hy/hy-venv/lib/python3.12/site-packages/calysto_hy/kernel.py", line 18, in <module>
    from hy.version import __version__ as hy_version
ModuleNotFoundError: No module named 'hy.version'

This PR fixes the error for me and I can successfully install the Calysto Hy kernel.

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

Successfully merging this pull request may close these issues.

1 participant