To reproduce, firstly change the stop_batch in /path/to/deepmd-kit/deepmd-kit/examples/water/train/water_se_a.json to 1000, then
cd /path/to/deepmd-kit/examples/water/train
dp train water_se_a.json
dp freeze
I got the following error:
Traceback (most recent call last):
File "/xxxxx/venvs/py3.6-tf1.8/bin/dp", line 11, in <module>
load_entry_point('deepmd-kit==1.2.3.dev295+g2d9c702.d20210222', 'console_scripts', 'dp')()
File "/xxxxx/venvs/py3.6-tf1.8/lib/python3.6/site-packages/deepmd_kit-1.2.3.dev295+g2d9c702.d20210222-py3.6-linux-x86_64.egg/deepmd/main.py", line 267, in main
set_log_handles(args.log_level, Path(args.log_path))
File "/usr/lib64/python3.6/pathlib.py", line 999, in __new__
self = cls._from_parts(args, init=False)
File "/usr/lib64/python3.6/pathlib.py", line 656, in _from_parts
drv, root, parts = self._parse_args(args)
File "/usr/lib64/python3.6/pathlib.py", line 640, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
The bug should be caused by the improper treatment of the default log file. The set_log_handles(args.log_level, Path(args.log_path)) does not accept args.log_path == None .
DeepMD-kit: branch api Python: 3.6 TF: 1.8
To reproduce, firstly change the
stop_batch
in/path/to/deepmd-kit/deepmd-kit/examples/water/train/water_se_a.json
to1000
, thenI got the following error:
The bug should be caused by the improper treatment of the default log file. The
set_log_handles(args.log_level, Path(args.log_path))
does not acceptargs.log_path == None
.