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

Error importing with Python3.10 #1511

Closed
dilawar opened this issue Apr 20, 2022 · 2 comments
Closed

Error importing with Python3.10 #1511

dilawar opened this issue Apr 20, 2022 · 2 comments

Comments

@dilawar
Copy link

dilawar commented Apr 20, 2022

I am on Arch Linux with Python3.10.2. I installed pint using pip python3 -m pip install pint. When I try to import it, I am getting the following error.

[dilawar@inspiron ~]$ python3
Python 3.10.2 (main, Jan 15 2022, 19:56:27) [GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pint
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dilawar/.local/lib/python3.10/site-packages/Pint-0.19.1-py3.10.egg/pint/__init__.py", line 30, in <module>
  File "/home/dilawar/.local/lib/python3.10/site-packages/Pint-0.19.1-py3.10.egg/pint/registry.py", line 69, in <module>
  File "/home/dilawar/.local/lib/python3.10/site-packages/Pint-0.19.1-py3.10.egg/pint/parser.py", line 21, in <module>
ModuleNotFoundError: No module named 'pint._vendor'
>>> 
@hgrecco
Copy link
Owner

hgrecco commented Apr 21, 2022

That is strange, tests on Python 3.10 are passing. Which pip version are using?

@dilawar
Copy link
Author

dilawar commented Apr 21, 2022

In a fresh Docker container of arch Linux, I could not reproduce this issue. Installation and import of Pint was a success.

I guess something is broken on my laptop. Sorry for wasting time 😑.

@dilawar dilawar closed this as completed Apr 21, 2022
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

No branches or pull requests

2 participants