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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scolobb
Copy link

@scolobb scolobb commented Sep 11, 2024

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