cvarelaruiz / owi2plex

Exporter of EPG from OpenWebif to XMLTV to use with Plex
Mozilla Public License 2.0
27 stars 6 forks source link

Error when running a command #4

Closed gelsas closed 5 years ago

gelsas commented 5 years ago

I just tried to run the owi2plex inside a standart python docker image from docker hub.

I can ping my enigma2 receiver which is running openwebif from inside the docker.

When running the command I get this:

# pip install owi2plex                                                                                                                                                                                                                                                                                                                                                                                     
Collecting owi2plex                                                                                                                                                                                                                                                                                                                                                                                        
  Downloading https://files.pythonhosted.org/packages/05/38/9ba52cb722c30ca4eb8a637e731d59ca7261c05967f8404cc42262e03df7/OWi2Plex-0.1a3-py2.py3-none-any.whl                                                                                                                                                                                                                                               
Collecting future==0.17.1 (from owi2plex)                                                                                                                                                                                                                                                                                                                                                                  
  Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz (829kB)                                                                                                                                                                                                                                                      
    100% |████████████████████████████████| 829kB 7.8MB/s                                                                                                                                                                                                                                                                                                                                                  
Collecting click==7.0 (from owi2plex)                                                                                                                                                                                                                                                                                                                                                                      
  Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)                                                                                                                                                                                                                                             
    100% |████████████████████████████████| 81kB 5.3MB/s                                                                                                                                                                                                                                                                                                                                                   
Collecting lxml==4.3.2 (from owi2plex)                                                                                                                                                                                                                                                                                                                                                                     
  Downloading https://files.pythonhosted.org/packages/af/f7/1d7dc440f4e1b1362c3577b4cf6807fd036d241c33754a8e4769f51172e7/lxml-4.3.2-cp37-cp37m-manylinux1_x86_64.whl (5.7MB)                                                                                                                                                                                                                               
    100% |████████████████████████████████| 5.7MB 4.1MB/s                                                                                                                                                                                                                                                                                                                                                  
Collecting requests==2.21.0 (from owi2plex)                                                                                                                                                                                                                                                                                                                                                                
  Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)                                                                                                                                                                                                                                       
    100% |████████████████████████████████| 61kB 8.6MB/s                                                                                                                                                                                                                                                                                                                                                   
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.21.0->owi2plex)                                                                                                                                                                                                                                                                                                                                         
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)                                                                                                                                                                                                                                        
    100% |████████████████████████████████| 143kB 10.8MB/s                                                                                                                                                                                                                                                                                                                                                 
Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->owi2plex)                                                                                                                                                                                                                                                                                                                                         
  Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)                                                                                                                                                                                                                                       
    100% |████████████████████████████████| 122kB 10.3MB/s                                                                                                                                                                                                                                                                                                                                                 
Collecting certifi>=2017.4.17 (from requests==2.21.0->owi2plex)                                                                                                                                                                                                                                                                                                                                            
  Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB)                                                                                                                                                                                                                                     
    100% |████████████████████████████████| 163kB 11.0MB/s                                                                                                                                                                                                                                                                                                                                                 
Collecting idna<2.9,>=2.5 (from requests==2.21.0->owi2plex)                                                                                                                                                                                                                                                                                                                                                
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)                                                                                                                                                                                                                                              
    100% |████████████████████████████████| 61kB 8.5MB/s                                                                                                                                                                                                                                                                                                                                                   
Building wheels for collected packages: future                                                                                                                                                                                                                                                                                                                                                             
  Building wheel for future (setup.py) ... done                                                                                                                                                                                                                                                                                                                                                            
  Stored in directory: /root/.cache/pip/wheels/0c/61/d2/d6b7317325828fbb39ee6ad559dbe4664d0896da4721bf379e                                                                                                                                                                                                                                                                                                 
Successfully built future                                                                                                                                                                                                                                                                                                                                                                                  
Installing collected packages: future, click, lxml, chardet, urllib3, certifi, idna, requests, owi2plex                                                                                                                                                                                                                                                                                                    
Successfully installed certifi-2019.3.9 chardet-3.0.4 click-7.0 future-0.17.1 idna-2.8 lxml-4.3.2 owi2plex-0.1a3 requests-2.21.0 urllib3-1.24.1                                                                                                                                                                                                                                                            
# owi2plex -h 192.168.1.126 -o /epg/epg.xml                                                                                                                                                                                                                                                                                                                                                                
Traceback (most recent call last):                                                                                                                                                                                                                                                                                                                                                                         
  File "/usr/local/bin/owi2plex", line 10, in <module>                                                                                                                                                                                                                                                                                                                                                     
    sys.exit(main())                                                                                                                                                                                                                                                                                                                                                                                       
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__                                                                                                                                                                                                                                                                                                                       
    return self.main(*args, **kwargs)                                                                                                                                                                                                                                                                                                                                                                      
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main                                                                                                                                                                                                                                                                                                                           
    rv = self.invoke(ctx)                                                                                                                                                                                                                                                                                                                                                                                  
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke                                                                                                                                                                                                                                                                                                                         
    return ctx.invoke(self.callback, **ctx.params)                                                                                                                                                                                                                                                                                                                                                         
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke                                                                                                                                                                                                                                                                                                                         
    return callback(*args, **kwargs)                                                                                                                                                                                                                                                                                                                                                                       
  File "/usr/local/bin/owi2plex.py", line 355, in main                                                                                                                                                                                                                                                                                                                                                     
    list_bouquets=list_bouquets)                                                                                                                                                                                                                                                                                                                                                                           
  File "/usr/local/bin/owi2plex.py", line 55, in getBouquets                                                                                                                                                                                                                                                                                                                                               
    bouquets = bouquets_data.json()['bouquets']                                                                                                                                                                                                                                                                                                                                                            
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json                                                                                                                                                                                                                                                                                                                      
    return complexjson.loads(self.text, **kwargs)                                                                                                                                                                                                                                                                                                                                                          
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads                                                                                                                                                                                                                                                                                                                                     
    return _default_decoder.decode(s)                                                                                                                                                                                                                                                                                                                                                                      
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode                                                                                                                                                                                                                                                                                                                                     
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())                                                                                                                                                                                                                                                                                                                                                      
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode                                                                                                                                                                                                                                                                                                                                 
    raise JSONDecodeError("Expecting value", s, err.value) from None                                                                                                                                                                                                                                                                                                                                       
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)  

What does that mean ? (I also opened this as an issue on github, not sure which plattform you prefer for this)

flosoft commented 4 years ago

I have the exact same issue. Did you ever get this resolved?