yakut icon indicating copy to clipboard operation
yakut copied to clipboard

Yakut broken on osx

Open thirtytwobits opened this issue 2 years ago • 6 comments

  1. installed yakut in virtualenv
  2. compiled dsdl types
  3. tried to subscribe.

expected: yakut subscribes actually: Error: Run yakut compile <path>/uavcan to compile DSDL namespace 'uavcan'

$> yakut compile  public_regulated_data_types/uavcan 
$> y sub --with-metadata uavcan.node.heartbeat uavcan.diagnostic.record                                                                                                  Error: Run `yakut compile <path>/uavcan` to compile DSDL namespace 'uavcan'

thirtytwobits avatar Jun 12 '23 19:06 thirtytwobits

compiled dsdl types

Are you sure you followed the setup instructions given in the README? It is no longer necessary to compile DSDL and the compile command is scheduled for removal soon as it is no longer useful. See https://github.com/OpenCyphal/yakut/issues/63

pavel-kirienko avatar Jun 19 '23 08:06 pavel-kirienko

Encountered the same error while following the PyCyphal Demo - Poking the node using Yakut instructions. It appears that this section of the demo documentation may need to be revised, or a specific version of Yakut should be specified to avoid this issue.

ycherniavskyi avatar Nov 05 '23 17:11 ycherniavskyi

CYPHAL_PATH should point not at the namespaces themselves but one level higher. Please double-check this.

pavel-kirienko avatar Nov 05 '23 17:11 pavel-kirienko

And yes, following the instructions outlined in the Adding DSDL namespaces section of Yakut README.md resolved the issue (as partially indicated by @pavel-kirienko in #63).

ycherniavskyi avatar Nov 05 '23 17:11 ycherniavskyi

It appears that the primary issue with the existing PyCyphal Demo - Poking the node using Yakut section isn't the inclusion of the superfluous yakut compile ... command; rather, it's the omission of the essential step of setting the CYPHAL_PATH environment variable in newly opened terminal sessions for Yakut use. :)

ycherniavskyi avatar Nov 05 '23 17:11 ycherniavskyi

In any case, I can confirm that Yakut is functioning as expected on macOS. So the issue can be satisfactorily closed.

ycherniavskyi avatar Nov 05 '23 18:11 ycherniavskyi