asciidisco / asciidisco/plugin.video.netflix
0.13.21/head + Kodi 18rc4/head; unable to edit credentials: "Error Contents: cannot import name HTTPSHandler"
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 213
- PR merge metrics
- No merged PRs in 30d
Description
*I'm submitting a ...*
- [X] bug report
- [ ] feature request
- [X] support request
I've got Kodi
```
18.0-RC4 Git:20181218-2441415bb0 Media Center Kodi
```
installed.
Netflix plugin's installed
```
cd /home/jole/.kodi/addons/plugin.video.netflix
git log | head
commit 277499edb62447bc9ed4319d8478556937ecea40
Author: libdev
Date: Mon Dec 3 01:27:30 2018 +0100
Version bump 0.13.21
commit c2d113597bfee4ca1a4c4e4ec4cfca3ed158ad5d
Author: libdev
Date: Sun Dec 2 20:36:15 2018 +0100
```
python setup includes,
```
pip2 show pycryptodomex
Name: pycryptodomex
Version: 3.4.6
Summary: Cryptographic library for Python
Home-page: http://www.pycryptodome.org
Author: Helder Eijs
Author-email: helderijs@gmail.com
License: UNKNOWN
Location: /usr/lib64/python3.6/site-packages
Requires:
Required-by:
python2
Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from urllib2 import HTTPSHandler
>>>
```
In Kodi, @ just-installed Netflix settings
```
https://i.imgur.com/OCRn9z8.png
```
there's an account pre-populated,
```
30059c
```
I've no idea where that's from. I need to enter *my* credentials.
When I click on it to edit, I just get a dialog
```
Netflix Error
Check the log for more information
```
and in log
```
cat kodi.log
19:44:27.639 T:139930857641728 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type:
Error Contents: cannot import name HTTPSHandler
Traceback (most recent call last):
File "/home/jole/.kodi/addons/plugin.video.netflix/addon.py", line 12, in
from resources.lib.Navigation import Navigation
File "/home/jole/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 28, in
from resources.lib.KodiHelper import KodiHelper
File "/home/jole/.kodi/addons/plugin.video.netflix/resources/lib/KodiHelper.py", line 21, in
from UniversalAnalytics import Tracker
File "/home/jole/.kodi/addons/plugin.video.netflix/resources/lib/UniversalAnalytics/__init__.py", line 1, in
import Tracker
File "/home/jole/.kodi/addons/plugin.video.netflix/resources/lib/UniversalAnalytics/Tracker.py", line 11, in
from urllib2 import Request, HTTPSHandler
ImportError: cannot import name HTTPSHandler
-->End of Python script error report<--
```
Contributor guide
Research direction
Start with the traceback in resources/lib/UniversalAnalytics/Tracker.py and inspect the import reached through resources/lib/KodiHelper.py and resources/lib/Navigation.py. Reproduce the credentials-edit action in Kodi and compare it with the reported Python ImportError. Done means the settings dialog opens without this error and allows credentials to be edited.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100