bloomsburyai / question-generation

Neural text-to-text question generation
MIT License
217 stars 52 forks source link

The flag 'log_dir' is defined twice - While running the ./demo.sh #18

Closed pidugusundeep closed 5 years ago

pidugusundeep commented 5 years ago

Error :

absl.flags._exceptions.DuplicateFlagError: The flag 'log_dir' is defined twice. First from absl.logging, Second from flags. Description from first occurrence: directory to write logfiles into

What's the fix to this?

tomhosking commented 5 years ago

Could you please run the following command and post the output here? pip freeze | grep absl

pidugusundeep commented 5 years ago
$ pip freeze | grep absl

   absl-py==0.5.0
tomhosking commented 5 years ago

Weird, I haven't seen this before. I guess you can comment out the declaration in flags.py for now, I'll see if I can find out why it works for me.

pidugusundeep commented 5 years ago

Screenshot from 2019-07-10 10-29-33 had this issue while installing the requirements is there a problem with the installation?

tomhosking commented 5 years ago

requirements.txt specifies tensorflow version 1.12, I don't know if 1.14 is compatible with the code.

pidugusundeep commented 5 years ago

Sorry i was using python 3.7 and i was unable to install tensorflow 1.12.0 so i downgraded to python 3.6 and i was able to run the application (./demo.sh) .