-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.2.14 on Linux Mint 21 refuses to launch; likely a dependency conflict #145
Comments
I opened an Issue in the Meshtastic CLI repository as well: meshtastic/python#378 |
This is a bit of a rabbit hole.. I'm certain there's nothing wrong with meshtastic. Short history:
Just last week there was a security flaw detected in protobuf: https://groups.google.com/g/grpc-io/c/msTHLzIA9n0/m/ClQKCXu9BAAJ?utm_medium=email&utm_source=footer I'm pretty sure your specific issue is that Warpinator's bundled grpcio is too old for the protobuf version you have. Setting that environment variable should temporarily resolve it (PROTOCOL_BUFFERS...) I'm hoping to get a resolution to the CPU issue so I can actually use the newer versions of grpc that will utilize the 'fixed' protobuf versions. You can also try:
Or, you could just use the flatpak version. It currently suffers from the cpu issue - if you have a surplus of cores it's not a huge deal - but is fine otherwise. Sorry for the length.. |
It looks like it's enough to just regenerate the protobuf files. Try copying those into |
I installed grpcio and grpcio-tools from pip and re-generated protobuf files. After I copied them into While this indeed worked I doubt I need to close this issue because a proper solution should be implemented. @mtwebster , thank you for your kind help! |
Perhaps it's possible to implement some sort of a post-install hook for a package manager that will check for the presence of the newer grpc stuff in the system and re-generate protobufs? I don't have enough expertise on such matters, just wanted to contribute my suggestion. |
Well, it's usually not a good idea to mix pip packages with system ones. You're invariably going to run into issues such as when you install module A, which requires a newer version of module B (which is currently provided by the system). You upgrade package B using pip, and now you've broken system module C, which relied on an older version of B. You can generally get away with it for obscure, isolated packages, but I would try to avoid it as much as possible. I'll probably start bundling grpc and protobuf for all to avoid this specific problem in the future. They're critical for warpinator, but also widely used elsewhere. We bundle zeroconf already due to breaking changes from version to version. You're best off creating a separate environment to run in when you must use pip packages. |
This issue is still present in the latest linux mint,file --> Though alternatively samba or ssh works for me,I would try to see rebuilding works or not. And yes the error message `Descriptors cannot not be created directly.
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates Its already mentioned above by @kerastinell |
I had the same warpinator error in LM 21.1 and LM 21.2 beta but don't know which of the extra deb packages I installed was the cause of it. As suggested by mtwebster I tried copying the two files from warp-proto.tar.gz into /usr/libexec/warpinator and that fixed warpinator. |
I did some more testing on a virtual install of LM21.2 beta, and the package that broke warpinator was "overgrive" which installs a number of packages including: I guess its the protobuf package that caused the problem. Purging the overgrive package does not restore warpinator functionality, so I'll stick with the workaround of copying over two updated py files as suggested above by mtwebster |
TL;DR: Warpinator v1.2.14 works great on Linux Mint 21 until I install Meshtastic CLI from
pip
. I wasn't sure about where to open this Issue and I started here.Under these conditions Warpinator works fine.
Warpinator refuses to start after I install Meshtastic CLI (github). Installation log:
Warpinator log:
There seems to be some dependency compatibility issue with the
protobuf
package. Meshtastic CLI works fine regardless of the presence of Warpinator in my system. Warpinator in its turn refuses to start when Meshtastic CLI is installed.Using the 2nd suggestion in the error log makes Warpinator work again. I didn't try the 1st suggestion, though.
The text was updated successfully, but these errors were encountered: