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

[mamba] RuntimeError: Could not set URL #2721

Closed
Hind-M opened this issue Aug 1, 2023 · 3 comments · Fixed by #2723 or #2731
Closed

[mamba] RuntimeError: Could not set URL #2721

Hind-M opened this issue Aug 1, 2023 · 3 comments · Fixed by #2723 or #2731

Comments

@Hind-M
Copy link
Member

Hind-M commented Aug 1, 2023

See jupyterhub/mybinder.org-deploy#2714

@Hind-M
Copy link
Member Author

Hind-M commented Aug 1, 2023

It seems that the problem comes from not setting the url here.
I'm not sure where the url to use should be coming from (conda, channel url, ...)?
@AntoinePrv any ideas?

@AntoinePrv
Copy link
Member

AntoinePrv commented Aug 1, 2023

@Hind-M did you manage to reproduce the issue.
Perhaps we should switch to

    prefix_data = api.PrefixData(context.target_prefix)
    prefix_data.add_packages(api.get_virtual_packages())
    repo = api.Repo(pool, prefix_data)
    repos.append(repo)

As done in #2632 where we remove uses of load_conda_installed.

@Hind-M
Copy link
Member Author

Hind-M commented Aug 1, 2023

@Hind-M did you manage to reproduce the issue.

Yes, by running mamba env update -p path_to_test_env --file test_env.yml

test_env.yml:

channels:
  - conda-forge
dependencies:
  - python=3.11.4

and having a python version < 3.11.4 (3.10.12 in my case)

Perhaps we should switch to

    prefix_data = api.PrefixData(context.target_prefix)
    prefix_data.add_packages(api.get_virtual_packages())
    repo = api.Repo(pool, prefix_data)
    repos.append(repo)

As done in #2632 where we remove uses of load_conda_installed.

Yes awesome, thanks!

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 a pull request may close this issue.

2 participants