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 fails in WSL environment #24

Closed
jhuguetn opened this issue Mar 23, 2022 · 2 comments
Closed

Installation fails in WSL environment #24

jhuguetn opened this issue Mar 23, 2022 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jhuguetn
Copy link

Unsuccessful attempt to install this package on a WSL2 Ubuntu system as a (AmyPET) dependency. Some required libraries are missing, perhaps?

System details:

(amypet_dev) user@host:/.../AmyPET$ uname -r
5.10.60.1-microsoft-standard-WSL2
(amypet_dev) user@host:/.../AmyPET$ python -V
Python 3.7.13
(amypet_dev) user@host:/.../AmyPET$ pip -V
pip 22.0.4 from /home/user/venvs/amypet_dev/lib/python3.7/site-packages/pip (python 3.7)

pip error trace:

(amypet_dev) user@host:/.../AmyPET$ pip install cuvec
Collecting cuvec
  Using cached cuvec-2.11.1.tar.gz (37 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cuvec
  Building wheel for cuvec (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cuvec (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [83 lines of output]
      WARNING:cuvec.setup:Import or CUDA device detection error:
      NVML Shared Library Not Found
      Not searching for unused variables given on the command line.
      -- The C compiler identification is GNU 7.5.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is GNU 7.5.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/pip-install-ty00gks4/cuvec_d337dca4039c4731a10fcf56a873fa80/_cmake_test_compile/build
      -- The C compiler identification is GNU 7.5.0
      -- The CXX compiler identification is GNU 7.5.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Error at /tmp/pip-build-env-4csnmbpo/overlay/lib/python3.7/site-packages/cmake/data/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
        Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES
        Development Development.Module Development.Embed) (found version "3.7.13")
      Call Stack (most recent call first):
        /tmp/pip-build-env-4csnmbpo/overlay/lib/python3.7/site-packages/cmake/data/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
        /tmp/pip-build-env-4csnmbpo/overlay/lib/python3.7/site-packages/cmake/data/share/cmake-3.22/Modules/FindPython/Support.cmake:3166 (find_package_handle_standard_args)
        /tmp/pip-build-env-4csnmbpo/overlay/lib/python3.7/site-packages/cmake/data/share/cmake-3.22/Modules/FindPython3.cmake:490 (include)
        CMakeLists.txt:12 (find_package)
...
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cuvec
Failed to build cuvec
ERROR: Could not build wheels for cuvec, which is required to install pyproject.toml-based projects
@jhuguetn
Copy link
Author

Update: The CMake error message below gave me a hint, I've tried installing python3-dev system package and now building process worked fine.

Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES
Development Development.Module Development.Embed) (found version "3.7.13")

If python-dev is a requirement I would suggest stating it in the README file.

@casperdcl
Copy link
Member

casperdcl commented Mar 23, 2022

Yes either installing via conda (which includes development libraries by default) or apt-get install python3-dev (and a working compiler) are required indeed.

@casperdcl casperdcl added the documentation Improvements or additions to documentation label Mar 23, 2022
@casperdcl casperdcl self-assigned this Mar 23, 2022
casperdcl added a commit that referenced this issue Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants