Giter VIP home page Giter VIP logo

Comments (3)

beralt avatar beralt commented on July 24, 2024

You need to install the required Python modules, in this specific case the "requests" package which is used to query TVHeadend. You can install this package using pip, which you need to bootstrap first. To do so you need to open a shell and execute:

curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo python3 -m pip install requests

The first line downloads the bootstrap script for pip, the second line executes this script with root-privileges, the third line installs the requests package.

from horepg.

schumi2004 avatar schumi2004 commented on July 24, 2024

That's not ideal. Why bootstrap and install modules manually to get a package working.
This undermines the whole purpose of a package.

from horepg.

beralt avatar beralt commented on July 24, 2024

The previous version of HorEPG used the built-in HTTP client module, and therefore did not depend on any external modules for Python. The implementation of ACL for the TVHeadend interface requires Basic Authentication, which is not covered by the built-in module.

The choice for an external Python package is not that uncommon, and for Python 2 there is a package provided by Synology (called "Python module") which solves this problem for Python 2. There is no such package for Python 3.

I understand that installing pip, and installing additional Python packages is a bit involved. I will look into bundeling requests with the HorEPG package to see if that solves the problem.

from horepg.

Related Issues (13)

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.