Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pixi search shows incorrect version of package #2331

Open
2 tasks done
pavelzw opened this issue Oct 21, 2024 · 3 comments
Open
2 tasks done

pixi search shows incorrect version of package #2331

pavelzw opened this issue Oct 21, 2024 · 3 comments
Assignees
Labels
🐞 bug Something isn't working

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Oct 21, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

❯ pixi search pytsql -c conda-forge
Using channels: conda-forge

pytsql pyh4f5629e_0
-------------------

Name                pytsql
Version             1.1.0
Build               pyh4f5629e_0
Size                1633355
License             BSD-3-Clause
Subdir              noarch
File Name           pytsql-1.1.0-pyh4f5629e_0.tar.bz2
URL                 https://conda.anaconda.org/conda-forge/noarch/pytsql-1.1.0-pyh4f5629e_0.tar.bz2
MD5                 f790fee063ea3d3064e87be9c302da57
SHA256              af21d61f78d98299e6e454dd6e750721771b7c3fcaa4f9dcb9eb044d46569657

Dependencies:
 - antlr-python-runtime 4.9.2.*
 - pyodbc >=4.0.30
 - python >=3.7
 - sqlalchemy >=1.4

Image

Issue description

for pytsql, a too old version is shown: 1.1.0 instead of 1.2.3

i expect this is because 1.1.0 was noarch while 1.2.3 was built for osx-arm64

Expected behavior

1.2.3 should be shown

@pavelzw pavelzw changed the title pixi shows incorrect version of package pixi search shows incorrect version of package Oct 21, 2024
@Hofer-Julian Hofer-Julian added the 🐞 bug Something isn't working label Oct 21, 2024
@DWSimmons
Copy link

DWSimmons commented Oct 24, 2024

I've run into a similar issue though I'm not exactly sure if it's the same or not.

✔ Pixi has been updated to version 0.34.0.
darin@home:/media/darin/M2$ pixi init pixi_search
✔ Created /media/darin/M2/pixi_search/pixi.toml
darin@home:/media/darin/M2$ cd pixi_search/
darin@home:/media/darin/M2/pixi_search$ pixi add pytorch
✔ Added pytorch >=2.4.1,<3
darin@home:/media/darin/M2/pixi_search$ pixi remove pytorch
✔ Removed pytorch
darin@home:/media/darin/M2/pixi_search$ code pixi.toml

Changed pixi.toml to `channels = ["pytorch", "conda-forge", "https://conda.modular.com/max"]`

