[issue36657] AttributeError

2019-04-18 Thread STINNER Victor
STINNER Victor added the comment: ... maak opened a second issue... bpo-36660. -- nosy: +vstinner ___ Python tracker ___ ___ Python

[issue36657] AttributeError

2019-04-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Maakvol, Please remember that this is a bug tracker for bugs in the Python language and standard library, not a help desk. As a beginner, 99.9% of the times you think that you have found a bug in Python, you haven't, it will be a bug in your own code. T

[issue36657] AttributeError

2019-04-18 Thread maak
maak added the comment: FLAGS.train_dir has a boolean value which is checking true or false and i also have same issue import os >>> os.path.join(True, 'best_checkpoint') Traceback (most recent call last): File "", line 1, in File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.f

[issue36657] AttributeError

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think we could close this issue, it's not related to CPython itself. Closing it. OP can reopen if needed. Thanks. -- assignee: docs@python -> resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> be

[issue36657] AttributeError

2019-04-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Karthikeyan, I think we could close this issue, it's not related to CPython itself. What do you think? -- nosy: +matrixise ___ Python tracker __

[issue36657] AttributeError

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please check the value of FLAGS.train_dir which I guess has a boolean value. This is not a bug with CPython. $ python2 Python 2.7.14 (default, Mar 12 2018, 13:54:56) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "help", "co

[issue36657] AttributeError

2019-04-18 Thread maak
maak added the comment: File "/home/maak/PycharmProjects/Fyp/venv/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "main.py", line 132, in main bestmodel_dir = os.path.join(FLAGS.train_dir,

[issue36657] AttributeError

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please add a short script and explain the problem over why it's a bug in CPython and not a problem with the program. The error says path has a boolean value and doesn't have endswith which is a method on string object. -- nosy: +xtreak ___

[issue36657] AttributeError

2019-04-18 Thread maak
New submission from maak : elif path == '' or path.endswith('/'): AttributeError: 'bool' object has no attribute 'endswith' -- assignee: docs@python components: Documentation messages: 340490 nosy: docs@python, maakvol priority: normal severity: normal status: open title: AttributeError