duracell80 / oceaneyes Goto Github PK
View Code? Open in Web Editor NEWPython API for Ocean Digital Internet Radios
License: GNU General Public License v3.0
Python API for Ocean Digital Internet Radios
License: GNU General Public License v3.0
Trying to install the program and getting this issue:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
How to address?
Add a dummy/null station that can be tuned to to cause playback to stop on a given radio device. In this way the radio may then timeout and shutdown after no playback is found.
(Conversely there's currently no way to "wake up" the device remotely)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for PyAudio (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/pyaudio
copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-311/pyaudio
running build_ext
building 'pyaudio._portaudio' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/src
creating build/temp.linux-x86_64-cpython-311/src/pyaudio
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/include -I/usr/include -I/home/avetik/python-apps/oceaneyes/include -I/usr/include/python3.11 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-311/src/pyaudio/device_api.o
In file included from src/pyaudio/device_api.c:1:
src/pyaudio/device_api.h:7:10: fatal error: Python.h: No such file or directory
7 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyAudio
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
install.sh: 45: source: not found
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Configuration file /lib/systemd/system/oe.service is marked executable. Please remove executable permission bits. Proceeding anyway.
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
[i] Installed requirements in the venv ...
Package Version
---------- -------
pip 23.0.1
setuptools 66.1.1
Getting a few more issues here as I'm trying to use the app:
avetik@lobya:~/python-apps/oceaneyes $ sh run.sh run.sh: 17: [[: not found [i] Running App from within ... /home/avetik/python-apps/oceaneyes [i] Radio @192.168.1.1 status: Offline Traceback (most recent call last): File "/home/avetik/python-apps/oceaneyes/app/main.py", line 222, in <module> main() File "/home/avetik/python-apps/oceaneyes/app/main.py", line 103, in main fav_remaining = oe.get_remaining("fav") ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/avetik/python-apps/oceaneyes/app/oceaneyes.py", line 542, in get_remaining f = int(get_total("fav")) ^^^^^^^^^^^^^^^^ File "/home/avetik/python-apps/oceaneyes/app/oceaneyes.py", line 534, in get_total f = c[2].split(",") ~^^^ IndexError: list index out of range INFO:root:[i] FastAPI available INFO:root:[i] Starting FastAPI as background task sh: 1: kill: Illegal number: 0.0 INFO: Started server process [4901] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://192.168.1.237:1929 (Press CTRL+C to quit)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.