Kathara icon indicating copy to clipboard operation
Kathara copied to clipboard

Kathara Python API dependency on deprecated pyuv module (Debian 12)

Open Pierrig1 opened this issue 1 year ago • 3 comments

Operating System

Debian12

Kathará Version

3.7.7

Bug Description

I am currently trying to use the Kathara Python API on a Debian 12 system, but I encountered a blocking issue due to the dependency on the pyuv module, which has been deprecated and is no longer installable.

Steps To Reproduce

1 Set up a Debian 12 environment. 2. Create a virtual environment using python -m venv env and activate it. 3. Attempt to install pyuv with pip install pyuv. 4. The installation fails due to the module being deprecated and incompatible with the current system.

Expected Behavior

The Kathara Python API should either avoid using deprecated libraries or suggest an alternative solution for newer systems like Debian 12.

Check Command Output

Is there any workaround or plan to replace pyuv in future releases of Kathara?

Thank you for your help!

Pierrig1 avatar Oct 09 '24 18:10 Pierrig1

Dear @Pierrig1,

Thank you for opening the issue and reaching out!

The version of pyuv on PyPI is currently incompatible with newer versions of Python (>= 3.11). We've already addressed the issue by submitting a PR, but unfortunately, the fix has not yet been published to PyPI by the pyuv maintainers.

However, as mentioned in the Getting Started guide for the API, you can still download the correct version directly from GitHub using the following command:

python3 -m pip install git+https://github.com/saghul/pyuv@master#egg=pyuv

After that, everything should work smoothly.

Please let me know if this helps, and don't hesitate to reach out if you need further assistance.

tcaiazzi avatar Oct 10 '24 14:10 tcaiazzi

Hello ! Thank you for your suggestion.

I tried the patch you mentioned, but unfortunately, the GitHub link for pyuv returns a 404 error, so I am unable to download the correct version. It seems the repository or branch might no longer be available.

Is there any alternative solution, or perhaps a different way to proceed?

Many thanks!

Pierrig1 avatar Oct 11 '24 11:10 Pierrig1

Hi @Pierrig1, what command did you exactly run to get a 404?

I've just tried to install it from terminal and it works: image

Cheers, Mariano.

Skazza94 avatar Oct 11 '24 14:10 Skazza94

I initially encountered the 404 error when trying to access the address provided, but after running the command directly in the terminal, it worked perfectly. My mistake there, thanks for the clarification! Thanks for the help !

Pierrig1 avatar Oct 27 '24 12:10 Pierrig1

No worries! I am closing the issue, you can reopen it if you encounter any other problem!

Cheers, Mariano

Skazza94 avatar Oct 27 '24 13:10 Skazza94