genomematt / xenomapper2

A utility for splitting mixed origin NGS reads with secondary or alt mappings
Other
3 stars 1 forks source link

cPy3.6 specific path bug #6

Closed genomematt closed 4 years ago

genomematt commented 4 years ago

271    self.bgzf_file = BgzfWriter(filename=Path(file),
272  File "/opt/python/3.6.7/lib/python3.6/pathlib.py", line 1001, in __new__
273    self = cls._from_parts(args, init=False)
274  File "/opt/python/3.6.7/lib/python3.6/pathlib.py", line 656, in _from_parts
275    drv, root, parts = self._parse_args(args)
276  File "/opt/python/3.6.7/lib/python3.6/pathlib.py", line 648, in _parse_args
277    % type(a))
278TypeError: argument should be a str object or an os.PathLike object returning str, not <class 'bytes'>```
genomematt commented 4 years ago

May be related to this os.fwalk bug fixed in 3.7 https://bugs.python.org/issue28682