Message340495
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' |
|
Date |
User |
Action |
Args |
2019-04-18 14:59:22 | xtreak | set | recipients:
+ xtreak, docs@python, maakvol |
2019-04-18 14:59:22 | xtreak | set | messageid: <1555599562.36.0.398222757912.issue36657@roundup.psfhosted.org> |
2019-04-18 14:59:22 | xtreak | link | issue36657 messages |
2019-04-18 14:59:22 | xtreak | create | |
|