Skip to content

ImportError with version 0.8.100 #234

Description

@jonchar

Encountering an ImportError with version 0.8.100 with Python 3.11 on arm64:

uv run python -c "import ensmallen"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/jon/code/grape-test/.venv/lib/python3.11/site-packages/ensmallen/__init__.py", line 110, in <module>
    from . import ensmallen_default as core # pylint: disable=import-outside-toplevel, import-error, no-name-in-module, import-self
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'ensmallen_default' from partially initialized module 'ensmallen' (most likely due to a circular import) (/Users/jon/code/grape-test/.venv/lib/python3.11/site-packages/ensmallen/__init__.py)

To reproduce:

uv init
uv add ensmallen==0.8.100
uv run python -c "import ensmallen"

This does not seem to occur with version 0.8.99

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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