On Python 3.6, and on Windows only, datetime.fromtimestamp() erronously throws an OSError on Windows for values between 0 and 86400.
Traces:
Traceback (most recent call last): File "nxdrive\manager.py", line 593, in bind_engine self, engine_def, binder=binder) File "nxdrive\engine\engine.py", line 112, in __init__ self.bind(binder) File "nxdrive\engine\engine.py", line 760, in bind self._check_root() File "nxdrive\engine\engine.py", line 781, in _check_root self._add_top_level_state() File "nxdrive\engine\engine.py", line 834, in _add_top_level_state remote_info = self.remote.get_filesystem_root_info() File "nxdrive\client\remote_client.py", line 271, in get_filesystem_root_info return self.file_to_info(toplevel_folder) File "nxdrive\client\remote_client.py", line 480, in file_to_info fs_item['lastModificationDate'] // 1000) OSError: [Errno 22] Invalid argument
This is a known bug:
The temporary fix is done in Remote.file_to_info(), this ticket is just a reminder to remove it when the bug will be fixed upstream.
- is related to
-
NXDRIVE-1600 [Windows] OSError with datetime.fromtimestamp(t) when t < 0
- Resolved
-
NXDRIVE-1389 Upgrade Python from 3.6.6 to 3.6.7
- Resolved