thunlp / OpenNE

An Open-Source Package for Network Embedding (NE)
MIT License
1.68k stars 485 forks source link

Error module 'tensorflow' has no attribute 'app' #115

Closed Milad-Hosseini closed 3 years ago

Milad-Hosseini commented 3 years ago

After i install the requirement.txt file, I face such an error. I think this TensorFlow compatibility. you can change "import tensorflow as tf" to "import tensorflow.compat.v1 as tf" it worked for me. see this

Bznkxs commented 3 years ago

Hi @Milad-Hosseini! Thanks for your suggestion. Since the TensorFlow version has not been maintained for a while, errors like this could happen. We will fix this nevertheless.