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

Installation error on a Pi Zero W #203

Closed
undeterred965 opened this issue Oct 3, 2023 · 5 comments
Closed

Installation error on a Pi Zero W #203

undeterred965 opened this issue Oct 3, 2023 · 5 comments

Comments

@undeterred965
Copy link

Received the below error upon installing and asked me to report...
Background information:

  1. Clean installation of Raspberry Pi OS Lite (bullseye) with /boot/config.txt containing the line dtoverlay=hifiberry-dac and the following commented out #dtparam=audio=on
  2. Followed the installation guide https://github.com/coderholic/pyradio/blob/master/linux-pipx.md#system-dependent-installation---debian
pi@radio:~ $ cd
pi@radio:~ $ python3 install.py

                     _____       _____           _ _
                    |  __ \     |  __ \         | (_)
                    | |__) |   _| |__) |__ _  __| |_  ___
                    |  ___/ | | |  _  // _` |/ _` | |/ _ \
                    | |   | |_| | | \ \ (_| | (_| | | (_) |
                    |_|    \__, |_|  \_\__,_|\__,_|_|\___/
                            __/ |
                           |___/

                               installation script
                                   running on

                   _____       _   _                    ____
                  |  __ \     | | | |                  |___ \
                  | |__) |   _| |_| |__   ___  _ __      __) |
                  |  ___/ | | | __| '_ \ / _ \| '_ \    |__ <
                  | |   | |_| | |_| | | | (_) | | | |   ___) |
                  |_|    \__, |\__|_| |_|\___/|_| |_|  |____/
                          __/ |
                         |___/



Installing PyRadio...
Using directory: "/home/pi/.config/pyradio/data/.cache"
Downloading PyRadio source code...
  url: "https://github.com/coderholic/pyradio/archive/0.9.2.13.zip"
  filename: "/home/pi/.config/pyradio/data/.cache/pyradio-0.9.2.13.zip"
Extracting RyRadio source code...
Traceback (most recent call last):
  File "/usr/bin/pipx", line 11, in <module>
    load_entry_point('pipx==0.12.3.1', 'console_scripts', 'pipx')()
  File "/usr/lib/python3/dist-packages/pipx/main.py", line 496, in cli
    exit(run_pipx_command(parsed_pipx_args, binary_args))
  File "/usr/lib/python3/dist-packages/pipx/main.py", line 147, in run_pipx_command
    commands.install(
  File "/usr/lib/python3/dist-packages/pipx/commands.py", line 312, in install
    if venv.get_venv_metadata_for_package(package).package_version is None:
  File "/usr/lib/python3/dist-packages/pipx/Venv.py", line 65, in get_venv_metadata_for_package
    data = json.loads(
  File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
    return cls(**kw).decode(s)
TypeError: __init__() got an unexpected keyword argument 'encoding'
The installation has failed!!!
Please report this at https://github.com/coderholic/pyradio/issues



An error occured during the installation!
This should have never had happened...
Please report this at http://github.com/coderholic/pyradio/issues
@s-n-g
Copy link
Collaborator

s-n-g commented Oct 4, 2023

Hi @undeterred965

It seems this is a known python3.9/pipx bug?

pypa/pipx#702

Can you please try this?

cd /home/pi/.config/pyradio/data/.cache/
unzip pyradio-0.9.2.13.zip
cd pyradio-0.9.2.13/devel
sed -i 's/pipx install /python3 -m pipx install /' build_install_pyradio
cd ..
./devel/build_install_pyradio

@undeterred965
Copy link
Author

Thanks for getting back to me so quickly.
Install seemed to go fine. I received the following message

Successfully installed pyradio-0.9.2.13

@s-n-g
Copy link
Collaborator

s-n-g commented Oct 4, 2023

This is great!
Can you actually execute pyradio?

@undeterred965
Copy link
Author

Executed and played radio stream no4 Celtic from the UK.
Thanks for your help.

@s-n-g
Copy link
Collaborator

s-n-g commented Oct 4, 2023

Ok, great!
I'm updating the installation script!

Closing this one
Thank you for reporting!

@s-n-g s-n-g closed this as completed Oct 4, 2023
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