Python dependency installation error

Hi,

I’m trying to install Pupil Core software (https://github.com/pupil-labs/pupil) in order to be able to utilize a gaze tracker using the Jetson Nano Dev Kit. The software is based on Python and C++ dependencies in order to run. Unfortunately, one of the dependencies cannot be installed due to errors I cannot understand. The dependency library is apriltags (https://github.com/pupil-labs/apriltags). Bellow is the stacktrace:

(seefar) seefar@seefar-desktop:~/Downloads/apriltags$ pip install -e .[dev]
Obtaining file:///home/seefar/Downloads/apriltags
Installing build dependencies … error
ERROR: Command errored out with exit status 1:
command: /home/seefar/Downloads/seefar/bin/python3 /home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qrw9zxpn/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i – setuptools wheel scikit-build cmake==3.16.3 ninja pupil-pthreads-win
cwd: None
Complete output (30 lines):
Collecting setuptools
Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting scikit-build
Using cached scikit_build-0.11.1-py2.py3-none-any.whl (72 kB)
Collecting cmake==3.16.3
Using cached cmake-3.16.3.tar.gz (27 kB)
Collecting ninja
Using cached ninja-1.10.0.post2.tar.gz (25 kB)
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘error’
ERROR: Command errored out with exit status 1:
command: /home/seefar/Downloads/seefar/bin/python3 /home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp18wfoyx2
cwd: /tmp/pip-install-fu1floam/ninja
Complete output (10 lines):
Traceback (most recent call last):
File “/home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py”, line 280, in
main()
File “/home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py”, line 263, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “/home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py”, line 108, in get_requires_for_build_wheel
backend = _build_backend()
File “/home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py”, line 99, in _build_backend
obj = getattr(obj, path_part)
AttributeError: module ‘setuptools.build_meta’ has no attribute ‘legacy
ERROR: Command errored out with exit status 1: /home/seefar/Downloads/seefar/bin/python3 /home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp18wfoyx2 Check the logs for full command output.
ERROR: Command errored out with exit status 1: /home/seefar/Downloads/seefar/bin/python3 /home/seefar/Downloads/seefar/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qrw9zxpn/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i – setuptools wheel scikit-build cmake==3.16.3 ninja pupil-pthreads-win Check the logs for full command output.>

Any ideas regarding this error?

Hi,

AttributeError: module ‘setuptools.build_meta’ has no attribute ‘ legacy

Do you install apriltags in a virtual environment?
If yes, please check the below issue for information. This is a bug in the setuptools.

Thanks.