# Viper Quadcopter

**URL:** <https://forum.opencyphal.org/t/viper-quadcopter/816>\
**Category:** Applications & Usage\
**Created:** [April 29, 2020, 5:06am UTC](https://forum.opencyphal.org/t/viper-quadcopter/816 "2020-04-29T05:06:42Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![aentinger](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/aentinger/32/1428_2.png) [@aentinger](https://forum.opencyphal.org/u/aentinger)\
**Post date:** [November 12, 2020, 5:35am UTC](https://forum.opencyphal.org/t/viper-quadcopter/816/41 "2020-11-12T05:35:19Z")

</div>

Still fighting with tooling here 😢

```bash
$ git clone https://github.com/UAVCAN/pyuavcan && cd pyuavcan
$ python3.8 -m pip install .

```

```bash
$ git clone https://github.com/UAVCAN/public_regulated_data_types
$ export PYTHONPATH=$(pwd)
$ pyuavcan -v dsdl-gen-pkg public_regulated_data_types/uavcan

$ ls uavcan/
diagnostic __init__.py metatransport pnp __pycache__ si
file internet node primitive register time

```

And now trying to publish some heartbeat with a command that worked in the past …

```bash
$ pyuavcan publish 32085.uavcan.node.Heartbeat.1.0 '{uptime: 9876, health: 0, mode: 3, vendor_specific_status_code: 5}' --tr='CAN(can.media.socketcan.SocketCANMedia("vcan0",8),13)'
Error: RuntimeError: Subsystem factory 'NodeFactory' for command 'publish' has failed: No module named 'cobs'

```

Any insight appreciated 🙏

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [November 12, 2020, 8:54pm UTC](https://forum.opencyphal.org/t/viper-quadcopter/816/42 "2020-11-12T20:54:41Z")

</div>

> [@aentinger](#):
>
> ```auto
> $ git clone https://github.com/UAVCAN/pyuavcan && cd pyuavcan
> $ python3.8 -m pip install .
> 
> ```

This is an odd way of installing the library. Why not just **`pip install pyuavcan`**? Not saying it’s related though.

> [@aentinger](#):
>
> And now trying to publish some heartbeat with a command that worked in the past …

You tripped over [The CLI Transport Subsystem Factory should skip transports whose dependencies are not installed · Issue #114 · OpenCyphal/pycyphal · GitHub](https://github.com/UAVCAN/pyuavcan/issues/114) again. The tentative solution is to install all dependencies:

```bash
pip install pyuavcan[transport_can_pythoncan,transport_serial,cli]

```

I am almost there to start fixing these. Maybe tomorrow.

---

<div class="post-metadata">

**Author:** ![aentinger](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/aentinger/32/1428_2.png) [@aentinger](https://forum.opencyphal.org/u/aentinger)\
**Post date:** [November 13, 2020, 5:16am UTC](https://forum.opencyphal.org/t/viper-quadcopter/816/43 "2020-11-13T05:16:25Z")

</div>

Good morning ☕ 👋

This

```auto
python 3.8 -m pip install pyuavcan[transport_can_pythoncan,transport_serial,cli]

```

did not solve my issue, however doing

```auto
python 3.8 -m pip install cobs

```

did.

As for the clumsy `python 3.8 -m pip install whatever` … as per earlier internet research this is the best way to avoid version/dependency f\*\*kup which I somehow always manage to end up with. But I can’t claim any expertise insight here, all I can say is that since doing it that way I’ve had no dependency issues anymore.

Unfortunately I’m running straight into the next blocker, still the same command that worked nicely a couple of months ago:

```auto
pyuavcan publish 32085.uavcan.node.Heartbeat.1.0 '{uptime: 9876, health: 0, mode: 3, vendor_specific_status_code: 5}' --tr='CAN(can.media.socketcan.SocketCANMedia("vcan0",8),13)'
Error: TypeError: 'int' object is not iterable 

```

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [November 13, 2020, 5:09pm UTC](https://forum.opencyphal.org/t/viper-quadcopter/816/44 "2020-11-13T17:09:46Z")

</div>

> [@aentinger](#):
>
> As for the clumsy `python 3.8 -m pip install whatever` … as per earlier internet research this is the best way to avoid version/dependency f\*\*kup which I somehow always manage to end up with.

Um, that doesn’t sound plausible.

The next blocker is also a known issue: [Improve error messages in pyuavcan.dsdl.update\_from\_builtin() · Issue #116 · OpenCyphal/pycyphal · GitHub](https://github.com/UAVCAN/pyuavcan/issues/116); it is now fixed in [Fixes for multiple recently reported minor issues by pavel-kirienko · Pull Request #132 · OpenCyphal/pycyphal · GitHub](https://github.com/UAVCAN/pyuavcan/pull/132) (commit [03b95afe4da9a934a7fff23df208f9c4ecee0d4c](https://github.com/UAVCAN/pyuavcan/pull/132/commits/03b95afe4da9a934a7fff23df208f9c4ecee0d4c)).

[Previous page](https://forum.opencyphal.org/t/viper-quadcopter/816.md?page=2)
