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 Issue #5

Open
GaryWang7 opened this issue Nov 26, 2024 · 0 comments
Open

Installation Issue #5

GaryWang7 opened this issue Nov 26, 2024 · 0 comments

Comments

@GaryWang7
Copy link
Collaborator

Hi Alex,

I have been trying to install Homolig on my working computer. I have encountered several installation issues since the last update.

I tried both the Docker file and pip. I figured out pip one but somehow could not build the Docker image.

  • For Docker, numpy did not installed correctly with python 3.11, so I changed the Dockerfile to use python:3.10. However, there was a conflict with numba:

    88.62 Processing pynndescent-0.5.13-py3-none-any.whl
    88.62 Installing pynndescent-0.5.13-py3-none-any.whl to /usr/local/lib/python3.10/site-packages
    88.64 Adding pynndescent 0.5.13 to easy-install.pth file
    88.64 
    88.64 Installed /usr/local/lib/python3.10/site-packages/pynndescent-0.5.13-py3.10.egg
    88.64 error: numpy 1.22.4 is installed but numpy<2.2,>=1.24 is required by {'numba'}
    ------
    Dockerfile:10
    --------------------
       8 |     RUN pip install --upgrade pip 
       9 |     
      10 | >>> RUN python ./setup.py install
      11 |     # Docker build -t garywang7/homolig:1.0.0 .
    --------------------
    ERROR: failed to solve: process "/bin/sh -c python ./setup.py install" did not complete successfully: exit code: 1
    
  • For pip, I think there is again an issue with Python 3.12.4 that I was using:

            File "/tmp/pip-build-env-2qnbho8f/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
              self.run_setup()
            File "/tmp/pip-build-env-2qnbho8f/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
              super().run_setup(setup_script=setup_script)
            File "/tmp/pip-build-env-2qnbho8f/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
              exec(code, locals())
            File "<string>", line 55, in <module>
            File "<string>", line 52, in _guard_py_ver
          RuntimeError: Cannot install on Python version 3.12.4; only versions >=3.7,<3.11 are supported.
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    

The issue was resolved after I created a conda environment with python=3.10 and ran pip install again. The test-code also ran properly after installation. It would be best if python version is specified somewhere in the instructions.

My machine:

wsl --version

WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4460

Thank you so much!
Gary

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

1 participant