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

question about installing the latest version of the Ibex analysis extension #61

Open
lfyqr opened this issue Nov 9, 2023 · 4 comments
Labels
question Further information is requested

Comments

@lfyqr
Copy link

lfyqr commented Nov 9, 2023

Dear authors,
I encountered error msgs when installing the software recently. I just installed the standalone version. no matter using python or anaconda, it seems to have the same error during installation of not finding visual studio with note: This error originates from a subprocess, and is not likely not a problem with pip. ”, ERROR: failed building wheel for SimpleITK; Error: could not build wheels for SimpleITK, which is required to install pyproject.toml-based projects.

Would you pls give me some suggestions on that? thanks a lot!

I successfully installed the software last year with Python pip.

Best, Yu

@zivy
Copy link
Member

zivy commented Nov 13, 2023

Hello @lfyqr,

This looks like you are installing on a system where there is no Python wheel available, so pip tries to build the project from the source code. This is strange as there are SimpleITK wheels for the most popular OS and Python versions.

Please provide the OS and Python version you are using so that we can try to recreate the error. As a best guess, I will try to recreate the error using Windows 11 using anaconda Python 3.11 (possible because we are using the standalone approach and don't depend on what imaris supports).

@lfyqr
Copy link
Author

lfyqr commented Nov 13, 2023

thanks a lot, Zivy. The python version we are using is 3.7.0 as suggested in the paper, the OS is windows 10 and version is 10.0.19042. I installed the extension last year (summer 2022) on the same computer and it was successful.

@zivy zivy added the question Further information is requested label Nov 13, 2023
@zivy
Copy link
Member

zivy commented Nov 13, 2023

Hello @lfyqr,

OK, problem identified and the solution is simple.

Cause: The support for Python 3.7.0 was removed in SimpleITK release 2.3.0. pip is trying its best to satisfy the constraint SimpleITK >= 2.0.0 which means install SimpleITK version 2.3.1. When no wheel is available, pip tries to install from source which for SimpleITK means compiling (you don't want to do that, unless you really need to).

Solution (choose the one that is relevant for your case):

  1. If you are using the extensions via the Imaris interface and Imaris requires Python 3.7.0 - edit the environment.yml file, change the SimpleITK version to - SimpleITK = 2.2.1, the last version to support Python 3.7.0.
  2. If you are using the extensions in standalone mode, edit the environment.yml file, change the Python version to - python=3.11. This will install the latest patch version of the 3.11 Python release and the current version of SimpleITK, 2.3.1.

@lfyqr
Copy link
Author

lfyqr commented Nov 16, 2023

Thanks a lot, Zivy! it works! I just tried option 1, and changed the SimpleITK==2.2.1 in the yml file and works fine! I haven't got the chance to try option 2 yet, but will update here once I do. thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants