Karthikeyan Singaravelan <tir.kar...@gmail.com> 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", "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' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36657> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com