Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102733
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: ImportError: cannot import name 'RAND_egd' |
| Date | Tue, 9 Feb 2016 13:32:22 -0700 |
| Lines | 28 |
| Message-ID | <mailman.0.1455049984.7749.python-list@python.org> (permalink) |
| References | <4c113094-db27-4b60-9140-eded08939ab0@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de R4XhBctkmomrmPzmyHok4gCJkSRfKTKNxbrACb88Q0iw== |
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'importerror:': 0.05; 'installed.': 0.05; 'wrapper': 0.07; 'scripts': 0.09; 'python': 0.10; 'importing': 0.15; '2016': 0.16; '_ssl': 0.16; 'easy_install': 0.16; 'module).': 0.16; 'module?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:import': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; 'ssl': 0.18; 'try:': 0.18; 'library': 0.20; 'windows': 0.20; 'machine': 0.21; 'advise.': 0.22; 'pass': 0.22; 'trying': 0.22; 'am,': 0.23; 'feb': 0.23; 'advance.': 0.23; 'this:': 0.23; 'import': 0.24; 'header:In- Reply-To:1': 0.24; 'module': 0.25; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'looks': 0.29; 'starts': 0.29; 'code': 0.30; 'folder': 0.30; 'putting': 0.30; 'error.': 0.31; 'getting': 0.33; 'run': 0.33; 'common': 0.33; 'tue,': 0.34; 'file': 0.34; 'except': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'but': 0.36; 'should': 0.36; 'lines': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'mac': 0.37; 'received:209.85.213': 0.37; 'detail': 0.38; 'received:209': 0.38; 'anything': 0.38; 'hi,': 0.38; 'why': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'provide': 0.61; 'present.': 0.72; 'pip': 0.84; 'to:name:python': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zfjD1jWfem5SCIsVh6W+yI5DgKK2ZrvJxC1B0GhFNMc=; b=JHkfXd0f1UEhZ7gBtBQ5wSdfmwuuEyQXTmmHiUSHCi9fCFvnwE5mD/pbvkx5f1dNy2 BTE/LkOXPQRB2VBz8/sntKV+pBbdP51QQD4ogY08CA5M5kICZ72WRLhUpp/5sJQzKQXJ pTTLdqyThDMuG2NAahrybgKOLBUh91JNCjotP0EUa1yxV5XqDxmusHR0FwZySA9vFXV7 10LhlROIdaR+v/CKHROfxyHxOtZhqzrJ4hVEZz/k4OqURYHlwQw6xjazHnQ9C0/JnljK cY/4cmTnihAw/sz0mTB+I6jd/YF2kTyLPKQxb+6EI2pz0APz/0NADN/m1dIrJ9qIseBP HMQg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=zfjD1jWfem5SCIsVh6W+yI5DgKK2ZrvJxC1B0GhFNMc=; b=ZiVTpjjan/k7Lv2XGTPjVLB/lOjxEtGW51TvlhOO8qujDQfw8qXLlOGuH3XE2slnxo mb+8X+EmRyFdlnWE92bX/yf+Ox9s56RSFdw5K0gyD+o99HSVYqsHSnEQ93DMuZc+kYfj 6CU6QJ5nuXCNrHq8sQK5zCzQWgAoWab9ORbKkI0EIcuglRvAvPINIZxKNpGK2R+/aTqG IYylaDQDX32Cnqat00cftGNj97bREy9FpTkdOA6ev5u7fv3i/D23JpHBqX2kG7thZLmI WLaNY6IOVpQVcENbRoz10sAZodgZ1LiRQFXT2Xyy2vLxAX1CTjlwTu1PcC+i8IgZExK8 A0JQ== |
| X-Gm-Message-State | AG10YOS5LLDyqAHVPocdpN5vqbYl8/TBAVDHTd1qynY4VQGbNtL0yC5zX6vO0jluWhOKj1bKaLSlxRyRtqDynQ== |
| X-Received | by 10.50.80.14 with SMTP id n14mr6473666igx.85.1455049981628; Tue, 09 Feb 2016 12:33:01 -0800 (PST) |
| In-Reply-To | <4c113094-db27-4b60-9140-eded08939ab0@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21rc2 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:102733 |
Show key headers only | View raw
On Tue, Feb 9, 2016 at 7:55 AM, <shaunak.bangale@gmail.com> wrote:
> Hi,
>
> I am trying to run a 60 lines Python code which is running on a mac machine but on windows machine, I am getting this error when I run on it on shell(open file and run module). I have Python 3.5 installed.
>
> from _ssl import RAND_status, RAND_egd, RAND_add
> ImportError: cannot import name 'RAND_egd'
Why are you importing these directly from the "_ssl" C module and not
from the "ssl" wrapper module? Anything that starts with an _ should
be considered a private implementation detail and shouldn't be relied
upon.
> Form forums, I found that it is a common error but could not find a good solution that will work for me.
>
> One of the ways was to create scripts folder and putting easy_install.exe and then running easy_install pip but that gave me sytnax error.
>
> Please advise. Thanks in advance.
The ssl module in the standard library has this:
try:
from _ssl import RAND_egd
except ImportError:
# LibreSSL does not provide RAND_egd
pass
So it looks like you cannot depend on ssl.RAND_egd to be present.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ImportError: cannot import name 'RAND_egd' shaunak.bangale@gmail.com - 2016-02-09 06:55 -0800
Re: ImportError: cannot import name 'RAND_egd' Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-09 13:32 -0700
Re: ImportError: cannot import name 'RAND_egd' shaunak.bangale@gmail.com - 2016-02-10 01:32 -0800
csiph-web