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
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 error: Py_Initialize: Unable to get the locale encoding File "/b

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread Chris Angelico
On Fri, May 4, 2018 at 1:53 AM, joseph pareti wrote: > on an Ubuntu VM with : > > >1. Linux JP-Paid-UBUNTU-DSVM 4.13.0-1014-azure >2. Python 3.5.4 :: Anaconda custom (64-bit) > > $ manta manta_genSimData.py > Loading script 'manta_genSimData.py' > Traceback (most recent call last): > > ski