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

invalid mode: 'rU' #69

Open
jayrockk opened this issue May 17, 2024 · 0 comments
Open

invalid mode: 'rU' #69

jayrockk opened this issue May 17, 2024 · 0 comments

Comments

@jayrockk
Copy link

Fresh install with Python 3.11.2:

pi@pi-HPSU:~/pyHPSU $ pyHPSU.py -d ELM327 -h Traceback (most recent call last): File "/usr/bin/pyHPSU.py", line 338, in <module> main(sys.argv[1:]) File "/usr/bin/pyHPSU.py", line 223, in main n_hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/HPSU/HPSU.py", line 53, in __init__ with open(commands_hpsu, 'rU',encoding='utf-8') as csvfile: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU'

Looks like mode 'U' is deprecated in 3.11. There are quite a few more errors when running 3.11

Reverting to 3.10 solved the problem.

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

1 participant