ThatsTheEnd / horiba-python-sdk

MIT License
3 stars 3 forks source link

about horiba-python-sdk issues #62

Open kxGuard123 opened 3 days ago

kxGuard123 commented 3 days ago

I have installed SDK Software and Synergy Software. When I run the routine, the following error occurs:

C:\cwbData\projectItem\pythonProject\HoribaSDKTest.venv\Scripts\python.exe -X pycache_prefix=C:\Users\23504\AppData\Local\JetBrains\PyCharm2024.1\cpython-cache "C:/cwbSoftware/JetBrains/PyCharm 2024.1.3/plugins/python/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 56855 --file C:\cwbData\projectItem\pythonProject\HoribaSDKTest\test.py Connected to pydev debugger (build 241.17890.14) 2024-07-01 17:20:12.585 | INFO | horiba_sdk.communication.websocket_communicator:register_binary_message_callback:169 - Binary message callback registered. 2024-07-01 17:20:12.585 | INFO | horiba_sdk.devices.device_manager:start_icl:118 - Starting ICL software... 2024-07-01 17:20:12.820 | INFO | horiba_sdk.devices.device_manager:start_icl:126 - icl not running, starting it... Traceback (most recent call last): File "C:\cwbSoftware\JetBrains\PyCharm 2024.1.3\plugins\python\helpers-pro\pydevd_asyncio\pydevd_nest_asyncio.py", line 138, in run return loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\JetBrains\PyCharm 2024.1.3\plugins\python\helpers-pro\pydevd_asyncio\pydevd_nest_asyncio.py", line 243, in run_until_complete return f.result() ^^^^^^^^^^ File "C:\cwbSoftware\python\Lib\asyncio\futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "C:\cwbSoftware\python\Lib\asyncio\tasks.py", line 267, in __step result = coro.send(None) ^^^^^^^^^^^^^^^ File "C:\cwbData\projectItem\pythonProject\HoribaSDKTest\test.py", line 15, in main await device_manager.start() File "C:\cwbData\projectItem\pythonProject\HoribaSDKTest.venv\Lib\site-packages\horiba_sdk\devices\device_manager.py", line 98, in start await self.start_icl() File "C:\cwbData\projectItem\pythonProject\HoribaSDKTest.venv\Lib\site-packages\horiba_sdk\devices\device_manager.py", line 128, in start_icl self._icl_process = await asyncio.create_subprocess_exec(r'C:\Program Files\HORIBA Scientific\SDK\icl.exe') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\python\Lib\asyncio\subprocess.py", line 221, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\python\Lib\asyncio\base_events.py", line 1694, in subprocess_exec transport = await self._make_subprocess_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\python\Lib\asyncio\windows_events.py", line 399, in _make_subprocess_transport transp = _WindowsSubprocessTransport(self, protocol, args, shell, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\python\Lib\asyncio\base_subprocess.py", line 36, in init self._start(args=args, shell=shell, stdin=stdin, stdout=stdout, File "C:\cwbSoftware\python\Lib\asyncio\windows_events.py", line 921, in _start self._proc = windows_utils.Popen( ^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\python\Lib\asyncio\windows_utils.py", line 153, in init super().init(args, stdin=stdin_rfd, stdout=stdout_wfd, File "C:\cwbSoftware\python\Lib\subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\cwbSoftware\python\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\cwbSoftware\JetBrains\PyCharm 2024.1.3\plugins\python\helpers\pydev_pydev_bundle\pydev_monkey.py", line 597, in new_CreateProcess return getattr(_subprocess, original_name)(app_name, patch_arg_str_win(cmd_line), *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] 系统找不到指定的文件。 python-BaseException

I checked the error: I couldn't find the file "C: \ Program Files \ HORIBA Scientific \ SDK \ icl. exe", I didn't find this file on my computer. May I ask how this file was imported. Can you provide me with the complete configuration process for ICL.exe, the Horiba SDK, licensed and activated, so that I can check for any configuration errors in that step.

ThatsTheEnd commented 3 days ago

Hey @kxGuard123 , the behaviour you are seeing is expected, yet. As stated at the beginning of the readme: image The SDK refers to the new SDK which is not based on ActiveX anymore. We are a couple of weeks away from release, I will post here again once we have an official release date.