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

Installation error #19

Open
wtsyeda opened this issue Jul 29, 2024 · 8 comments
Open

Installation error #19

wtsyeda opened this issue Jul 29, 2024 · 8 comments

Comments

@wtsyeda
Copy link

wtsyeda commented Jul 29, 2024

Hi,

I'm trying to install this package and getting this error:

"Building wheels for collected packages: gradunwarp
Building wheel for gradunwarp (pyproject.toml) ... error
error: subprocess-exited-with-error"

I suspect this is due to an incompatible Python version. Could you please help me in fixing this :)

Kind regards,

Warda

@coalsont
Copy link
Member

coalsont commented Sep 6, 2024

That part of the error message doesn't tell me anything about why it failed.

@effigies, how do you get more useful information out of the wheel building process?

@RuiWang0805
Copy link

Hi,
I am also getting this error:
ERROR: Failed building wheel for gradunwarp
Failed to build gradunwarp
ERROR: Could not build wheels for gradunwarp, which is required to install pyproject.toml-based projects.
hope you reply.
Best wish!
Rui Wang
error

@effigies
Copy link

Building locally works fine for me, still, so it's possible that there's an old pip here.

@wtsyeda @RuiWang0805 Could you run the following?

python --version
pip --version

Then please share the exact command you ran that led to this issue, and the full output.

@JPelletiere
Copy link

I'm having a similar problem installing it, I have tried Python versions 3.12, 3.11, and 3.10, but something with the C extension seems to be going wrong. I have an up to date build tools and it's added to path. The error mentions deprecated a numpy API so I'm not sure if that's part of the problem? I am just very lost here. I have tried every trouble shoot I have found for it so far and nothing has worked.
image
image

@effigies
Copy link

effigies commented Oct 2, 2024

I see. TBH it doesn't seem worth debugging, since the custom C code has been removed and replaced with standard scipy functions. If you have git installed, you can try:

pip install git+https://github.com/Washington-University/gradunwarp.git

That will install the latest master branch.

@RuiWang0805
Copy link

I see. TBH it doesn't seem worth debugging, since the custom C code has been removed and replaced with standard scipy functions. If you have git installed, you can try:

pip install git+https://github.com/Washington-University/gradunwarp.git

That will install the latest master branch.

Thanks for your reply! I installed conda and successfully installed gradunwarp

@effigies
Copy link

effigies commented Oct 4, 2024

You can now pip install nipy-gradunwarp: https://pypi.org/project/nipy-gradunwarp/1.2.2/

This has pre-compiled packages for Mac, Windows and Linux going back several Python versions. Do not attempt to install it alongside regular gradunwarp. I used a different name on PyPI because the regular gradunwarp name is currently tied up in bureaucracy, but the contents are the same. pip will install both, but they could conflict with each other.

@swantjermg
Copy link

Hi,
I installed the package using your suggestion: pip install git+https://github.com/Washington-University/gradunwarp.git
and the console said
"...Successfully built gradunwarp
Installing collected packages: gradunwarp
Successfully installed gradunwarp-1.2.2"
But when I try to run the script test_gradient_unwarp.py I get the error:
"...from ..gradient_unwarp import GradientUnwarpRunner
ImportError: attempted relative import with no known parent package"
Have I made a mistake during installation?
Kind regards
Swantje

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

No branches or pull requests

6 participants