Using yukon with slcan driver

Hi,
What are the arbitration bitrate and data bitrate parameters when connecting to an slcan adapter? Which one corresponds to CAN bitrate and which one corresponds to UART baudrate of serial adapter?
Thanks.

A CAN FD frame consists of two segments: arbitration segment and data segment. They are usually clocked at different bit rates (e.g., one convention used in J1939 prescribes 500 kbit/s for the arbitration segment and 2 Mbit/s for the data segment). More details available in the CAN FD specification: can_fd_spec.pdf (313.1 KB)

Detailed timing structure is shown on the second sheet of this spreadsheet: Cyphal/CAN: CAN FD bandwidth estimation - Google Tabellen

The SLCAN backend does only support Classic CAN though, not CAN FD, so only the arbitration bit rate is meaningful (the other one should be set to the same value). More info: pycyphal.transport.can.media.pythoncan package — PyCyphal 1.10.6 documentation

  • CAN bitrate – both (but CAN FD is not supported by the SLCAN backend);
  • UART baudrate – neither. The UART settings are fixed at 115200-8N1.
1 Like

Thank you for the answer.
I am using this CAN<>USB adapter:

I can see opencyphal packets in it’s own software (USB-CAN,V8.0), But not in yukon on windows machine. I tried by subscribing to Heartbeat message that are emitted by two nodes on the network. At the moment, using the another CAN adapter (MCP2515 CAN-SPI) connected to a raspberrypi, I can verify that the network is up and running without any issue.

Is there any way to debug this issue?

Please show us how do you configure Yukon and whether there are any error messages shown. What version are you using?

cc @silver.valdvee

I set both baudrate and bitrate parameters to 500000, mtu=8 and node-id=127. The log message shows:
Now attached: slcan:com21

But nothing is shown in network monitor or other sections.

I tried by connecting an usb-serial adapter with rx and tx lines shorted together (loopback test). Now the network diagram is shown and i could subscribe to heartbeat messages. Although i get warning regarding duplicate node names.

Apparently the problem is related to incompatibility between can adapter and the software.

Diving more into adapter protocol, I found out that it uses a specific serial protocol which is different from slcan.:unamused:
While the protocol is supported by python-can library, is there any plan to support it in future versions of software?

Thanks.

Maybe this is what you need?

Yes, that’s it. But it seems it is not implemented in the current version of software yet. It gaves this error:
Transport type should be either slcan or socketcan.

It is possible to change this

@Dadabarghi
Sorry for the bug.
I fixed it here:

Here is the download for it:
https://files.zubax.com/products/org.opencyphal.yukon/releases/
It’s in version 2022.11.4.

Thank you so much for the immediate fix.

Now it complains about not founding can.interfaces.seeedstudio!

@silver.valdvee the PythonCAN dependency should be installed with the extra seeedstudio and all other extras required for all supported media layers.

I made an issue tracking this:

@pavel.kirienko

I did do a hotfix until this entire ticket is solved. At first only seeedstudio is available.
@Dadabarghi
It is still possible that seeedstudio was not included in the executable and I may have to fix that too.

@silver.valdvee
@pavel.kirienko
Thanks so much! your support is really appreciated.
I ran the last version of code according to instruction in CONTRIBUTING file and could successfully test it using a usb-serial converter connected in loopback mode.
I do not have access to the adapter at the moment, but I will check it out ASAP.

I followed the instructions to build .exe output, but unfortunately it failed.
here is the log:

