captcha_recognize icon indicating copy to clipboard operation
captcha_recognize copied to clipboard

module 'tensorflow' has no attribute 'app'

Open mignom opened this issue 3 years ago • 1 comments

Hi. in captcha_records.py stroke 123 it says: AttributeError: module 'tensorflow' has no attribute 'app' i changed tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) to tf.compat.v1.run(main=main, argv=[sys.argv[0]] + unparsed) now it says module 'tensorflow.compat.v1' has no attribute 'run'

mignom avatar Apr 09 '22 23:04 mignom

Hi @mignom

It is right. compat.v1 doesn`t have run attribute. You have to replace it with this line:

tf.compat.v1.app.run(main=main, argv=[sys.argv[0]] + unparsed)

SecurityEnthusiast avatar Oct 28 '22 19:10 SecurityEnthusiast