Lightweight-Python-Wrappers icon indicating copy to clipboard operation
Lightweight-Python-Wrappers copied to clipboard

Some Handy Enhancements

Open peardox opened this issue 2 years ago • 6 comments

Problem... We have the ability to install the components we've created so far but some recent experimentation has raised the issue of requiring a method to update PIP installed packages.

Cause... Yesterday I was testing out Simple Diffusion and everything was going wrong. It turned out that a few packages had updated and this was causing the AI model to break (took some hunting down). Basically there was a new version of diffusers (component coming soon) which has a dependancy (transformers - coming soon) which had also been updated.

Solution... We need a way to version check installed packages and compare them to current packages on pip so we can see if any need updating. Then if required update any packages that need it. Note that this process should be optional (you may purposely want to keep some older packages)

Next... I'll have a play with it to see what we can do with current components.

GetPIP probably needs the ability to be called with the --upgrade switch

peardox avatar Oct 15 '22 18:10 peardox

Are you setting the package version in its settings? Do that if you want to target to specific versions avoiding this sort of issue.

lmbelo avatar Oct 15 '22 18:10 lmbelo

I too think an "AutoUpgrade" property would be great. I will create it as possible.

lmbelo avatar Oct 15 '22 18:10 lmbelo

Can you set a discussion along this feature? It will be good to keep it on track and into users sight.

lmbelo avatar Oct 15 '22 18:10 lmbelo

The particular issue was just from manually installing without version info via pip but it raised the likelyhood of this becoming an issue. I'm exploring what happens and what I can do after component wizard....

Basically I need half a dozen or so more components. Decided it'd be a better idea to write a Wizard that just do six components then use the Wizard to make the components. A bigger job at the start but saves massive in long term...

peardox avatar Oct 15 '22 18:10 peardox

Can you set a discussion along this feature? It will be good to keep it on track and into users sight.

Do what?

peardox avatar Oct 15 '22 18:10 peardox

We could also do with an Import only component - you supply a pip / conda package name and it goes and gets it and installs it. This would be really useful for 'supporting' packages like pyqt5 (and lots of others) which extend some other package.

peardox avatar Oct 15 '22 19:10 peardox