-
Notifications
You must be signed in to change notification settings - Fork 372
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 3.11 and collections #252
Comments
in files : |
Thanks, this works perfectly with python 3.11 |
Can you send a PR with those changes? |
I would. But that has to be changed in the "Pint" package which is not part of this repo right? |
Ah, whoops. I didn't look closely enough. It seems like this has been fixed in |
I simply did I would expect this version to be set in obd, isn't it? |
I've submitted a PR to update the tests to test Python 3.11, they seem to pass there: #255 |
I just bumped into this issue today, trying to run via python 3.10. I tried using the branch from #255 instead and it seems to be working! |
Are you able to review the PR then? That will allow me to merge it |
On python 3.10.9 I receive the same import error due to the deprecation of classes in collections by using the standard pip install obd. installing the git version results in errors due to the pint package. it requires v 0.20.* but fails to import it correctly: ImportError: cannot import name 'register_unit_format' from 'pint.formatting' |
what version of pint are you using specifically? |
Can you include details on what fails with the latest from git? Let's get that fixed then we can focus on a release |
Apologies for the delayed response. I was using pint 0.20.1. I initially worked around this by reinstalling obd through the standard pip install obd. Then i manually edited pint as suggested by @Ch1x3. I tried to reproduce the error via the github installation again but found that it now works. This is strange as the dependencies/default setup is the same. For reference the steps I took are:
I successfully installed obd-0.7.1 pint-0.20.1 and successfully imported it. |
@alistair23 What's the path forward to a new release/how can I help? That'd be sweet. |
I was wondering if it would be possible to have a new release with this patch included? It's been found to be very helpful in fixing the problem in Python 3.11. |
I totally agree, especially because PyPi doesn't allow for packages to have git dependencies for security reasons (see here for an example). So a solution really needs to be hacked together for this to be included. As mentioned before I'm willing to help however possible to get this cut and released. Cheers! |
I have asked @brendan-w to push a release |
released as |
Hi,
I am using Python 3.11 and when importing obd, I get an exception:
Is Py3.11 going to be supported?
The text was updated successfully, but these errors were encountered: