current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. If two topological spaces have the same topological properties, are they homeomorphic? Can the editor of a book add citations of individual chapters to his own citation count? centos python root share|improve this question asked Oct 30 '15 at 7:56 Ch'en Meng 1085 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted You Source
Need an account? Xi Joined:04/09/2007 Posts:784 January 04, 2010 05:04:10 Last update: January 07, 2010 15:59:25 This is the error: >>> import urllib2 >>> f = urllib2.urlopen('https://www.google.com') Traceback (most recent call last): File "
Related Posts: ConfigParser Installation Error - python setup.py egg_info failed with error code 1 [Solved] Python Installation Error - Sorry: UnicodeError: escapes not supported can't load unicodedata module [Solved] Error: md5 Read more. Is it dangerous to use default router admin passwords if only trusted users are allowed on the network? Best way to repair rotted fuel line?
This would link the SSL library statically to Python. # Socket module helper for socket(2) #_socket socketmodule.c # Socket module helper for SSL support; you must comment out the other # UPDATE: thanks for Ben James and sth the problem is detected => add 'http://' Now the question is refined: Is it possible to handle such cases automatically with some builtin function Since without root, one cannot use yum to install packages, so I tried ./configure --prefix=$HOME/tools/python make make install and it did work. itseco commented Aug 11, 2013 Thank you, now it's working but only if I run sublime as root, if I do it with an unprivileged user I'm unable to see the
Tic Tac Toe - C++14 Name for the peak of a plateau What to do when majority of the students do not bother to do peer grading assignment? 2011 MacBook Pro Some web sites suggest editing the file Modules/setup.dist, uncomment the lines starting with _ssl, and making changes to the SSL path. Founded in 2008, Techglimpse is run by Digisparks Infotech. very lightweight low power microcontroller with memory?
more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Couldn't find index page for 'regex' (maybe misspelled?) A possible fix to this error is to install SSL development libraries and header files. Please do not forget to mark the answer as correct one if it fixed your problem :) –Mikko Ohtamaa Feb 10 '15 at 7:59 add a comment| Your Answer draft Number sets symbols in LaTeX Development of retrosynthesis plan Dealing with a nasty recruiter Dozens of earthworms came on my terrace and died there Split python tuple in subtuples with capacity
However, for me, I can only ask for this for a while, and after I install Python, the admin will cancel my privilege. this contact form more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I tried Anaconda today, and it works like a charm! –Ch'en Meng Nov 2 '15 at 9:17 Upvoted for Anaconda. –izaac Nov 10 '15 at 3:45 add a comment| Browse other questions tagged python urllib2 httprequest or ask your own question.
Join them; it only takes a minute: Sign up ValueError: unknown url type in urllib2, though the url is fine if opened in a browser up vote 16 down vote favorite What do you call someone without a nationality? So I decided to edit the python script and renamed all https URL to http, but the error still remains. However the URL is valid, as I could open it successfully via http://cloudindet.com/urlopen-error/urlopen-error-unknown-url-type-media-yum.html https://docs.python.org/3/library/http.client.html Please clarify how you installed Python.
Unfortunately again, Python showed a line on the screen, that these flags are unknown. Already have an account? Then you can build and install Python: make make install Note that after the first make a list of modules that were not build is displayed. '_ssl' should NOT be listed.
Once you confirm that the Python is supporting HTTPS, try compiling packstack again and mostly likely the error will vanish. Why is the bridge on smaller spacecraft at the front but not in bigger vessels? Yesterday was birthday of Jon or Yesterday was THE birthday of Jon? python urllib2 httprequest share|improve this question edited Apr 28 '11 at 19:05 asked Apr 28 '11 at 18:54 Nik 6231513 add a comment| 3 Answers 3 active oldest votes up vote
Developed and Maintained by DigisparksInfotech About Us Contact Us Advertise Reviews Terms & Privacy Subscribe Facebook Twitter Youtube RSS Stumble Upon Google+ Share Tweet Share Pin Stumble Log in to continue Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Strange device identification Why is the size of my email so much bigger than the size of its attached files? http://cloudindet.com/urlopen-error/urlopen-error-unknown-url-type-media.html Copyright ©2009-2015 Techglimpse.com, All rights reserved.
asked 5 years ago viewed 16309 times active 3 years ago Linked 0 Python urllib2 ensuring url is well-formed Related 0urllib2 is throwing an error for an url , while it's Level? Then please be generous and support Xmodulo! Before doing so, you must make sure ssl is installed on your system: sudo apt-get install libssl-dev Then you download the python sources and do: ./configure --prefix=
If you need to install multiple versions of Python, then it's important to do it in a right way, else the entire Python will break and plus the system tools such as asked 1 year ago viewed 1512 times active 1 year ago Related 2linking problems when installing python module and dependencies as non-root1Installing python module pyexiv2 on CentOS?4Installing python modules for python2.61How AOL OpenID MyOpenID LiveJournal Flickr WordPress VeriSign ClaimID Username OpenID URL Username Username Username Username Username Username Log in Need an account? Python has only support for HTTPS if it was compiled with HTTPS support.
Facebook Twitter Github OpenID providers Yahoo! Reload to refresh your session. Notify me of new posts by email. « How to disable guest login in Ubuntu desktop How to disable a particular AppArmor profile on Ubuntu » Linux FAQ categories Audio CentOS How to create a custom theme in SXA?
Go forth and be awesome. URL: