gcn icon indicating copy to clipboard operation
gcn copied to clipboard

Issue with tensorflow import

Open Gautamshahi opened this issue 6 years ago • 4 comments

Hello, I am getting an error while executing python train.py

line 4, in flags = tf.app.flags AttributeError: module 'tensorflow' has no attribute 'app'

I am using '2.0.0-alpha0', and please suggest me resolve the issue. I have tried all the possible way.

Gautamshahi avatar Apr 30 '19 23:04 Gautamshahi

Please try an older TensorFlow version, e.g. 0.12 or 1.x

On Tue, Apr 30, 2019 at 7:56 PM GAUTAM SHAHI [email protected] wrote:

Hello, I am getting an error while executing python train.py

line 4, in flags = tf.app.flags AttributeError: module 'tensorflow' has no attribute 'app'

I am using '2.0.0-alpha0', and please suggest me resolve the issue. I have tried all the possible way.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tkipf/gcn/issues/110, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYBYYGRZGLNXAJ36VUEYHLPTDMCLANCNFSM4HJQ75ZA .

tkipf avatar May 01 '19 00:05 tkipf

AttributeError: module 'tensorboard.lazy' has no attribute 'lazy_load' when trying to run train.py Any suggestions please..thx

">>> import tensorflow as tf Traceback (most recent call last): File "", line 1, in File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorflow_init_.py", line 35, in from tensorflow.api.v1 import compat File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorflow_api\v1\compat_init.py", line 22, in from tensorflow.api.v1.compat import v2 File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorflow_api\v1\compat\v2_init.py", line 303, in from tensorboard.summary.tf import summary File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorboard\summary_init.py", line 32, in from tensorboard.summary import v2 File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorboard\summary\v2.py", line 24, in from tensorboard.plugins.audio.summary_v2 import audio File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorboard\plugins\audio\summary_v2.py", line 30, in from tensorboard.compat import tf2 as tf File "C:\Users\fy004\Anaconda3\lib\site-packages\tensorboard\compat_init_.py", line 31, in @_lazy.lazy_load('tensorboard.compat.tf') AttributeError: module 'tensorboard.lazy' has no attribute 'lazy_load'"

massana avatar Jun 20 '19 10:06 massana

Please try an older TensorFlow version, e.g. 0.12 or 1.x

On Thu, Jun 20, 2019 at 3:19 AM massana [email protected] wrote:

AttributeError: module 'tensorboard.lazy' has no attribute 'lazy_load' when trying to run train.py Any suggestions please..thx

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tkipf/gcn/issues/110?email_source=notifications&email_token=ABYBYYHWCO2GZFSQLZCHAV3P3NKRPA5CNFSM4HJQ75ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYE7PLQ#issuecomment-503969710, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYBYYAFEE2WIEBY2IJQVP3P3NKRPANCNFSM4HJQ75ZA .

tkipf avatar Jun 24 '19 21:06 tkipf

If using pip to install packages, start with a clean virtualenv and just install packages as you come across ModuleNotFoundErrors while running your script. Hard way to debug but worked for me!

fPkX6F1nGTX avatar Feb 12 '21 17:02 fPkX6F1nGTX