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

Python module does not build with Python 3.12 #283

Open
dhdaines opened this issue Aug 16, 2024 · 0 comments · May be fixed by #281
Open

Python module does not build with Python 3.12 #283

dhdaines opened this issue Aug 16, 2024 · 0 comments · May be fixed by #281

Comments

@dhdaines
Copy link
Contributor

This is fixed by #281 but here's an issue describing the problem. It is because you have pinned setuptools to a much too old version. When running pip install . in rustfst-python, this happens (among a longer stacktrace):

        File "/tmp/pip-build-env-wrfvjvka/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 16, in <module>
          import setuptools.version
        File "/tmp/pip-build-env-wrfvjvka/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>
          import pkg_resources
        File "/tmp/pip-build-env-wrfvjvka/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2191, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]
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 a pull request may close this issue.

1 participant