You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serial\utilities\_init_.py imports imp. imp is removed in Python 3.12 so the import of serial no longer works
import serial
Traceback (most recent call last):
File "", line 1, in
File "c:\python312\lib\site-packages\serial\_init_.py", line 10, in
from . import utilities, abc, model, marshal, errors, properties, meta, hooks, test, request
File "c:\python312\lib\site-packages\serial\utilities\_init_.py", line 5, in
compatibility.backport() # noqa
^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\python312\lib\site-packages\serial\utilities\compatibility.py", line 28, in backport
exec(BACKWARDS_COMPATIBILITY_IMPORTS, frame.f_globals, frame.f_locals)
File "", line 4, in
File "c:\python312\lib\site-packages\future\standard_library\_init_.py", line 65, in
import imp
ModuleNotFoundError: No module named 'imp'
The text was updated successfully, but these errors were encountered:
FYI: this error is from the serial library, not pyserial (gets me every time)
You're right, thank you! My fault, I had both libraries installed and they use the same import statement. I didn't look close enough at the file reference.
serial\utilities\_init_.py imports imp. imp is removed in Python 3.12 so the import of serial no longer works
The text was updated successfully, but these errors were encountered: