fossasia / pslab-desktop

PSLab Desktop Application https://pslab.io
GNU General Public License v3.0
1.77k stars 364 forks source link

Python library detection: handle detection errors #689

Open orangecms opened 3 years ago

orangecms commented 3 years ago

Regardless of whether the board is not connected, the pslab-python library not found, or Python not found, the app currently just displays that the board is not connected, which leads to misunderstandings.

Display a third state for an error with the detection of Python and/or the library. Use some dedicated icon for it. On hover, display a precise message on the detection error, whether Python or the library could not be found. When the library is not found, it is useful to also print environment variables that concern Python environments plus the Python version and binary path if found. This also helps us debug issues if people run into trouble.

orangecms commented 3 years ago

Some more hints on Python modules and path resolution: https://realpython.com/lessons/why-cant-python-find-my-modules/

cynthi8 commented 2 years ago

duplicate of #685