Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'tensorflow' has no attribute 'app' #28

Open
mignom opened this issue Apr 9, 2022 · 1 comment
Open

module 'tensorflow' has no attribute 'app' #28

mignom opened this issue Apr 9, 2022 · 1 comment

Comments

@mignom
Copy link

mignom commented Apr 9, 2022

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'

@SecurityEnthusiast
Copy link

SecurityEnthusiast commented Oct 28, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants