Skip to content

Make pyload plugin work without packaging installed#2642

Merged
gazpachoking merged 1 commit intoFlexget:developfrom
StefftheEmperor2:develop
Mar 27, 2020
Merged

Make pyload plugin work without packaging installed#2642
gazpachoking merged 1 commit intoFlexget:developfrom
StefftheEmperor2:develop

Conversation

@StefftheEmperor2
Copy link
Copy Markdown
Contributor

Signed-off-by: Stefan Bischoff stefan.bischoff@9plus.de
Fixes #2641
packaging is now optional. if not found, the pyload plugin assumes, the old api should be used

Signed-off-by: Stefan Bischoff <stefan.bischoff@9plus.de>
@gazpachoking
Copy link
Copy Markdown
Member

Looks good, thanks for this!

@gazpachoking gazpachoking merged commit 180f9eb into Flexget:develop Mar 27, 2020
kepi added a commit to kepi/Flexget that referenced this pull request Dec 26, 2020
Pyload is currently not working with packaging installed (on both stable and ng)
and it is probably not working on pyload-ng with or without packaging installed.

What is wrong
=============

For stable
-----------

GET method for /getServerVersion will not work as we have to be logged in. This
returned completely wrong data which were later acted on.

For pyload-ng
-------------

This was working only when packaging was installed. In Flexget#2642 there was attempt
to work without packaging, but IMHO it simply turns the version checking off and
pyload is always considered non ng.

How to fix it
=============

I chose rather simple approach. We currently don't really need exact pyload
version. We only need to know if we are on stable or ng. And we can easily
detect it by testing login response, no need to do whole magic around.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flexget crashes due to "No module named 'packaging'"

2 participants