QTPlasmaC can't find Python3-serial

More
2 years 11 months ago #284425 by donell
snowgoer540 -
Output from
    apt show python3-serial | grep -i version
is
   Version: 3.4-4

Don

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284465 by snowgoer540
Are you running a RIP or a package install?

This may be failing somewhere else in the section of code that is wrapped in a try/except, and might not have anything to do with the “missing” package.

From a terminal can you do the follow:
python3
(Press enter)

Type:
import serial
(Press enter)

If that doesn’t produce an error, type this:
import serial.tools.list_ports as PORTS
(press enter)

If neither of those cause an error message, then it’s failing elsewhere and I will make some mods to the handler to give us more robust error messages to figure out the issue.

You can get out of the python session by typing quit()

Let me know the results, please.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284475 by tommylight
Try this
sudo apt purge brltty*
Reboot and test.
-
This should be the first thing to try on any Linux when having issues with serial!!!
-
This has become a must in my experience as all the new-ish Linux distros will install brltty by default if any fancier keyboard is detected, and that in turn will stop anything serial working, /dev/serial/ will remain empty no matter how many stuff is plugged in and out.
If you get access denied, a quick search for arduino serial access will show how to deal with it by adding your user to "dialout" group, and in some cases using chmod to change permissions is needed, but rarely.
The following user(s) said Thank You: snowgoer540

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284477 by snowgoer540
I didn’t know that, great advice Tommy!

I just ask that before he does that he does my check. I want to make sure the try/except is failing outside of the imports.

Then we can go on to make a better error message, perhaps with your recommendation if it comes to solve his problem.

:)

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284479 by tommylight
I did start with "try this" :)
BRLTTY is used for braille keyboards so takes priority over anything else, found this out the hard way a while back where USB stuff using serial would work on some PC's and laptops, but will not work no matter what i do with permissions and groups and dialouts on some other PC's and laptops. Removed that and everything worked. Took about 2 hours of searching as the whole f@kin internet is copy/paste the same "add user to group" and "chmod a+x ttyACM0" ! Where the hell did they get ACM0? I have never ever seen that on my equipment, and i do have a lot of equipment, a lot!
I need help... :)

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284480 by snowgoer540
Just wanted to make sure he tried it second :)

No doubt computers are simultaneously the solution for a myriad of problems and also the cause of a myriad of problems.

Hope all is well (or as well as it can be) in your part of the world!

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.339 seconds
Powered by Kunena Forum