This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients docs@python, maakvol, xtreak
Date 2019-04-18.14:59:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555599562.36.0.398222757912.issue36657@roundup.psfhosted.org>
In-reply-to
Content
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", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.join(True, 'best_checkpoint')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'bool' object has no attribute 'endswith'
History
Date User Action Args
2019-04-18 14:59:22xtreaksetrecipients: + xtreak, docs@python, maakvol
2019-04-18 14:59:22xtreaksetmessageid: <1555599562.36.0.398222757912.issue36657@roundup.psfhosted.org>
2019-04-18 14:59:22xtreaklinkissue36657 messages
2019-04-18 14:59:22xtreakcreate