this post was submitted on 07 Jun 2024
23 points (100.0% liked)

Linux

5472 readers
31 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
 

Sounds easy? Well, it should have been. I'm not talking about a "Hello, World!" (although it is more or less on the same level for me). The goal was to write a set of three MQTT clients that properly talk with each other and interact nicely.

So I had to learn Python and MQTT on the same day. Should not be an issue after 40 years of programming. But it quickly turned out that the Python library/package for MQTT on Ubuntu was heavily outdated (1.6), and did not supply all the functions the documentation and examples (2.0) asked for. Using pip3 didn't work, as it complained that the package structure was maintained by the OS. In the end, I had to virtualize the python3 system and pip3 the 2.0 package there and run it.

After about three hours, I had the clients working as they should. Yes, I think MQTT is a good base for the next project.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 6 months ago (1 children)

I can recommend arch for programming once you get tired of the Ubuntu outdated thing. Having the latest packages is awesome.

[โ€“] [email protected] 3 points 6 months ago

While I have nothing against an arch recommendation, I wouldn't rely on my distro when there is tooling to get any version of a library directly from pypi.