Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'gfile' from 'tensorflow' #35

Open
kurodenjiro opened this issue Nov 22, 2019 · 1 comment
Open

ImportError: cannot import name 'gfile' from 'tensorflow' #35

kurodenjiro opened this issue Nov 22, 2019 · 1 comment

Comments

@kurodenjiro
Copy link

Hello i got this error how can i fix it ?

Traceback (most recent call last):
File "preprocess.py", line 5, in
from config import *
File "E:\project\Abstractive-Summarization-With-Transfer-Learning\config.py", line 1, in
import texar as tx
File "texar_repo\texar_init_.py", line 24, in
from texar.module_base import *
File "texar_repo\texar\module_base.py", line 26, in
from texar.utils.exceptions import TexarError
File "texar_repo\texar\utils_init_.py", line 31, in
from texar.utils.utils_io import *
File "texar_repo\texar\utils\utils_io.py", line 32, in
from tensorflow import gfile
ImportError: cannot import name 'gfile' from 'tensorflow' (C:\Users\Admin\Anaconda3\lib\site-packages\tensorflow_init_.py)

@mmsmadi
Copy link

mmsmadi commented Mar 25, 2020

@kurodenjiro
Make sure you have tensor flow version 1.x

for example:
pip install tensorflow==1.13.0
or
pip3 install tensorflow==1.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants