dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.09k stars 452 forks source link

Install pyserial with python #449

Closed alidaf closed 2 months ago

alidaf commented 3 months ago

Is your feature request related to a problem? Please describe

I'm trying to install firmware to an ERCF, which needs pyserial. Unfortunately, I cannot install it because I run into an error: externally-managed-environment

Describe the solution you'd like

To be able to use pyserial

Describe alternatives you've considered

Installing globally - fails

Additional information

No response

dw-0 commented 3 months ago

Hi, im unsure what exactly KIAUHs role in this issue is or should be. Can you elaborate?

alidaf commented 3 months ago

I am thinking that KIAUH is a universal installer for all things Klipper and the de-facto standard for installation and management, so making sure all dependencies are catered for would be a consistent approach. I think some firmware flashing can already be carried out by KIAUH if I'm not mistaken. I know this is a bit of an outlier but since KIAUH already installs Python it would be simpler and more convenient given that Python seems to now expect venv based installations, which are outside of my comfort zone. This was more of an issue when trying to install pyserial on Armbian than it was an RaspiOS but package managers like pip are a little more nuanced than apt and I've come unstuck with it many times, especially when dealing with different versions of Python.

dw-0 commented 3 months ago

Hi! Thanks for explaining, but im sorry i still don't understand what the actual feature request for KIAUH would be at this point. I don't have an ERCF, hence im unable to relate to anything that is required to set this up or flash any involved microcontrollers. I had a brief look into the ERCF manual https://github.com/EtteGit/EnragedRabbitProject/blob/main/Documentation/ERCF_Manual.pdf to try and get an idea of what your feature request could be. Is it the requirement for a custom flash command which differs from the ones currently supported in KIAUH? But that still wouldn't answer the question in regards to pyserial and why you aren't able to install it.