-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin no longer works due to urllib2 errors on Ubuntu #14
Comments
Hey @bbogart, what happens if you |
@noam09 I don't recall ever installing pyOpenSSL. The following indicates to me that I have a packaged version,
but I can't find any such package installed:
pip does see pyOpenSSL installed:
|
bbogart, I uninstalled it using Problem solved on my Kodi box (running Linux Mint 18 Sarah). |
Can confirm, sudo pip uninstall pyOpenSSL fixes this issue on a recently updated Ubuntu 16.04.1 LTS install 11:04:27 T:140511798335232 NOTICE: [plugin.video.youtube] Running: YouTube (5.3.7) on Jarvis (Kodi-16.1) with Python 2.7.12 |
@bbogart, |
@noam09, I'm not sure how successful an upgrade would be if it isn't part of the usual Ubuntu aptitude upgrade rollout. I've experimented with it on my Mint 18 box and it fails to compile (setuptools is installed). Safest approach would be to just delete it for the moment until another official Python update comes through for Ubuntu. |
Home directory flag does not change anything:
pyOpenSSL is indeed installed in /usr/lib/python2.7/dist-packages:
I manually removed both I'm not sure how things got to this state, I did not even have pip installed on this machine until I started debugging this issue. |
It must have been a recent Python update, I suspect. Hopefully the next update for Ubuntu distros will resolve that. |
Hi guys, I have the same problem in Youtube and in Tunein addons. Phyton... I try each solution what U wrote, but not working. :( |
On Ubuntu 16.10 the following solves this problem for me:
I'm not sure you need both cryptography > 1.7 and pyOpenSSL > 16.2 - just upgrading the latter may be enough, but its probably a good idea to do both. Ubuntu 16.10 bunles cryptography 1.5 and pyOpenSSL 16.1 - which together exhibit this problem. I don't think its a bug in the plugin - I've seen this problem with other software as well. |
It's definitely not a bug in the plugin itself. Before finding a fix for my system, the same issue occurred when attempting to use the SoundCloud plugin and others as well. Same method, same error. |
Hi I use Samba on Ubuntu 16.04, so that use python. No solution for me at now... Tried 16.10 Ubuntu too. Kodi is last stable, but I think something went wrong in update... that problem come out after one upgrade... |
@FulesZacdko - samba is a system service so you should be able to upgrade the Python libraries for the user running Kodi without affecting samba - see my instructions above. |
@guss77 Working!, thank you! |
Latest jdf76 on Fedora 25 with Kodi Krypton still has the problem, whether it is with pyOpenSSL 16 (stock) or upgraded to pyOpenSSL 17. See:
I can confirm the pyOpenSSL version being used, with a bit of hacking I did right where the exception is being fired:
|
Please reopen this bug. This is still a problem with most Linux systems out there, and it ought to be resolved so that we can use the addon. Related: pyca/pyopenssl#542 |
After hours of struggling, I got the mufuggen fix:
That's right — just importing the OpenSSL module before importing urllib* fixes it all. No need to downgrade anything. Just do this and that's it. But do it on every module that imports urllib*. |
Referencing parent project: Kolifanes/plugin.video.youtube#131 |
import OpenSSL does not work in my windows environment, the resolution that seems to have worked for all cases I've participated in was "pip install pyopenssl==16.2.0" and only affects linux environments with pyopenssl 16.1.0 from what I have seen. |
@Rudd-O, apologize I mis-read originally. In order to try to resolve this fully I have replaced the add-on's requests module with script.module.requests (#28) in the current master. Any feedback or confirmation on resolution is appreciated. Zip including the change: https://github.com/jdf76/plugin.video.youtube/releases/download/5.3.11-alpha/plugin.video.youtube-5.3.11.alpha2.zip |
.. did the trick |
What about if i just "pip install --upgrade pyOpenSSL" will that not do the trick? |
If you pip install anything onto your system Python installation, you're asking for trouble in the future, even if it works now.
…On June 23, 2017 11:16:39 AM GMT+02:00, marksev1 ***@***.***> wrote:
What about if i just "pip install --upgrade pyOpenSSL" will that not do
the trick?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#14 (comment)
--
Rudd-O
http://rudd-o.com/
|
so now i should pip uninstall it :). |
I can no longer use YouTube 5.3.6 on Kodi 16.1 using Ubuntu 16.04.1 (up to date as of today). Videos -> Add-ons -> YouTube leads to the following error:
Uninstalling and reinstalling did not change anything.
The text was updated successfully, but these errors were encountered: