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 "
.
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
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
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
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
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
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
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
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
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
> 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'
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
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
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
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
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
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
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
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
; > 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
> 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
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
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
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
> > 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
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
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
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
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
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
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
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
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
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
> 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
-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
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
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
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
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
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
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
[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
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
44 matches
Mail list logo