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