Re: ImportError: cannot import name certificate_transparency

2019-01-17 Thread Stone Zhong
ow I am creating a zip file from the libraries: > > pip install oci -t ~/temp/oci > cd ~/temp/oci > zip -r ~/temp/oci.zip . > > Test A) PYTHONPATH=~/temp/oci myapp.py > Test B) PYTHONPATH=~/temp/oci.zip myapp.py > > Test A) works fine and Test B) failed with error "

ImportError: cannot import name certificate_transparency

2019-01-17 Thread Stone Zhong
. Test A) PYTHONPATH=~/temp/oci myapp.py Test B) PYTHONPATH=~/temp/oci.zip myapp.py Test A) works fine and Test B) failed with error "ImportError: cannot import name certificate_transparency" It seems we have some so file there: ./cryptography/hazmat/bindings/_padding.so ./cryptogra

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-06 Thread dieter
joseph pareti writes: > thanks for the hint, virtualenv looks like an interesting option, however > in my case I need to rely on several components that are already installed > in the VM in Azure, including tensorflow, etc. > If I use virtualenv, do I need to start from scratch? "virtualenv" has

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-05 Thread INADA Naoki
On Sun, May 6, 2018 at 1:22 AM joseph pareti wrote: > thanks for the hint, virtualenv looks like an interesting option, however > in my case I need to rely on several components that are already installed > in the VM in Azure, including tensorflow, etc. > If I use virtualenv, do I need to start

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-05 Thread joseph pareti
thanks for the hint, virtualenv looks like an interesting option, however in my case I need to rely on several components that are already installed in the VM in Azure, including tensorflow, etc. If I use virtualenv, do I need to start from scratch? In addition, I am not sure this will solve my p

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-05 Thread dieter
joseph pareti writes: > thank you for the advice: depending on the value of PYTHONPATH (version > 2.7, 3.5, or unset), tensorflow stops with 3 different error traps "PYTHONPATH" usually is used when you have private Python modules not installed at the standard place. Nowadays, you can use a so ca

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-04 Thread joseph pareti
thank you for the advice: depending on the value of PYTHONPATH (version 2.7, 3.5, or unset), tensorflow stops with 3 different error traps 2018-05-04 7:55 GMT+02:00 dieter : > Chris Angelico writes: > > ... > > Somewhere, you have a mismatch of versions. Make sure you're using the > > same Pytho

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread dieter
Chris Angelico writes: > ... > Somewhere, you have a mismatch of versions. Make sure you're using the > same Python version for everything. You have some Python 2.7 messing > up your 3.5. I have had similar problems. In my case, an active "PYTHONPATH" envvar was responsible -- "unset"ting this en

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread Chris Angelico
On Fri, May 4, 2018 at 6:10 AM, joseph pareti wrote: > please excuse my full python ignorance, however if I set PYTHONPTAH as shown > below, then the results are quite different than before: > > $ echo $PYTHONPATH > /backupdata/anaconda/lib/python2.7/ > $ python tf_train_pressure.py > Fatal Python

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread joseph pareti
cript 'manta_genSimData.py' > > Traceback (most recent call last): > > > > skipping some details > > > > ... > > File "/anaconda/lib/python2.7/weakref.py", line 14, in > > from _weakref import ( > > *ImportError: cannot import n

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread Chris Angelico
> Traceback (most recent call last): > > skipping some details > > ... > File "/anaconda/lib/python2.7/weakref.py", line 14, in > from _weakref import ( > *ImportError: cannot import name _remove_dead_weakref* > Script finished. Somehow, the details you'

ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread joseph pareti
akref.py", line 14, in from _weakref import ( *ImportError: cannot import name _remove_dead_weakref* Script finished. -- https://mail.python.org/mailman/listinfo/python-list

Re: DJANGO cannot import name _compare_digest

2017-07-01 Thread Pavol Lisy
ost recent call last): >> File "", line 1, in >> ImportError: cannot import name '_compare_digest' >> > > All you're seeing here is that operator._compare_digest doesn't exist in > python3. You are right. I am sorry that I overlook this. -- https://mail.python.org/mailman/listinfo/python-list

Re: DJANGO cannot import name _compare_digest

2017-07-01 Thread Thomas Jollans
On 30/06/17 13:32, Pavol Lisy wrote: > [snip] > > python 3.6.1 works as I expected > >>>> import logging as operator >>>> from operator import _compare_digest as compare_digest > Traceback (most recent call last): > File "", line 1, in

Re: DJANGO cannot import name _compare_digest

2017-06-30 Thread Pavol Lisy
pare_digest.__name__ # ? '_compare_digest' >>> compare_digest.__class__ # ? >>> compare_digest.__module__ # ? 'operator' >>> operator.log.__module__ # OK 'logging' python 3.6.1 works as I expected >>> import logging as operator >>> from operator import _compare_digest as compare_digest Traceback (most recent call last): File "", line 1, in ImportError: cannot import name '_compare_digest' -- https://mail.python.org/mailman/listinfo/python-list

Re: DJANGO cannot import name _compare_digest

2017-06-28 Thread Xristos Xristoou
i dont have 'operator.py' in my system only 'test_operator.py' and 'fix_operator.py' if : import sys print sys.modules['operator'] i get this : that say me how to rename it? -- https://mail.python.org/mailman/listinfo/python-list

Re: DJANGO cannot import name _compare_digest

2017-06-28 Thread Thomas Jollans
o.utils.crypto import get_random_string > File "C:\Python27\lib\site-packages\django\utils\crypto.py", line 8, in > > import hmac > File "C:\Python27\Lib\hmac.py", line 8, in > from operator import _compare_digest as compare_digest > ImportErr

DJANGO cannot import name _compare_digest

2017-06-28 Thread Xristos Xristoou
uot;, line 8, in import hmac File "C:\Python27\Lib\hmac.py", line 8, in from operator import _compare_digest as compare_digest ImportError: cannot import name _compare_digest how to fix it ? -- https://mail.python.org/mailman/listinfo/python-list

Re: cannot import name pyhop

2016-10-18 Thread Irmen de Jong
k (most recent call last): >>> File "Migration.py", line 1, in >>> from pyhop import pyhop >>> ImportError: cannot import name pyhop >>> >>> Any ideas where I'm going wrong? >>> >> >> What does: >> >> import

Re: cannot import name pyhop

2016-10-18 Thread Gipper
; > I've followed the directions to install and import pyhop, but no matter > > what I do, I always get the following error when running a script that > > calls pyhop > > > > > Traceback (most recent call last): > > File "Migration.py", li

Re: cannot import name pyhop

2016-10-14 Thread Irmen de Jong
> I do, I always get the following error when running a script that calls pyhop > > > > Traceback (most recent call last): > File "Migration.py", line 1, in > from pyhop import pyhop > ImportError: cannot import name pyhop > > Any ideas where I'm g

cannot import name pyhop

2016-10-13 Thread Gipper
pt that calls pyhop > Traceback (most recent call last): File "Migration.py", line 1, in from pyhop import pyhop ImportError: cannot import name pyhop Any ideas where I'm going wrong? -- https://mail.python.org/mailman/listinfo/python-list

Re: Importerror: cannot import name httpshandler linux

2016-04-27 Thread Wildman via Python-list
ckages using pip. But pip thows the error: > Importerror: cannot import name httpshandler linux. > > PLease help me out to resolve this. Try installing the libssl-dev package. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Importerror: cannot import name httpshandler linux

2016-04-27 Thread bharadwajsrivatsa
I tried installing Python 2.7.11 on HP-UX which already has all the build and run time dependencies installed on it such as openssl, libffi, etc. But after installing python , I tried installing some open source packages using pip. But pip thows the error: Importerror: cannot import name

Re: ImportError: cannot import name 'RAND_egd'

2016-02-10 Thread shaunak . bangale
> > 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 no

Re: ImportError: cannot import name 'RAND_egd'

2016-02-09 Thread Ian Kelly
sl 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

ImportError: cannot import name 'RAND_egd'

2016-02-09 Thread shaunak . bangale
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

Re: ImportError: cannot import name 'Enum'

2014-11-23 Thread muhammedabuali
space/python/unification/types.py", line 1, in > > > > from enum import Enum > > ImportError: cannot import name 'Enum' > > Thank you for making it so clear and easy! By posting the entire > traceback, plus everything you're expecting to see, y

Re: ImportError: cannot import name 'Enum'

2014-11-23 Thread Chris Angelico
File "/usr/lib/python3.4/enum.py", line 3, in > from types import MappingProxyType, DynamicClassAttribute > File "/home/muhammed/workspace/python/unification/types.py", line 1, in > > from enum import Enum > ImportError: cannot import name 'Enum

ImportError: cannot import name 'Enum'

2014-11-23 Thread muhammedabuali
ort MappingProxyType, DynamicClassAttribute File "/home/muhammed/workspace/python/unification/types.py", line 1, in from enum import Enum ImportError: cannot import name 'Enum' ` -- https://mail.python.org/mailman/listinfo/python-list

Re: 3.4 on Windows ImportError: cannot import name 'IntEnum'

2014-01-05 Thread Mark Lawrence
On 04/01/2014 19:35, Mark Lawrence wrote: Raised an issue anyway and then found a file caused enum.py. Whoops :( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: 3.4 on Windows ImportError: cannot import name 'IntEnum'

2014-01-05 Thread Marco Buttu
On 01/04/2014 08:35 PM, Mark Lawrence wrote: I first saw this when tring to run the command "py -3.4 -m ensurepip" which gave me this lot. Traceback (most recent call last): ... from enum import IntEnum ImportError: cannot import name 'IntEnum' Before I raise

3.4 on Windows ImportError: cannot import name 'IntEnum'

2014-01-04 Thread Mark Lawrence
ile "C:\Python34\lib\email\feedparser.py", line 27, in from email import message File "C:\Python34\lib\email\message.py", line 14, in from email import utils File "C:\Python34\lib\email\utils.py", line 30, in import socket File "C:\Python34\lib\sock

RE: ImportError: cannot import name dns

2011-09-16 Thread Prasad, Ramit
sad, Ramit Cc: python-list@python.org Subject: Re: ImportError: cannot import name dns > It is a circular dependency. Dns will try to import udp which will in turn > import dns (again) in an endless cycle; instead an ImportError is raised. > > Circular dependency is a Bad Thing. Ac

Re: ImportError: cannot import name dns

2011-09-14 Thread Jack Bates
> It is a circular dependency. Dns will try to import udp which will in turn > import dns (again) in an endless cycle; instead an ImportError is raised. > > Circular dependency is a Bad Thing. According to this documentation: http://docs.python.org/reference/simple_stmts.html#grammar-token-impor

RE: ImportError: cannot import name dns

2011-09-13 Thread Prasad, Ramit
-Original Message- From: python-list-bounces+ramit.prasad=jpmorgan@python.org [mailto:python-list-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of Jack Bates Sent: Tuesday, September 13, 2011 5:28 PM To: python-list@python.org Subject: ImportError: cannot import name dns

ImportError: cannot import name dns

2011-09-13 Thread Jack Bates
import dns ImportError: cannot import name dns $ I reproduce this error with the following four files and five lines: == foo/dns.py == from foo import udp == foo/udp.py == from foo import dns == foo/__init__.py == (empty) == test == #!/usr/bin/env python from foo import dns -- http://ma

Python 2.6 ImportError: cannot import name SSLType

2009-04-28 Thread zerosumgame
I have built python 2.6.1 and 2.6.2 with ssl support (Redhat 3.4.6-9 / Openssl 0.9.8j). I am trying to use this with the Apache Qpid project but cannot bring up an ssl connection because the code relies on socket.SSLType which is missing from my build. The only references to SSLType I can find fo

ImportError: cannot import name QtCore. using PyInstaller.1-3 and PyQt4 and Python 2.5

2008-06-22 Thread asoft
Please i need help with this. I just started using python and i hace run into several issues. The on that i can't tackle is the issue of no being able to compile the python code using PyQt4 application It gives the error ImportError: cannot import name QtCore. . I tries the trunk from the snv

Re: cannot import name .....

2007-05-03 Thread Matimus
I do see one problem there... if __name__ == 'main': t = nBaseTest('nBaseTest') t.logon() That should be: if __name__ == "__main__": t = nBaseTest('nBaseTest') t.logon() It should be like that in both files. -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot import name .....

2007-05-03 Thread HMS Surprise
Thanks for posting. pythonpath = .;c:\maxq\bin\testScripts; c:\maxq\bin;c:\maxq\jython Both files are in c:\maxq\bin\testScripts. Also I do not get the message "no module named...: File nCreateIncident.py, the importer: from PyHttpTestCase import PyH

cannot import name .....

2007-05-03 Thread HMS Surprise
Greetings. What is the implication of the error message 'cannot import name .'? It occurs when executing the line: from nBaseTest import nBaseTest The file exists and the class within it exists. Changing it to from nBaseTest import x gives me the same result so it is

Re: ImportError: cannot import name - newbie

2005-05-21 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > """box.py""" > > class box: > def __init__(self): > print "in box" > > This program passes running "python box.py". > > I had put this program under /work/dev/mytests/new > > Now I want to use it from a second python program, which > resides in a totally differe

ImportError: cannot import name - newbie

2005-05-21 Thread qwejohn
s.path from new import box class test: def __init__(self): print "in test" Running python test.py I get the following error: Traceback (most recent call last): File "test.py", line 6, in ? from new import box ImportError: cannot import name box Any idea ? Regards, John -- http://mail.python.org/mailman/listinfo/python-list