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

omero-py incompatibility with Python 3.9.19 #409

Open
hamshkhawar opened this issue May 20, 2024 · 7 comments
Open

omero-py incompatibility with Python 3.9.19 #409

hamshkhawar opened this issue May 20, 2024 · 7 comments

Comments

@hamshkhawar
Copy link

Hi Omero,
I've been trying to install omero-py with Python 3.9.19 on macOS, but I'm facing package incompatibility issues. Is it possible to get this resolved?

@will-moore
Copy link
Member

Hi,
What is your Mac version?
What steps did you try? Did you use conda as described at https://github.com/ome/omero-py?tab=readme-ov-file#installation
What error did you see?

@hamshkhawar
Copy link
Author

hamshkhawar commented Jun 7, 2024

Hi Will,

Sorry for the late reply. I am using macOS 14.4.1. I tried installing omero-py using both pip and conda.

Using pip: pip install omero-py didn't work at all and threw a "Failed to build zeroc-ice" error.
Using conda: conda install ome::omero-py does not work when I create a conda environment with Python 3.9.19. (same error)

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Applications/anaconda3/envs/omero18/include -I/Applications/anaconda3/envs/omero18/include -fPIC -O2 -isystem /Applications/anaconda3/envs/omero18/include -arch x86_64 -DICE_STATIC_LIBS -Isrc -Isrc/ice/cpp/include -Isrc/ice/cpp/src -I/Applications/anaconda3/envs/omero18/include/python3.9 -c src/BatchRequestInterceptor.cpp -o build/temp.macosx-10.9-x86_64-cpython-39/src/BatchRequestInterceptor.o -w
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for zeroc-ice
Running setup.py clean for zeroc-ice
Failed to build zeroc-ice
ERROR: Could not build wheels for zeroc-ice, which is required to install pyproject.toml-based projects

@will-moore
Copy link
Member

When using conda, you should use conda-forge to install ice

conda create -n myenv python=3.9 conda-forge::zeroc-ice==3.6.5 omero-py

We recently updated install instructions with other alternatives based on pre-built ice binaries. Have a look at:

https://omero.readthedocs.io/en/stable/developers/Python.html

@hamshkhawar
Copy link
Author

Thanks for your response. It works when I relax the Python patch version constraint. However, setting the patch version specifically to 3.9.19 doesn't work.

@will-moore
Copy link
Member

Great that is works with python 3.9. Do you specifically need python 3.9.19?

@hamshkhawar
Copy link
Author

I worked on a tool that utilizes the omero-py package. The GitHub Actions workflow for this tool uses Python 3.9.19 for running tests, which causes the tests to fail. Since the GitHub Actions are also used for other tools, we do not want to restrict the Python patch version

@sbesson
Copy link
Member

sbesson commented Jul 11, 2024

Is there any remaining issue here or can this be closed?

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

3 participants