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

Issue running the test script #30

Open
jdean82 opened this issue Dec 28, 2024 · 1 comment
Open

Issue running the test script #30

jdean82 opened this issue Dec 28, 2024 · 1 comment

Comments

@jdean82
Copy link

jdean82 commented Dec 28, 2024

I am running on Raspberry Pi 3B+ I have run all the instructions and keep getting the following errors:

:~/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Libs/rpi-ws281x-python/library $ sudo python3 setup.py install
Traceback (most recent call last):
File "/home/jdean82/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Libs/rpi-ws281x-python/library/setup.py", line 15, in
setup(name = 'rpi_ws281x',
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 107, in setup
_install_setup_requires(attrs)
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 75, in _install_setup_requires
dist = MinimalDistribution(attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 57, in init
super().init(filtered)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 473, in init
for ep in metadata.entry_points(group='distutils.setup_keywords'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 1040, in entry_points
return SelectableGroups.load(eps).select(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 476, in load
ordered = sorted(eps, key=by_group)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 1037, in
eps = itertools.chain.from_iterable(
^
File "/usr/lib/python3.11/importlib/metadata/_itertools.py", line 16, in unique_everseen
k = key(element)
^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 954, in _normalized_name
or super().normalized_name
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 627, in normalized_name
return Prepared.normalize(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 882, in normalize
return re.sub(r"[-
.]+", "-", name).lower().replace('-', '
')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/init.py", line 185, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I am completely new to coding and have no idea what this means!! Can anyone help? I got the robot dog for christmas and just cant get it to work!

@jdean82
Copy link
Author

jdean82 commented Dec 28, 2024

And when I run the test servo script I get the following:
jdean82@JDraspberrypi:~/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server $ sudo python test.py Servo
Traceback (most recent call last):
File "/home/jdean82/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/test.py", line 2, in
from Led import *
File "/home/jdean82/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/Led.py", line 4, in
from rpi_ledpixel import Freenove_RPI_WS281X
File "/home/jdean82/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/rpi_ledpixel.py", line 2, in
from rpi_ws281x import Adafruit_NeoPixel, Color
ImportError: cannot import name 'Adafruit_NeoPixel' from 'rpi_ws281x' (/usr/local/lib/python3.11/dist-packages/rpi_ws281x-4.3.4-py3.11-linux-aarch64.egg/rpi_ws281x/init.py)

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