Comments (3)
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.
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.
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)
- No episode numbers HOT 2
- error message when executing horepgd HOT 1
- REQ: Use ending wildcard * to find/match channel names HOT 2
- method convert_time() instance issue HOT 1
- Grab all UPC/Horizon.tv countries
- No data available / geen info beschikbaar HOT 1
- NEW Horizon api
- Retrieving EPG fails due to 404 error on 'web-api-salt.horizon.tv'
- salt & pepper offline :( HOT 4
- Systemd doesn't support an uncontrolled (no pidfile) Daemon with a fork :) HOT 1
- Script stops after an internal server error HOT 1
- No data retrieved from oorboekje for radio channels. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horepg.