Downloading Tkinter and pyqt5 on BBB

Hello @Seth
I rewrote the new image with Bulllseye 11.x

am335x-debian-11.5-minimal-armhf-2022-11-01-2gb.img.xz

After going through the process of trying to install Anaconda (I could only find 64bit packages when the BBB is 32bit) I tried to install PyQt5 with pip.

pip install pyqt5

There was still an error and this was the output.

Looking in indexes: Simple index, https://www.piwheels.org/simple
Collecting pyqt5
Downloading PyQt5-5.15.7.tar.gz (3.2 MB)
|████████████████████████████████| 3.2 MB 2.1 MB/s
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1:
command: /home/debian/Glacier/env/bin/python3 /tmp/tmp2i9z3x0a_in_process.py prepare_metadata_for_build_wheel /tmp/tmpy5gajdi4
cwd: /tmp/pip-install-xd5clyj9/pyqt5_6e8cea95d8e54117b38e4b3c0c421008
Complete output (31 lines):
Traceback (most recent call last):
File “/tmp/tmp2i9z3x0a_in_process.py”, line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/tmp2i9z3x0a_in_process.py", line 280, in <module>
    main()
  File "/tmp/tmp2i9z3x0a_in_process.py", line 263, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/tmp/tmp2i9z3x0a_in_process.py", line 130, in prepare_metadata_for_build_wheel
    return _get_wheel_metadata_from_wheel(backend, metadata_directory,
  File "/tmp/tmp2i9z3x0a_in_process.py", line 159, in _get_wheel_metadata_from_wheel
    whl_basename = backend.build_wheel(metadata_directory, config_settings)
  File "/tmp/pip-build-env-odovhhdk/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
    project = AbstractProject.bootstrap('wheel',
  File "/tmp/pip-build-env-odovhhdk/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
    project.setup(pyproject, tool, tool_description)
  File "/tmp/pip-build-env-odovhhdk/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 585, in setup
    self.apply_user_defaults(tool)
  File "project.py", line 69, in apply_user_defaults
    super().apply_user_defaults(tool)
  File "/tmp/pip-build-env-odovhhdk/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
    super().apply_user_defaults(tool)
  File "/tmp/pip-build-env-odovhhdk/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
    self.builder.apply_user_defaults(tool)
  File "/tmp/pip-build-env-odovhhdk/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
    raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------WARNING: Discarding 

https://files.pythonhosted.org/packages/e1/57/2023316578646e1adab903caab714708422f83a57f97eb34a5d13510f4e1/PyQt5-5.15.7.tar.gz#sha256=755121a52b3a08cb07275c10ebb96576d36e320e572591db16cfdbc558101594 (from Links for pyqt5) (requires-python:>=3.7). Command errored out with exit status 1: /home/debian/Glacier/env/bin/python3 /tmp/tmp2i9z3x0a_in_process.py prepare_metadata_for_build_wheel /tmp/tmpy5gajdi4 Check the logs for full command output.

I read that to have a user interface with the BBB to my Mac, I could use x11 forwarding. Does this needto be done prior to downloading PyQt5?

If this thread is not closed, I’d like to up it a little. I have the same problem with installing PyQt on a BBB under Debian Bullseyes 11, equipped with a 4Dsystems 3.4" touch screen.
Can anyone help me?

Thanks for your help.

These are available in the Debian archive…

https://packages.debian.org/source/bullseye/pyqt5

sudo apt install python3-pyqt5

Regards,

Thanks @RobertCNelson, you’re always there when I need help :smile:
I’ll try ASAP.

It installed PyQt5 in a few seconds. Thanks a lot!

1 Like