darin@home:/media/darin/M2/pixi_search$ pixi add pytorch
✔ Added pytorch >=2.5.0,<3
darin@home:/media/darin/M2/pixi_search$ pixi search pytorch -vvv
DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Failed to load system config: /etc/pixi/config.toml (error: failed to read config from '/etc/pixi/config.toml')
DEBUG pixi_config: Loading config from /home/darin/.config/pixi/config.toml
DEBUG pixi_config: Failed to load global config: /home/darin/.config/pixi/config.toml (error: failed to read config from '/home/darin/.config/pixi/config.toml')
DEBUG pixi_config: Loading config from /home/darin/.config/pixi/config.toml
DEBUG pixi_config: Failed to load global config: /home/darin/.config/pixi/config.toml (error: failed to read config from '/home/darin/.config/pixi/config.toml')
DEBUG pixi_config: Loading config from /home/darin/.pixi/config.toml
DEBUG pixi_config: Failed to load global config: /home/darin/.pixi/config.toml (error: failed to read config from '/home/darin/.pixi/config.toml')
DEBUG pixi_config: Loading config from /media/darin/M2/pixi_search/.pixi/config.toml
DEBUG pixi_config: Failed to load local config: /media/darin/M2/pixi_search/.pixi/config.toml (error: failed to read config from '/media/darin/M2/pixi_search/.pixi/config.toml')
Using channels: pytorch, conda-forge, https://conda.modular.com/max/
DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Failed to load system config: /etc/pixi/config.toml (error: failed to read config from '/etc/pixi/config.toml')
DEBUG pixi_config: Loading config from /home/darin/.config/pixi/config.toml
DEBUG pixi_config: Failed to load global config: /home/darin/.config/pixi/config.toml (error: failed to read config from '/home/darin/.config/pixi/config.toml')
DEBUG pixi_config: Loading config from /home/darin/.config/pixi/config.toml
DEBUG pixi_config: Failed to load global config: /home/darin/.config/pixi/config.toml (error: failed to read config from '/home/darin/.config/pixi/config.toml')
DEBUG pixi_config: Loading config from /home/darin/.pixi/config.toml
DEBUG pixi_config: Failed to load global config: /home/darin/.pixi/config.toml (error: failed to read config from '/home/darin/.pixi/config.toml')
DEBUG rattler_repodata_gateway::fetch: Unsupported cache-control value 'max-age=30, must-revalidate'. Assuming out of date...
DEBUG rattler_repodata_gateway::fetch: Unsupported cache-control value 'max-age=30, must-revalidate'. Assuming out of date...
DEBUG rattler_repodata_gateway::fetch: Cache is 3days 1h 54m 50s 505ms 431us 862ns old but can at most be 20m old. Assuming out of date...
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch: fetching 'https://conda.modular.com/max/linux-64/repodata.json.bz2'
DEBUG rattler_repodata_gateway::fetch: Cache is 2h 3m 53s 498ms 530us 58ns old but can at most be 20m old. Assuming out of date...
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: reqwest::connect: starting new connection: https://conda.modular.com/    
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:resolve{host=conda.modular.com}: hyper_util::client::legacy::connect::dns: resolving host="conda.modular.com"
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch: fetching 'https://conda.modular.com/max/noarch/repodata.json.bz2'
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: reqwest::connect: starting new connection: https://conda.modular.com/    
 INFO get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch::jlap: fetching JLAP state from https://conda.anaconda.org/pytorch/noarch/repodata.jlap (bytes=680-)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:resolve{host=conda.modular.com}: hyper_util::client::legacy::connect::dns: resolving host="conda.modular.com"
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: reqwest::connect: starting new connection: https://conda.anaconda.org/    
 INFO get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch::jlap: fetching JLAP state from https://conda.anaconda.org/pytorch/linux-64/repodata.jlap (bytes=91218-)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:resolve{host=conda.anaconda.org}: hyper_util::client::legacy::connect::dns: resolving host="conda.anaconda.org"
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: reqwest::connect: starting new connection: https://conda.anaconda.org/    
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:resolve{host=conda.anaconda.org}: hyper_util::client::legacy::connect::dns: resolving host="conda.anaconda.org"
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connecting to 18.238.192.2:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connecting to 18.238.192.123:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connecting to 104.19.144.37:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connecting to 104.19.145.37:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connected to 104.19.144.37:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connected to 104.19.145.37:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connected to 18.238.192.2:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::connect::http: connected to 18.238.192.123:443
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: h2::client: binding client connection
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: h2::client: client connection bound
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: h2::codec::framed_write: send frame=Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::pool: pooling idle connection for ("https", conda.anaconda.org)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::pool: reuse idle connection for ("https", conda.anaconda.org)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=WindowUpdate { stream_id: StreamId(0), size_increment: 5177345 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=Headers { stream_id: StreamId(1), flags: (0x5: END_HEADERS | END_STREAM) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=Headers { stream_id: StreamId(3), flags: (0x5: END_HEADERS | END_STREAM) }
DEBUG h2::client: binding client connection
DEBUG h2::client: client connection bound
DEBUG h2::codec::framed_write: send frame=Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
DEBUG Connection{peer=Client}: h2::codec::framed_write: send frame=GoAway { error_code: NO_ERROR, last_stream_id: StreamId(0) }
DEBUG Connection{peer=Client}: h2::proto::connection: Connection::poll; connection error error=GoAway(b"", NO_ERROR, Library)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: h2::client: binding client connection
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: h2::client: client connection bound
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: h2::codec::framed_write: send frame=Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::pool: pooling idle connection for ("https", conda.modular.com)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=WindowUpdate { stream_id: StreamId(0), size_increment: 5177345 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: hyper_util::client::legacy::pool: reuse idle connection for ("https", conda.modular.com)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=Headers { stream_id: StreamId(1), flags: (0x5: END_HEADERS | END_STREAM) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=Headers { stream_id: StreamId(3), flags: (0x5: END_HEADERS | END_STREAM) }
DEBUG h2::client: binding client connection
DEBUG h2::client: client connection bound
DEBUG h2::codec::framed_write: send frame=Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
DEBUG Connection{peer=Client}: h2::codec::framed_write: send frame=GoAway { error_code: NO_ERROR, last_stream_id: StreamId(0) }
DEBUG Connection{peer=Client}: h2::proto::connection: Connection::poll; connection error error=GoAway(b"", NO_ERROR, Library)
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Settings { flags: (0x0), max_concurrent_streams: 100, initial_window_size: 65536, max_frame_size: 16777215 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=Settings { flags: (0x1: ACK) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=WindowUpdate { stream_id: StreamId(0), size_increment: 2147418112 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Settings { flags: (0x1: ACK) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::proto::settings: received settings ACK; applying Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Settings { flags: (0x0), max_concurrent_streams: 128, initial_window_size: 65536, max_frame_size: 16777215 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_write: send frame=Settings { flags: (0x1: ACK) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=WindowUpdate { stream_id: StreamId(0), size_increment: 2147418112 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Settings { flags: (0x1: ACK) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::proto::settings: received settings ACK; applying Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Headers { stream_id: StreamId(1), flags: (0x4: END_HEADERS) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(1) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(1), flags: (0x1: END_STREAM) }
 INFO get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch::jlap: The latest hash matches our local data. File up to date.
 INFO get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch: fetched JLAP patches successfully
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Headers { stream_id: StreamId(3), flags: (0x4: END_HEADERS) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(3) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(3), flags: (0x1: END_STREAM) }
 INFO get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch::jlap: The latest hash matches our local data. File up to date.
 INFO get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.anaconda.org")), port: None, path: "/pytorch/", query: None, fragment: None }, name: Some("pytorch") } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}: rattler_repodata_gateway::fetch: fetched JLAP patches successfully
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Headers { stream_id: StreamId(1), flags: (0x4: END_HEADERS) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(1) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(1), flags: (0x1: END_STREAM) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:stream_and_decode_to_file: rattler_repodata_gateway::fetch: downloaded 2.65 kB, decoded that into 12.21 kB, BLAKE2 hash: 83a604071c33a9bf9f0ee929dd5d30702c89f994a39e0d2528bded0e221eea2b
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Headers { stream_id: StreamId(3), flags: (0x4: END_HEADERS) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(3) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=NoArch}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:Connection{peer=Client}: h2::codec::framed_read: received frame=Data { stream_id: StreamId(3), flags: (0x1: END_STREAM) }
DEBUG get_or_create_subdir{channel=Channel { platforms: None, base_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("conda.modular.com")), port: None, path: "/max/", query: None, fragment: None }, name: None } platform=Linux64}:fetch_repo_data{cache_path=/home/darin/.cache/rattler/cache/repodata}:stream_and_decode_to_file: rattler_repodata_gateway::fetch: downloaded 2.60 kB, decoded that into 11.42 kB, BLAKE2 hash: 8fd4cf02e263ae45d68f81001e3304b419f6bd18a78bcec58a69f604a5e25197

pytorch cpu_mkl_py311h4c611e5_101
---------------------------------

Name                pytorch            
Version             2.4.1
Build               cpu_mkl_py311h4c611e5_101
Size                35716712           
License             BSD-3-Clause       
Subdir              linux-64           
File Name           pytorch-2.4.1-cpu_mkl_py311h4c611e5_101.conda
URL                 https://conda.anaconda.org/conda-forge/linux-64/pytorch-2.4.1-cpu_mkl_py311h4c611e5_101.conda
MD5                 88846dea514063b09fc290a48d156d72
SHA256              c56bc5acdc7282400caa0f42aaf957d07c59b26b2e79483f8e97ad3952cfe6bf

Dependencies:
 - __glibc >=2.17,<3.0.a0
 - _openmp_mutex >=4.5
 - filelock
 - fsspec
 - jinja2
 - libabseil * cxx17*

Actual behavior: pixi search pytorch Returned pytorch 2.4.1 the one that it initially installed from conda-forge
Expected behavior: pixi search pytorch return pytorch version 2.5.0, the version that it installed from pytorch channel so I know it can find it.

Note: both the pixi.toml and pixi.lock updated dependencies

@ruben-arts
Copy link
Contributor

Found the issue. We call a .last() on the list of package we get back from the repodata query But that is sorted on channel which we don't take into account. So it gives you the latest version of the least important channel....

@nichmor you changed the query in the search function. What would be the best way to fix this issue?

@nichmor
Copy link
Contributor

nichmor commented Oct 25, 2024

Found the issue. We call a .last() on the list of package we get back from the repodata query But that is sorted on channel which we don't take into account. So it gives you the latest version of the least important channel....

@nichmor you changed the query in the search function. What would be the best way to fix this issue?

I will take a look!

@nichmor nichmor self-assigned this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants