Updating from stretch to bullseye. There is a newer version of Python. Specifically 3.5.3 to 3.9.2. In the stretch version I am able to trigger my gpio with a Python file which includes the lines:
> import os
> from utils import args
> import RPi.GPIO as GPIO, time
However when I try the same script file in bullseye I get the following error message:
-------------------------
python version 3.9.2 (default, Mar 20 2025, 02:07:39)
[GCC 10.2.1 20210110]
Traceback (most recent call last):
File "/mnt/ext/apps/./rox", line 10, in <module>
from utils import args
ImportError: cannot import name 'args' from 'utils' (/usr/local/lib/python3.9/dist-packages/utils/__init__.py)
-------------------------
I have had no luck locating the args module online. I even tried installing the 3.5.3 version using pyenv. But I am a little reluctant to completely install the 3.5.3 version for fear that I might wreck all that I have working so far.
I found that I do have on my system the latest python3-rpi.gpio version 0.7.0-0.2+b2 which may be a problem - not sure.
I need to resolve this issue in order to trigger my gpio pins.
Any suggestions would be greatly appreciated.
Thx in advance
> import os
> from utils import args
> import RPi.GPIO as GPIO, time
However when I try the same script file in bullseye I get the following error message:
-------------------------
python version 3.9.2 (default, Mar 20 2025, 02:07:39)
[GCC 10.2.1 20210110]
Traceback (most recent call last):
File "/mnt/ext/apps/./rox", line 10, in <module>
from utils import args
ImportError: cannot import name 'args' from 'utils' (/usr/local/lib/python3.9/dist-packages/utils/__init__.py)
-------------------------
I have had no luck locating the args module online. I even tried installing the 3.5.3 version using pyenv. But I am a little reluctant to completely install the 3.5.3 version for fear that I might wreck all that I have working so far.
I found that I do have on my system the latest python3-rpi.gpio version 0.7.0-0.2+b2 which may be a problem - not sure.
I need to resolve this issue in order to trigger my gpio pins.
Any suggestions would be greatly appreciated.
Thx in advance
Statistics: Posted by akaodin — Sun Apr 13, 2025 9:28 pm