Trying to build the picar-x module but running into the following:
TypeError: expected string or bytes-like object, got ‘NoneType’
Installed Raspberry Pi using the recommend image and got:
Linux pibot 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
Following the instructions from:
https://docs.sunfounder.com/projects/picar-x/en/latest/python/python_start/install_all_modules.html
Full output below.
user@pibot:~/picar-x $ !18
sudo python3 setup.py install
Traceback (most recent call last):
File “/home/user/picar-x/setup.py”, line 17, in
setup(
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)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got ‘NoneType’
user@pibot:~/picar-x $