Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89931
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!newsfeed.pionier.net.pl!feed.xsnews.nl!border03.ams.xsnews.nl!feeder04.ams.xsnews.nl!feeder01.ams.xsnews.nl!abp001.ams.xsnews.nl!frontend-F09-13.ams.news.kpn.nl |
|---|---|
| From | Cecil Westerhof <Cecil@decebal.nl> |
| Newsgroups | comp.lang.python |
| Subject | Re: Cannot update OpenSSL for Python3 |
| Organization | Decebal Computing |
| References | <87k2wok9bz.fsf@Equus.decebal.nl> <mailman.80.1430734238.12865.python-list@python.org> <878ud4k270.fsf@Equus.decebal.nl> <mailman.84.1430741703.12865.python-list@python.org> <874mnsjxju.fsf@Equus.decebal.nl> <mailman.89.1430749136.12865.python-list@python.org> <87vbg8idhk.fsf@Equus.decebal.nl> <mailman.94.1430755420.12865.python-list@python.org> <87mw1ki7ln.fsf@Equus.decebal.nl> <5547c244$0$2913$e4fe514c@news.xs4all.nl> |
| X-Face | "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E |
| X-Homepage | http://www.decebal.nl/ |
| Date | Mon, 04 May 2015 21:52:46 +0200 |
| Message-ID | <87bni0i0hd.fsf@Equus.decebal.nl> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:4Sh6CGif0jOEmMbB8pPQi5Xlqzs= |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Lines | 45 |
| NNTP-Posting-Host | 81.207.62.244 |
| X-Trace | 1430769590 news.kpn.nl 19213 81.207.62.244@kpn/81.207.62.244:52864 |
| Xref | csiph.com comp.lang.python:89931 |
Show key headers only | View raw
Op Monday 4 May 2015 21:02 CEST schreef Irmen de Jong:
> On 4-5-2015 19:19, Cecil Westerhof wrote:
>
>> It looks like I am encircled by Gremlins:
>>>>> import urllib3.contrib.pyopenssl
>> Traceback (most recent call last): File "<stdin>", line 1, in
>> <module> File
>> "/usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py",
>> line 58, in <module> from socket import _fileobject, timeout
>> ImportError: cannot import name '_fileobject'
>>
>
> Looks to me as if you have installed a Python 2 version of urllib3?
> pyopenssl? and are trying to run that under python 3.
>
> (socket module in python 2 does have a _fileobject, whereas in
> python 3 it no longer has it. Checked in CPython on Windows.)
I did an uninstall and installed it again:
pip3 install urllib3
Downloading/unpacking urllib3
Downloading urllib3-1.10.4.tar.gz (138kB): 138kB downloaded
Running setup.py (path:/tmp/pip_build_root/urllib3/setup.py) egg_info for package urllib3
warning: no previously-included files matching '*' found under directory 'docs/_build'
Installing collected packages: urllib3
Running setup.py install for urllib3
warning: no previously-included files matching '*' found under directory 'docs/_build'
Successfully installed urllib3
Cleaning up...
But I keep getting the error. Only 2 lines earlier:
>>> import urllib3.contrib.pyopenssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py", line 56, in <module>
from socket import _fileobject, timeout
ImportError: cannot import name '_fileobject'
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 10:58 +0200
Re: Cannot update OpenSSL for Python3 Chris Angelico <rosuav@gmail.com> - 2015-05-04 20:10 +1000
Re: Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 13:32 +0200
Re: Cannot update OpenSSL for Python3 Chris Angelico <rosuav@gmail.com> - 2015-05-04 22:14 +1000
Re: Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 15:13 +0200
Re: Cannot update OpenSSL for Python3 Chris Angelico <rosuav@gmail.com> - 2015-05-05 00:18 +1000
Re: Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 17:11 +0200
Re: Cannot update OpenSSL for Python3 Chris Angelico <rosuav@gmail.com> - 2015-05-05 02:03 +1000
Re: Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 19:19 +0200
Re: Cannot update OpenSSL for Python3 Chris Angelico <rosuav@gmail.com> - 2015-05-05 03:49 +1000
Re: Cannot update OpenSSL for Python3 Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-05-04 21:02 +0200
Re: Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 21:52 +0200
Re: Cannot update OpenSSL for Python3 Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-05-04 23:59 +0200
Re: Cannot update OpenSSL for Python3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-04 19:04 +0100
Re: Cannot update OpenSSL for Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 21:54 +0200
Re: Cannot update OpenSSL for Python3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-04 21:38 +0100
csiph-web