Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on Latest Bullseye #20

Open
mpv1953 opened this issue Oct 26, 2023 · 8 comments
Open

Install on Latest Bullseye #20

mpv1953 opened this issue Oct 26, 2023 · 8 comments

Comments

@mpv1953
Copy link

mpv1953 commented Oct 26, 2023

I am trying to install bright pi on a PiZero 2W with Bullseye (32bit). I am getting the following messages:


SetuptoolsDeprecationWarning: setup.py install is deprecated.


Please avoid running setup.py directly.
Instead, use pypa/build, pypa/installer or other standards-based tool


EasyInstallDeprecationWarning: easy_install command is deprecated.


I am not experienced enough to work around these issues. Can you assist?
Thanks,
Mike V

@tvoverbeek
Copy link
Contributor

on my 32-bit Bullseye it installs without problems..
Here is the log from the install:

tvo@rpi32-deb11:~ $ git clone https://github.com/PiSupply/Bright-Pi.git
Cloning into 'Bright-Pi'...
remote: Enumerating objects: 116, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 116 (delta 3), reused 11 (delta 1), pack-reused 100
Receiving objects: 100% (116/116), 10.59 MiB | 7.85 MiB/s, done.
Resolving deltas: 100% (40/40), done.
tvo@rpi32-deb11:~ $ cd Bright-Pi/
tvo@rpi32-deb11:~/Bright-Pi $ sudo python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/brightpi
copying brightpi/brightpilib.py -> build/lib/brightpi
copying brightpi/__init__.py -> build/lib/brightpi
running build_scripts
creating build/scripts-3.9
copying and adjusting src/brightpi-test.py -> build/scripts-3.9
changing mode of build/scripts-3.9/brightpi-test.py from 644 to 755
running install_lib
creating /usr/local/lib/python3.9/dist-packages/brightpi
copying build/lib/brightpi/brightpilib.py -> /usr/local/lib/python3.9/dist-packages/brightpi
copying build/lib/brightpi/__init__.py -> /usr/local/lib/python3.9/dist-packages/brightpi
byte-compiling /usr/local/lib/python3.9/dist-packages/brightpi/brightpilib.py to brightpilib.cpython-39.pyc
byte-compiling /usr/local/lib/python3.9/dist-packages/brightpi/__init__.py to __init__.cpython-39.pyc
running install_scripts
copying build/scripts-3.9/brightpi-test.py -> /usr/local/bin
changing mode of /usr/local/bin/brightpi-test.py to 755
running install_egg_info
Writing /usr/local/lib/python3.9/dist-packages/brightpi-2.0.egg-info
tvo@rpi32-deb11:~/Bright-Pi $

Are you sure your python3, python3-distutils and oython3-setuptools are uo-to-date?

@mpv1953
Copy link
Author

mpv1953 commented Oct 27, 2023 via email

@mpv1953
Copy link
Author

mpv1953 commented Oct 27, 2023

I forgot to mention something. Does it matter if Bright-Pi/ is not downloaded directly to ~pi? Mine is in /home/pi/projects/Bright-Pi.
Thanks,
Mike

@tvoverbeek
Copy link
Contributor

Should not matter.
How did you download? Did you execute curl -sSL https://pisupp.ly/brightpicode | bash while in /home/pi/projects/Bright-Pi?

@mpv1953
Copy link
Author

mpv1953 commented Oct 27, 2023 via email

@tvoverbeek
Copy link
Contributor

Right now I do not know why it does not wok for you.
check if there is something in /usr/local/lib/python3.x/dist-packages and in /usr/local/bin.
Maybe it did install in spite of the warnings.

@mpv1953
Copy link
Author

mpv1953 commented Oct 28, 2023 via email

@tvoverbeek
Copy link
Contributor

The install procedure copies the brightpi directory from https://github.com/PiSupply/Bright-Pi/tree/master/brightpi to /usr/local/lib/python3.9/dist-packages

tvo@rpi32-deb11:~ $ ls -l /usr/local/lib/python3.9/dist-packages/brightpi
total 16
-rw-r--r-- 1 root root 7572 Oct 27 18:58 brightpilib.py
-rw-r--r-- 1 root root   35 Oct 27 18:58 __init__.py
drwxr-xr-x 2 root root 4096 Oct 27 18:59 __pycache__
tvo@rpi32-deb11:~ $

The __pycache__ directory contains the byte compiled .py files.
It will be created automatically when you run a program using the brightpilib library

The src/brightpi-tet.py is copied to /usr/local/bin:

tvo@rpi32-deb11:~ $ ls -l /usr/local/bin/*.py
-rwxr-xr-x 1 root root 1993 Oct 27 18:59 /usr/local/bin/brightpi-test.py
tvo@rpi32-deb11:~ $

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants