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

[Modular CLI]: Installation of PyPI package fails: Failed to fetch wheel / Unsupported archive type #226

Open
samufi opened this issue Sep 14, 2024 · 2 comments

Comments

@samufi
Copy link

samufi commented Sep 14, 2024

Issue description

When I try to install the package kdelikelihood from PyPi in my magic environment, I receive the following error:

  × failed to solve the pypi requirements of 'default' 'linux-64'
  ├─▶ Failed to build: `kdelikelihood==0.2.1`
  ├─▶ Failed to install requirements from build-system.requires (install)
  ├─▶ Failed to prepare distributions
  ├─▶ Failed to fetch wheel: numpy==1.26.4
  ├─▶ Failed to extract archive
  ╰─▶ Unsupported archive type: numpy

This happens regardless of whether I install numpy before (via pypi or not). When I work directly via pip in a conda environment, everything works fine:

pip install kdelikelihood

Potential relevant options in the setup.cfg of the package:

[options]
setup_requires =
    numpy >= 1.23
    cython >= 3
install_requires =
    numpy >= 1.23
    scipy
    matplotlib
    py-bobyqa
    objectproxypool

Steps to reproduce

Set up a new environment

magic init myenv --format mojoproject

Enter the directory

cd myenv

Try to install the package

magic add --pypi kdelikelihood

Version Info

- magic 0.2.3
- WSL on Windows 10
@DWSimmons
Copy link

I noticed for your version info, you put the modular cli 0.9.2. What version of the magic CLI are you using?

I'm on linux and I was able to add kdeliklihood

darin@home:/media/darin/M2/magic$ magic init six --mojoproject
✔ Created /media/darin/M2/magic/six/mojoproject.toml
✔ Added max >=24.5.0,<25
darin@home:/media/darin/M2/magic$ cd six
darin@home:/media/darin/M2/magic/six$ magic s
 . "/tmp/pixi_env_K9i.sh"
darin@home:/media/darin/M2/magic/six$  . "/tmp/pixi_env_K9i.sh"
(six) darin@home:/media/darin/M2/magic/six$ magic add numpy
✔ Added numpy >=1.26.4,<2
(six) darin@home:/media/darin/M2/magic/six$ magic add --pypi kdelikelihood
✔ Added kdelikelihood >=0.2.1, <0.3
Added these as pypi-dependencies.

@samufi
Copy link
Author

samufi commented Sep 21, 2024

I am using magic CLI version 0.2.3 - sorry for referring to the wrong tool. I have uninstalled modular.

For me the issue still persists.

@goldiegadde goldiegadde added the max-repo label Dec 18, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants