Hello,
I have a Pi-Top Laptop of the first generation with an 8GB Pi4. As it has 8GB of RAM I use Devuan arm64 as OS. I am not able to install the PythonSDK via apt, because the package is made for armhf. Trying manually with “pip3 install pitop” fails. Unfortinately I can not post the log file because I am not allowed to post more than 2 links, and the log is full of them - here is the log without the links:
Collecting pitop
Using cached LINK …
Collecting pitopcommon (from pitop)
Using cached LINK …
Collecting scipy (from pitop)
Using cached LINK files.pythonhosted.org/packages/16/48/ff7026d26dfd92520f00b109333e22c05a235f0c9115a5a2d7679cdf39ef/scipy-1.6.0.tar.gz
Installing build dependencies: started
Installing build dependencies: still running…
Installing build dependencies: still running…
Installing build dependencies: still running…
Installing build dependencies: still running…
Installing build dependencies: still running…
Installing build dependencies: finished with status ‘done’
Collecting monotonic (from pitop)
Using cached LINK …
Collecting python-sonic (from pitop)
Using cached LINK …
Collecting zmq (from pitop)
Using cached LINK …
Collecting gpiozero (from pitop)
Using cached LINK …
Collecting RPi.GPIO (from pitop)
Using cached LINK …
Collecting pyserial (from pitop)
Using cached LINK …
Collecting PyV4L2Camera (from pitop)
Using cached LINK …
Collecting matplotlib (from pitop)
Using cached LINK …
Complete output from command python setup.py egg_info:
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/mtrand.pyx
Traceback (most recent call last):
File “/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/tools/cythonize.py”, line 59, in process_pyx
from Cython.Compiler.Version import version as cython_version
ModuleNotFoundError: No module named ‘Cython’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/tools/cythonize.py", line 235, in <module>
main()
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/tools/cythonize.py", line 231, in main
find_process_files(root_dir)
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/tools/cythonize.py", line 222, in find_process_files
process(root_dir, fromfile, tofile, function, hash_db)
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/tools/cythonize.py", line 188, in process
processor_function(fromfile, tofile)
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/tools/cythonize.py", line 64, in process_pyx
raise OSError('Cython needs to be installed in Python as a module')
OSError: Cython needs to be installed in Python as a module
Running from numpy source directory.
/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py:485: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py", line 513, in <module>
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py", line 493, in setup_package
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py", line 290, in generate_cython
"cycler>=0.10",
RuntimeError: Running cythonize failed!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-rxfxg1vd/matplotlib/setup.py", line 298, in <module>
cmdclass=cmdclass,
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 724, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1077, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 791, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 704, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 730, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1183, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1169, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python3/dist-packages/setuptools/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py", line 513, in <module>
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py", line 493, in setup_package
File "/tmp/easy_install-zjnzc588/numpy-1.20.0rc2/setup.py", line 290, in generate_cython
"cycler>=0.10",
RuntimeError: Running cythonize failed!
Edit setup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.3.3]
python: yes [3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]]
platform: yes [linux]
sample_data: yes [installing]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
Cythonizing sources
----------------------------------------
It seems there is a module named cython missing …
Any suggestions?
Thanks&Cheers
Peter