Skip to content

Raspberry Pi w/Ubuntu 20.04 install notes #15

Closed
@TBSDrJ

Description

@TBSDrJ

I ran the pip3 install on a Raspberry Pi running Ubuntu 20.04, so:
sudo pip install artemis_uploader-3.0.0.tar.gz
For some reason, the apt install of python3-pyqt5.qtserialport did not occur.
Maybe a notation in the README install documentation that this might need to be installed separately would be in order.

I don't see why that failed, because, of course fixing it so that it does install would be better.

When I re-run the pip3 install, with the python3-pyqt5.qtserialport package removed, I get:
sudo pip3 install artemis_uploader-3.0.0.tar.gz Processing ./artemis_uploader-3.0.0.tar.gz Requirement already satisfied: darkdetect in /usr/local/lib/python3.8/dist-packages (from artemis-uploader==3.0.0) (0.8.0) Requirement already satisfied: pycryptodome in /usr/local/lib/python3.8/dist-packages (from artemis-uploader==3.0.0) (3.19.0) Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from artemis-uploader==3.0.0) (3.4) Building wheels for collected packages: artemis-uploader Building wheel for artemis-uploader (setup.py) ... done Created wheel for artemis-uploader: filename=artemis_uploader-3.0.0-py3-none-any.whl size=1923014 sha256=249344f040b2f404aea8f4850a1843d65f2410d6441265b33f79dc8eef8f603f Stored in directory: /root/.cache/pip/wheels/42/e5/48/9b83c5fc187c15ead2e728618ee05b89e7497de632b19b2343 Successfully built artemis-uploader Installing collected packages: artemis-uploader Successfully installed artemis-uploader-3.0.0

But then running it:
artemis_upload Traceback (most recent call last): File "/usr/local/bin/artemis_upload", line 5, in <module> from artemis_uploader import startArtemisUploader File "/usr/local/lib/python3.8/dist-packages/artemis_uploader/__init__.py", line 44, in <module> from .artemis_uploader import startArtemisUploader File "/usr/local/lib/python3.8/dist-packages/artemis_uploader/artemis_uploader.py", line 61, in <module> from PyQt5.QtSerialPort import QSerialPortInfo ModuleNotFoundError: No module named 'PyQt5.QtSerialPort'

I checked the setup.py, and the install_deps on line 75 is clearly working, and I checked the values for the conditional on line 79, and I get values that should trigger it:
`Python 3.8.10 (default, Nov 22 2023, 10:22:35)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from platform import machine, system
machine()
'aarch64'
system()
'Linux'`

Once I separately apt installed python3-pyqt5.qtserialport all is well, and artemis_upload works great.

So... 🤷 At least a note in the README.md would be helpful that, if you get a crash, then running sudo apt-get install python3-pyqt5 python3-pyqt5.qtserialport might solve your problems.

I am running:
Ubuntu 20.04.6 LTS, 64-bit, Server edition, then apt installed ubuntu-desktop on top of it. Installed from Raspberry Pi OS Installer for Mac (Ubuntu 20 Desktop was not available).
Linux kernel is 5.4.0-1100-raspi (from uname -r)
running on Raspberry Pi 4B, 4GB RAM
Using built-in Python 3.8.10, added pip 23.3.2 using get-pip.py from PyPA.
Running apt -v returns apt 2.0.10 (arm64)

I hope that is enough information. Thank you for producing the board and the installer and the uploader and the firmware and all of it!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions