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"

>     import logging
>   File "/usr/lib/python3.5/logging/__init__.py", line 28, in <module>
>     from string import Template
> ImportError: cannot import name 'Template'

Did you write a module called string.py yourself? 

If so, your module may be imported instead of the one in the standard 
library. Rename your module to mystring, say, and the error should go away.



_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to