Skip to content

Commit

Permalink
Merge pull request #707 from bitcraze/ataffanel/fix-raspberrypi-bookworm
Browse files Browse the repository at this point in the history
fix raspberrypi bookworm
  • Loading branch information
knmcguire committed Mar 20, 2024
2 parents 9559e54 + 30686ac commit 39474e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
23 changes: 21 additions & 2 deletions docs/installation/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,28 @@ This project requires Python 3.8 - 3.12.
There are a few things to sort out on your machine before you can install the client. Please see the appropriate
section depending on your environment.

### Debian/Ubuntu
### Raspberrypy Bookworm+

On Raspberry bookwork it is required to create a *python venv* to install the client but the system's pyqt6 should still be used.

Install dependencies:
```
sudo apt install -y pipx python3-pyqt6 pyqt6-dev-tools
```

Then, to install the client:
```
pipx install --system-site-packages .
```

The ```--system-site-packages``` is the most important there since it allows to use pyqt we installed just above.
The same flag can be passes to ```python3 -m venv``` in order to create a python venv that can run the client.
The first time ```pipx``` will complain about binaries not being in the path. Rebooting the pie solves the problem and then the client can be launched by typing ```cfclient``` in a console.

For < Ubuntu 20.04 you will need to check first if which version your python is on and if you have 'python3' on your system.
Permission for USB needs to be set as described bellow for Debian/Ubuntu


### Debian/Ubuntu

From a fresh Ubuntu 20.04 system and up, running the client form source requires git, pip and a lib for the Qt GUI.

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def relative(lst, base=''):
'numpy~=1.20',
'vispy~=0.13',
'pyserial~=3.5',
'pyqt6~=6.5',
'PyQt6-sip~=13.5',
'pyqt6>=6.4',
'PyQt6-sip>=13.4',

'pysdl2~=0.9.14 ; platform_system=="Windows" or platform_system=="Darwin"',
'pysdl2-dll==2.24.0 ; platform_system=="Windows" or platform_system=="Darwin"'],
Expand Down

0 comments on commit 39474e6

Please sign in to comment.