(venv) C:\Users\dada\Desktop\yukon> python build_exe.py
390 INFO: PyInstaller: 5.3
390 INFO: Python: 3.10.0
390 INFO: Platform: Windows-10-10.0.19045-SP0
406 INFO: UPX is not available.
406 INFO: Removing temporary files and cleaning cache in C:\Users\dada\AppData\Local\pyinstaller
406 INFO: Extending PYTHONPATH with paths
['C:\\Users\\dada\\Desktop\\yukon']
1109 INFO: checking Analysis
1109 INFO: Building Analysis because Analysis-00.toc is non existent
1109 INFO: Initializing module dependency graph...
1109 INFO: Caching module graph hooks...
1124 WARNING: Several hooks defined for module 'numpy'. Please take care they do not conflict.
1124 INFO: Analyzing base_library.zip ...
7711 INFO: Processing pre-find module path hook distutils from 'C:\\Users\\dada\\Desktop\\yukon\\venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
7711 INFO: distutils: retargeting to non-venv dir 'C:\\Users\\dada\\AppData\\Local\\Programs\\Python\\Python310\\lib'
9055 INFO: Caching module dependency graph...
9290 INFO: running Analysis Analysis-00.toc
9305 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by C:\Users\dada\AppData\Local\Programs\Python\Python310\python.exe
9540 INFO: Analyzing C:\Users\dada\Desktop\yukon\yukon\__main__.py
10055 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'C:\\Users\\dada\\Desktop\\yukon\\venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.six.moves.py'.
12685 INFO: Processing pre-find module path hook site from 'C:\\Users\\dada\\Desktop\\yukon\\venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
12685 INFO: site: retargeting to fake-dir 'C:\\Users\\dada\\Desktop\\yukon\\venv\\lib\\site-packages\\PyInstaller\\fake-modules'
Traceback (most recent call last):
  File "C:\Users\dada\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\dada\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\dada\Desktop\yukon\venv\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\__main__.py", line 178, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\__main__.py", line 59, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\building\build_main.py", line 934, in main
    build(specfile, distpath, workpath, clean_build)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\building\build_main.py", line 856, in build
    exec(code, spec_namespace)
  File "pyinstaller.spec", line 84, in <module>
    a = Analysis(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\building\build_main.py", line 381, in __init__
    self.__postinit__()
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
    self.assemble()
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\building\build_main.py", line 544, in assemble
    priority_scripts.append(self.graph.add_script(script))
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 268, in add_script
    self._top_script_node = super().add_script(pathname)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1433, in add_script
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1518, in import_hook
    submodule = self._safe_import_module(head, mname, submodule)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1518, in import_hook
    submodule = self._safe_import_module(head, mname, submodule)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1518, in import_hook
    submodule = self._safe_import_module(head, mname, submodule)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1518, in import_hook
    submodule = self._safe_import_module(head, mname, submodule)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2510, in _safe_import_hook
    self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1544, in import_hook
    for target_submodule in self._import_importable_package_submodules(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1794, in _import_importable_package_submodules
    submodule = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2510, in _safe_import_hook
    self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1544, in import_hook
    for target_submodule in self._import_importable_package_submodules(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1794, in _import_importable_package_submodules
    submodule = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1518, in import_hook
    submodule = self._safe_import_module(head, mname, submodule)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
    self._process_imports(n)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
    target_modules = self.import_hook(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
    target_package, target_module_partname = self._find_head_package(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
    target_package = self._safe_import_module(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 393, in _safe_import_module
    return super()._safe_import_module(module_basename, module_name, parent_package)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2061, in _safe_import_module
    n = self._scan_code(module, co, co_ast)
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2645, in _scan_code
    self._scan_bytecode(
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2749, in _scan_bytecode
    for inst in util.iterate_instructions(module_code_object):
  File "C:\Users\dada\Desktop\yukon\venv\lib\site-packages\PyInstaller\lib\modulegraph\util.py", line 139, in iterate_instructions
    yield from get_instructions(code_object)
  File "C:\Users\dada\AppData\Local\Programs\Python\Python310\lib\dis.py", line 338, in _get_instructions_bytes
    argval, argrepr = _get_const_info(arg, constants)
  File "C:\Users\dada\AppData\Local\Programs\Python\Python310\lib\dis.py", line 292, in _get_const_info
    argval = const_list[const_index]
IndexError: tuple index out of range
Traceback (most recent call last):
  File "C:\Users\dada\Desktop\yukon\build_exe.py", line 52, in <module>
    subprocess.run(["pyinstaller", "--clean", "--noconfirm", "pyinstaller.spec"], check=True)
  File "C:\Users\dada\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pyinstaller', '--clean', '--noconfirm', 'pyinstaller.spec']' returned non-zero exit status 1.

I am now releasing a new version (2022.11.5) with support for various transports (hopefully), you should be able to use that executable.
As for the pyinstaller log, I don’t understand what caused the failure, maybe the pyinstaller community on GitHub is of more help. I build Yukon on Windows 10 as frequently as on Ubuntu and it also builds fine on CI. One thing I noticed is that your Python patch version is 0 whereas the newest is 3.10.8.

1 Like

@silver.valdvee
Great! It’s awesome! :+1:
Thank you so much for your valuable effort to solve this issue. :pray: