equinor / segyio

Fast Python library for SEGY files.
Other
476 stars 214 forks source link

Build issue : missing skbuild #468

Closed dcslagel closed 4 years ago

dcslagel commented 4 years ago

Hi, I probably have something missing from my build environment. The build is reporting missing skbuild. Could you point me the right direction to bring in skbuild?

Per the build requirements in the README.md I have these installed

Python 3.7.7 cmake 3.18.0 numpy 1.19.1 pip 20.1.1 setuptools 49.2.0 setuptools-scm 4.1.2 pytest version 5.4.2

I followed these build steps from the readme
git clone https://github.com/equinor/segyio
mkdir segyio/build
cd segyio/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
make
And get this error:
Scanning dependencies of target segyio-python
[ 33%] Building python library with setup.py
Traceback (most recent call last):
  File "/usr/local/devel/MyWrk/geo-wrk/segyio/segyio/python/setup.py", line 3, in <module>
    import skbuild
ModuleNotFoundError: No module named 'skbuild'
make[2]: *** [python/CMakeFiles/segyio-python] Error 1
make[1]: *** [python/CMakeFiles/segyio-python.dir/all] Error 2
make: *** [all] Error 2

Any help or suggestions will be appreciated.

Thank you, DC

dcslagel commented 4 years ago

I found that running pip install scikit-build solved the issue. I could then successfully run make.

Here is a reference to the solution:
https://stackoverflow.com/questions/51154143/not-able-to-install-skbuild https://stackoverflow.com/a/55779902/8302821

This doesn't seem to be applicable to all Cmake installs. I had installed Cmake with pip install cmake.