Re: [Tutor] Not able to import Tensorflow in python script

2017-10-25 Thread shubham goyal
Hey Alan, I found this issue on internet. It turns out that if you have some file named string.py in the same folder as script which is using tensorflow, it give this kind of error. I don't know why but this was happening. Now it's working . Thank you for your help. On Oct 26, 2017 1:58 AM, "Alan

Re: [Tutor] Not able to import Tensorflow in python script

2017-10-25 Thread Peter Otten
shubham goyal wrote: > Hello all, > I was trying to run this check script of tensorflow after installing the > tensorflow successfully. but it is not able to import tensorflow properly > i think. but sometimes in python > shell it gets imported. it is giving the error "can't import name > template

Re: [Tutor] Not able to import Tensorflow in python script

2017-10-25 Thread Alan Gauld via Tutor
On 25/10/17 19:24, shubham goyal wrote: > I was trying to run this check script of tensorflow after installing the > tensorflow successfully. Its not part of the standard library so I'll need to assume you are correct and it installed correctly. However from some of the errors below it looks as if

[Tutor] Not able to import Tensorflow in python script

2017-10-25 Thread shubham goyal
Hello all, I was trying to run this check script of tensorflow after installing the tensorflow successfully. but it is not able to import tensorflow properly i think. but sometimes in python shell it gets imported. it is giving the error "can't import name template" script import tensorflow as tf

Re: [Tutor] substitute using re.sub

2017-10-25 Thread Peter Otten
kumar s via Tutor wrote: > Hi group, I am trying to substitute in the following way and i cannot. > Could you point out whats wrong in what i am doing. > z'.|D' re.sub(z,'1',z)'111' > I just want only '1' and not '111'. > I want:>>> re.sub(z,'1',z)'1' > re.sub is repeatedly inserting 3

[Tutor] substitute using re.sub

2017-10-25 Thread kumar s via Tutor
Hi group, I am trying to substitute in the following way and i cannot. Could you point out whats wrong in what i am doing.  >>> z'.|D' >>> re.sub(z,'1',z)'111' I just want only  '1' and not '111'.  I want:>>> re.sub(z,'1',z)'1' re.sub is repeatedly inserting 3 times because z has .|D . How can I