Hallo. Ich habe den Raspi 4b und Mainsail Os für meinen 3D-Drucker draufgespielt. Um auch den Drucker LED´S bestücken zu können bin ich dieser Anleitung gefolgt.
Ich habe es nun mit 3 MicroSdkarten versucht aber jedesmal wenn ich bei dem Punkt
sudo python3 setup.py build
angelangt bin kommt folgende Fehlermeldung:
pi@mainsailos:~/rpi_ws281x/python $ sudo python3 setup.py build
Downloading https://pypi.python.org/packages/sourc…uptools-5.7.zip
Extracting in /tmp/tmpeecii51q
Now working in /tmp/tmpeecii51q/setuptools-5.7
Building a Setuptools egg in /home/pi/rpi_ws281x/python
Traceback (most recent call last):
File "setup.py", line 19, in <module>
exec(init_file.read(), command_ns)
File "<string>", line 11, in <module>
File "/tmp/tmpeecii51q/setuptools-5.7/setuptools/__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "/tmp/tmpeecii51q/setuptools-5.7/setuptools/extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "/tmp/tmpeecii51q/setuptools-5.7/setuptools/dist.py", line 18, in <module>
import pkg_resources
File "/tmp/tmpeecii51q/setuptools-5.7/pkg_resources.py", line 1520, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
/home/pi/rpi_ws281x/python/setuptools-5.7-py3.7.egg
Traceback (most recent call last):
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 142, in use_setuptools
pkg_resources.require("setuptools>=" + version)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'setuptools>=5.7' distribution was not found and is required by the application
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 4, in <module>
use_setuptools()
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 120, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 69, in _build_egg
raise IOError('Could not build the egg.')
OSError: Could not build the egg.
Ich hab keine Ahnung wo hier der Fehler liegt. Muss hier noch irgendwas von Python installiert werden?
Vielen Dank schon im Vorraus.