Giter VIP home page Giter VIP logo

oceaneyes's People

Contributors

duracell80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hanbule

oceaneyes's Issues

More errors when running run.sh

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)

systemd error

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?

Feature Request: Add stop playback / shutdown option.

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)

various build errors

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.