Open hamshkhawar opened 4 months ago
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?
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
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
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.
Great that is works with python 3.9
. Do you specifically need python 3.9.19
?
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
Is there any remaining issue here or can this be closed?
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?