Hi,
running command ‘y mon’ on windows 10 raised me this error:
NotImplementedError: cannot instantiate ‘PosixPath’ on your system
Please help,
Thanx
Hi,
running command ‘y mon’ on windows 10 raised me this error:
NotImplementedError: cannot instantiate ‘PosixPath’ on your system
Please help,
Thanx
Please run the command with extra verbosity on: y -vv mon
2023-11-22 13:20:09,530 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module fcntl as DSDL
2023-11-22 13:20:09 0010040 DEB yakut: Path: ('C:\\Users\\user\\yakut',)
2023-11-22 13:20:09 0010040 DEB asyncio: Using proactor: IocpProactor
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module scipy.linalg._cblas as DSDL
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module scipy.linalg._fblas_64 as DSDL
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module scipy.linalg._clapack as DSDL
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module scipy.linalg._flapack_64 as DSDL
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module scikits as DSDL
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Attempting to load module uavcan as DSDL
2023-11-22 13:20:09 0010040 DEB pycyphal.dsdl._import_hook: Found root namespace uavcan in DSDL source directory D:\user\uavcan\uavcan-scripts\yakut_dsdl\uavcan
2023-11-22 13:20:09 0010040 DEB yakut: Event loop finalization with exc=(<class 'NotImplementedError'>, NotImplementedError("cannot instantiate 'PosixPath' on your system"), <traceback object at 0x000001B6466F7B00>)
NotImplementedError: cannot instantiate 'PosixPath' on your system
2023-11-22 13:20:09 0010040 DEB yakut: EXCEPTION NotImplementedError: cannot instantiate 'PosixPath' on your system
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\yakut\main.py", line 261, in main
status = _click_main.main(prog_name="yakut", standalone_mode=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\yakut\main.py", line 311, in proxy
return loop.run_until_complete(f(*args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\yakut\cmd\monitor\_cmd.py", line 83, in monitor
import uavcan.node.port # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\.pycyphal\uavcan\node\__init__.py", line 6, in <module>
from uavcan.node.ExecuteCommand_1_1 import ExecuteCommand_1_1 as ExecuteCommand_1_1
File "C:\Users\user\.pycyphal\uavcan\node\ExecuteCommand_1_1.py", line 29, in <module>
class ExecuteCommand_1_1:
File "C:\Users\user\.pycyphal\uavcan\node\ExecuteCommand_1_1.py", line 31, in ExecuteCommand_1_1
class Request:
File "C:\Users\user\.pycyphal\uavcan\node\ExecuteCommand_1_1.py", line 184, in Request
_MODEL_: _pydsdl_.DelimitedType = _restore_constant_(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\.pycyphal\uavcan\node\ExecuteCommand_1_1.py", line 25, in _restore_constant_
return pickle.loads(gzip.decompress(base64.b85decode(encoded_string)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 873, in __new__
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'PosixPath' on your system
2023-11-22 13:20:09 0010040 DEB yakut: EXIT 1
Did you copy the compiled data types into C:\Users\user\.pycyphal
from another computer?
Irrespective of the answer, please share these files here.
Thank for the Tip!
I compiled the DSDL library from the repo and it solved the problem.
I think I’ve copied the compiled dsdl files from a linux system to windows which caused that issue.
Regards