You are not logged in.

#1 2024-12-18 15:59:33

cannibus
Member
Registered: 2022-12-26
Posts: 14

Python optree package is outdated

Hi, in the repos the package python-optree has version 0.12.1, but this version is broken. The new one is 0.13.1, and in here the problem is apparently solved. Why is the package not at its latest version in the archlinux repository? How can I install this library without having to use pip? Thanks in advance

Offline

#2 2024-12-18 16:21:27

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,446
Website

Re: Python optree package is outdated

In what way is the current version broken?

Online

#3 2024-12-18 16:33:52

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Python optree package is outdated

Offline

#4 2024-12-18 17:21:34

loqs
Member
Registered: 2014-03-06
Posts: 18,730

Re: Python optree package is outdated

Unlike in the link I was still able to reproduce the issue with python-optree 0.13.0. I was not able to with python-optree 0.13.1.

Offline

#5 2024-12-18 17:26:39

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Python optree package is outdated

Thank you for the answer, but the point is how can I have the latest version of this package? Do I have to wait for the update in the archlinux repos? I don't want to create a venv since all my python libraries are installed globally

Offline

#6 2024-12-18 17:27:26

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,446
Website

Re: Python optree package is outdated

Now we just need a PKGBUILD for python-optree 0.13.1 big_smile I had a quick look earlier on but noticed that it needs more work than just a simple bump tongue

Online

#7 2024-12-18 17:39:02

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Python optree package is outdated

Thank you for your help. Hope it won't take too long!

Offline

#8 2024-12-18 17:40:44

loqs
Member
Registered: 2014-03-06
Posts: 18,730

Re: Python optree package is outdated

gromit wrote:

Now we just need a PKGBUILD for python-optree 0.13.1 big_smile I had a quick look earlier on but noticed that it needs more work than just a simple bump tongue

Do you mean the cmake requirement in pyproject.toml?

	sed -i 's/"cmake.*",//' pyproject.toml

Last edited by loqs (2024-12-18 17:44:36)

Offline

#9 2024-12-18 17:44:31

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,446
Website

Re: Python optree package is outdated

Latest optree package now coming to your nearest mirror!
https://gitlab.archlinux.org/archlinux/ … eafa7204b8

Thanks for the sed loqs, any idea why this is acting up?

Online

#10 2024-12-18 17:48:29

loqs
Member
Registered: 2014-03-06
Posts: 18,730

Re: Python optree package is outdated

cmake was added to pyproject.toml in https://github.com/metaopt/optree/commi … f3e36713b0 as Arch's cmake does not contain python metadata the requirement is not fulfilled.

Offline

#11 2024-12-18 18:04:59

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Python optree package is outdated

I was able to install the latest version. Now everything is working well. Thank you a lot!

Offline

#12 2024-12-18 18:30:16

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,446
Website

Re: Python optree package is outdated

@loqs where would this version information be located? yikes (I'm trying to understand if we need a fix for our cmake pkg)

Online

#13 2024-12-18 18:43:12

loqs
Member
Registered: 2014-03-06
Posts: 18,730

Re: Python optree package is outdated

$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip list
Package Version
------- -------
pip     24.2
(venv) $ pip install cmake
Collecting cmake
Downloading cmake-3.31.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.5 kB)
Downloading cmake-3.31.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 27.8/27.8 MB 17.9 MB/s eta 0:00:00
Installing collected packages: cmake
Successfully installed cmake-3.31.2

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
(venv) $ pip list
Package Version
------- -------
cmake   3.31.2
pip     24.2
$ ls venv/lib/python3.12/site-packages/cmake-3.31.2.dist-info
entry_points.txt  INSTALLER  licenses  METADATA  RECORD  REQUESTED  WHEEL

Last edited by loqs (2024-12-18 18:43:51)

Offline

Board footer

Powered by FluxBB