When I'm trying to run file, I'm getting this error:
` (venv)root@openmediavault:/home/TVProxy/tvhProxy-master# python2.7 tvhProxy.py
Traceback (most recent call last):
File "tvhProxy.py", line 16, in <module>
'tunerCount': int(os.environ.get('TVH_TUNER_COUNT')) or 6, # number of tuners in tvh
TypeError: int() argument must be a string or a number, not 'NoneType'`
TVH is in the same machine, and nginx is already configured in port 80 por the proxy.
config = { 'bindAddr': str(os.environ.get('TVH_BINDADDR')) or '', 'tvhURL': str(os.environ.get('TVH_URL')) or 'http://user:pass@localhost', 'tvhProxyURL': str(os.environ.get('TVH_PROXY_URL')) or 'http://localhost', 'tunerCount': int(os.environ.get('TVH_TUNER_COUNT')) or 6, # number of tuners in tvh 'tvhWeight': int(os.environ.get('TVH_WEIGHT')) or 300, # subscription priority 'chunkSize': os.environ.get('TVH_CHUNK_SIZE') or 1024*1024 # usually you don't need to edit this
If I force the variables to be 6 and 300 (or any int). I get this error:
Traceback (most recent call last): File "tvhProxy.py", line 110, in <module> http.serve_forever() File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/baseserver.py", line 360, in serve_forever self.start() File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/baseserver.py", line 304, in start self.init_socket() File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 1451, in init_socket StreamServer.init_socket(self) File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/server.py", line 127, in init_socket self.socket = self.get_listener(self.address, self.backlog, self.family) File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/server.py", line 138, in get_listener return _tcp_listener(address, backlog=backlog, reuse_addr=cls.reuse_addr, family=family) File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/server.py", line 228, in _tcp_listener sock.bind(address) File "<string>", line 1, in bind socket.gaierror: [Errno -2] Name or service not known: ('None', 5004)
When I'm trying to run file, I'm getting this error:
https://pastebin.com/LNxxPUp4
TVH is in the same machine, and nginx is already configured in port 80 por the proxy.
config = { 'bindAddr': str(os.environ.get('TVH_BINDADDR')) or '', 'tvhURL': str(os.environ.get('TVH_URL')) or 'http://user:pass@localhost', 'tvhProxyURL': str(os.environ.get('TVH_PROXY_URL')) or 'http://localhost', 'tunerCount': int(os.environ.get('TVH_TUNER_COUNT')) or 6, # number of tuners in tvh 'tvhWeight': int(os.environ.get('TVH_WEIGHT')) or 300, # subscription priority 'chunkSize': os.environ.get('TVH_CHUNK_SIZE') or 1024*1024 # usually you don't need to edit this
If I force the variables to be 6 and 300 (or any int). I get this error:
Traceback (most recent call last): File "tvhProxy.py", line 110, in <module> http.serve_forever() File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/baseserver.py", line 360, in serve_forever self.start() File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/baseserver.py", line 304, in start self.init_socket() File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 1451, in init_socket StreamServer.init_socket(self) File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/server.py", line 127, in init_socket self.socket = self.get_listener(self.address, self.backlog, self.family) File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/server.py", line 138, in get_listener return _tcp_listener(address, backlog=backlog, reuse_addr=cls.reuse_addr, family=family) File "/home/TVProxy/tvhProxy-master/venv/local/lib/python2.7/site-packages/gevent/server.py", line 228, in _tcp_listener sock.bind(address) File "<string>", line 1, in bind socket.gaierror: [Errno -2] Name or service not known: ('None', 5004)
https://pastebin.com/M4ZYVm5k
Thank you in advance, and thank you for your amazing work