Read more. What would have happened to the world if the sepoy mutiny of 1857 had suceeded? Support Xmodulo Did you find this tutorial helpful? Owner wbond commented Aug 10, 2013 This should be fixed if you go back to the install page and run the new snippet of python. check over here
If two topological spaces have the same topological properties, are they homeomorphic? 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 Join them; it only takes a minute: Sign up Python and urllib HTTPS request:
urllib2 won't make that assumption for you; you need to prefix it with http://. On Debian, Ubuntu or Linux Mint: $ sudo yum install libssl-devOn CentOS, Fedora or RHEL: $ sudo yum install openssl-devel Download this article as ad-free PDF (made possible Why is C# Dim a Chord in B Minor? the code is the following: import urllib2 req = urllib2.Request('www.tattoo-cover.co.uk') req.add_header('User-agent','Mozilla/5.0') result = urllib2.urlopen(req) it outputs ValueError and the program crushes for the URL in the example.
When I access the url in a browser, it works fine. Founded in 2008, Techglimpse is run by Digisparks Infotech. Browse other questions tagged python python-3.4 or ask your own question. 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
share|improve this answer answered Apr 28 '11 at 18:57 Ben James 61.7k13140142 add a comment| up vote 5 down vote You have to use a complete URL including the protocol, not A symptom of this error looks like the following. TNG Season 5 Episode 15 - Is the O'Brien newborn child possessed, and is this event ever revisited/resolved/debunked? HTTPS support is only available if the socket module was compiled with SSL support.
Unfortunately again, Python showed a line on the screen, that these flags are unknown. By default, Python will not understand HTTPS until and unless it's complied with OpenSSL support. You may need to refer this guide to compile Python with SSL support. 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 Magic Item Distribution?
Best way to repair rotted fuel line? I had compiled python without openssl. Looking for GitHub, Facebook, or Twitter log in? Not the answer you're looking for?
alanhamlett commented Aug 10, 2013 Thanks! check my blog sysbench安装(CentOS5.8\MySQL5.6\sysbench-0.4.12) shao424: 很详细，很好解决了我的问题。 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法！ ma15732625261: 第二种 Cassandra研究报告 mystylezfz: @lijunwyf:Datastax 让MySQL同时执行多条SQL语句的解决办法 qq_26684469: 肥肠感谢博主 Cassandra研究报告 IToBeNo_1: 非常厉害 RabbitMQ概念及环境搭建（五）与web的整合 ukyo1: 唉，又蹦出一个断章取义的。虽然代码上体现出 http 协议，但这只是个协商URL，用来获取接口参数的... How much more than my mortgage should I charge for rent? Is there a word for "timeless" that doesn't imply the passage of time?
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 rarity? Sign up free.
wbond closed this Aug 10, 2013 alanhamlett commented Aug 10, 2013 sublime.wbond.net redirects to https, so using http still causes the error. Go to https://www.continuum.io/downloads to get Anaconda which has all of these packages listed here: http://docs.continuum.io/anaconda/pkg-docs including libFFI, openssl, and zlib. Hence, I come here and raise the question: how to install Python with zlib, openssl and libffi etc., on a CentOS, without root privileges? You might want to add to this file username ALL = NOPASSWD : /usr/bin/apt-get , /usr/bin/aptitude, /usr/bin/whatever This will make it so you don't need sudo to access a file.
Hence, asking temp privilege cannot solve this once and for all. : ( –Ch'en Meng Oct 30 '15 at 10:02 add a comment| Your Answer draft saved draft discarded Sign This site is not affiliated with Linus Torvalds or The Open Group in any way. Delivery powered by Google Feedburner. have a peek at these guys You can build python from source to get ssl support.
Is there a word for "timeless" that doesn't imply the passage of time? How can I make two cutting lines close to each other?