otuva / handwriting-synthesis

Handwriting Synthesis with RNNs ✏️ (Migrated to TensorFlow v2)
71 stars 32 forks source link

ModuleNotFoundError: No module named 'tensorflow.compat' #11

Closed amalmathew7 closed 1 year ago

amalmathew7 commented 1 year ago

having error ModuleNotFoundError: No module named 'tensorflow.compat' when I try to run main.py Traceback (most recent call last): File "C:\Users\Amal\Documents\handwriting-synthesis\main.py", line 2, in from handwriting_synthesis import Hand File "C:\Users\Amal\Documents\handwriting-synthesis\handwriting_synthesis__init.py", line 3, in from .hand import Hand File "C:\Users\Amal\Documents\handwriting-synthesis\handwriting_synthesis\hand__init__.py", line 1, in from .Hand import Hand File "C:\Users\Amal\Documents\handwriting-synthesis\handwriting_synthesis\hand\Hand.py", line 9, in from handwriting_synthesis.rnn import RNN File "C:\Users\Amal\Documents\handwriting-synthesis\handwriting_synthesis\rnn\init__.py", line 1, in from .LSTMAttentionCell import LSTMAttentionCell File "C:\Users\Amal\Documents\handwriting-synthesis\handwriting_synthesis\rnn\LSTMAttentionCell.py", line 5, in import tensorflow.compat.v1 as tfcompat ModuleNotFoundError: No module named 'tensorflow.compat'

Process finished with exit code 1

Zkaface commented 1 year ago

I got the same error, adding import tensorflow.compat as tf did not change anything

otuva commented 1 year ago

Hi, did you install according to the instructions

amalmathew7 commented 1 year ago

My issue was solved when I ran this in VS code.I think my issue had something to do with virtualisation not turing ON when done in windows cmd.