XayOn / katcr

Search in multiple torrent sites from your CLI
GNU General Public License v3.0
69 stars 3 forks source link

Dependency conflict #129

Closed BachoSeven closed 4 years ago

BachoSeven commented 4 years ago

Hi, I'm unsure how I could resolve this, I tried using normal pip and also pipx(contained installation) but I always get this:

ERROR: pygogo 0.10.0 has requirement future~=0.15.2, but you'll have future 0.18.2 which is incompatible.
XayOn commented 4 years ago

Hi @BachoSeven , did you try a virtualenv? Conflicts between dependencies on installed packages are pretty common.

However, I've updated the project, using poetry now and updated all deps, so this shoulD work now for you.

BachoSeven commented 4 years ago

I was able to install through pip, but it looks like it's 2.0.1, while your last release here is 3.0.0a. I also think it's not updated because typing katcr --help does not show the --engines option, for instance.

XayOn commented 4 years ago

Hi @BachoSeven I've just uploaded "katcr-3.0.0a0" to pypi, have in account that its an alpha.

This is basically an "emergency" alpha, as most torrent providers had died or changed radically their webpages. (I.E, tpb using javascript...) making previous version hardly usable except with jackett.

It comes with major changes (and some drawbacks 😢 )

Basically, as improvements:

As drawbacks:

BachoSeven commented 4 years ago

That sounds great, especially about the Jackett support, I actually discovered katcr while looking for a nice cli tool for Jackett, I agree that using Jackett is gonna be more reliable than manually updating the torrent sites

P.S. I'll try to make an AUR package for this tool sometime soon

XayOn commented 4 years ago

The AUR package would be really nice!

I just improved the jackett support a bit, it wasnt working with torrentstream, and I've added a configuration file to store the api key and URL.

BachoSeven commented 3 years ago

Hei, I've been trying to make the AUR package, but I have some technical difficulties, since on Arch I need to follow the Packaging Guidelines, which means I cannot use pip to install, but rather I have to add all necessary dependencies. Moreover, since not all dependencies listed in pyproject.toml were present in Arch/AUR, I went ahead and packaged some of them, and some of the dependencies of the dependencies(...)

Unfortunately, even after doing all that, the tests fail because, being on Arch, robobrowser pulls in the latest version of werkzeug, rather than 0.16.1 as required by your torrentmirror package. So, the unsolved library breakings (see 1, 2) introduced in robobrowser by newer versions of werkzeug make the tests fail. robobrowser seems to be unmaintained, so do you think I should make a package for werkzeug==0.16?

BachoSeven commented 3 years ago

If you would not mind(it would make things a lot easier), you could try using the workaround shown here: Namely, adding

import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property

BEFORE import robobrowser, so in our case it would be necessary here for torrentmirror (and perhaps here for the test in this repo). This way, I could package using the latest werkzeug version.

What do you think?

BachoSeven commented 3 years ago

btw, here are my packages for torrentmirror and katcr (latter is not uploaded because it doesn't build)

XayOn commented 3 years ago

@BachoSeven I actually closed this because robobrowser is no longer a dependency 😟

Maybe you're packaging an older version?

XayOn commented 3 years ago

Oh! i see, it's a subdependency of torrentmirror, let's continue this discussion over there. I've opened https://github.com/XayOn/torrentmirror/issues/1

BachoSeven commented 3 years ago

Feel free to add the AUR package to the installation methods, it works now(with optional support for streaming as well).

XayOn commented 3 years ago

Done, thanks @BachoSeven 👍🏽