Skip to content

Doesn't seem to work with Python 3.13 #1069

Open
@tprrt

Description

The following issue occurs with Python 3.13, but no issues occur with Python 3.11:

>>> import sentencepiece as spm
Traceback (most recent call last):
  File '<stdin>', line 1, in <module>
    import sentencepiece as spm
  File '/usr/lib/python3.13/site-packages/sentencepiece/__init__.py', line 10, in <module>
    from . import _sentencepiece
ImportError: cannot import name '_sentencepiece' from partially initialized module 'sentencepiece' (most likely due to a circular import) (/usr/lib/python3.13/site-packages/sentencepiece/__init__.py)
>>> exit()

Activity

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

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