icecube / simweights

Pure python library for weighting IceCube simulation

Home Page:https://docs.icecube.aq/simweights/main

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install failure within locally built metaproject

NehaLad9 opened this issue · comments

I am trying to build a copy of a metaproject locally and install simweights within the build/lib of the same metaproject
this is the command i used
pip install --target $I3_BUILD/lib git+https://github.com/icecube/simweights.git
and i am running into following error:

Cloning https://github.com/icecube/simweights.git to /tmp/pip-req-build-7_2ebp8p
  Running command git clone --quiet https://github.com/icecube/simweights.git /tmp/pip-req-build-7_2ebp8p
  Resolved https://github.com/icecube/simweights.git to commit bb041001bc330ec14f4e627d3ae1d8b6dbbc89dd
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      Traceback (most recent call last):
        File "/cvmfs/icecube.opensciencegrid.org/py3-v4.2.1/RHEL_7_x86_64/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 15, in <module>
          from glob import glob
      ModuleNotFoundError: No module named 'glob'
      [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.

This is not a problem with simweights but a problem with the way python was installed on cvmfs. As a work around you can do the following:

python -m pip install build
git clone https://github.com/icecube/simweights.git
python -m build
python -m pip install dist/simweights-0.1-py3-none-any.whl

I ended up doing something similar.. Thanks though

note that pip install --no-build-isolation git+https://github.com/icecube/simweights.git would have also worked