Skip to content

Problem installing python-casacore in macOS 12 #256

@rana2704

Description

@rana2704

Hi there, I am trying to install python-casacore and experiencing the following error. I did "pip install python-casacore"

Collecting python-casacore
Using cached python-casacore-3.5.2.tar.gz (98 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in ./opt/anaconda3/lib/python3.9/site-packages (from python-casacore) (1.24.4)
Requirement already satisfied: six in ./opt/anaconda3/lib/python3.9/site-packages (from python-casacore) (1.16.0)
Building wheels for collected packages: python-casacore
Building wheel for python-casacore (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [81 lines of output]
/private/var/folders/z_/20653ck97374ysj4rnjnrm4h0000gr/T/pip-install-m6lyjypo/python-casacore_489eeef94a8b407587d59bef458c0290/setup.py:100: UserWarning:
Could not find a Python boost library! Please use your package manager to install boost.

  Or install it manually:
  
  http://boostorg.github.io/python/doc/html/index.html
  
    warnings.warn(no_boost_error)
  /private/var/folders/z_/20653ck97374ysj4rnjnrm4h0000gr/T/pip-install-m6lyjypo/python-casacore_489eeef94a8b407587d59bef458c0290/setup.py:154: UserWarning: Could not find Casacore!
  
  Casacore is a critical requirement. Please install Casacore using a package manager or install it manually.
  You can find installation instructions on:
  
   https://github.com/casacore/casacore
  
  If you have Casacore installed in a non default location, you need to specify the location:
  
  $ python setup.py build_ext -I/opt/casacore/include:/other/include/path -L/opt/casacore/lib
  
  Don't give up!
  
    warnings.warn(no_casacore_error)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-cpython-39
  creating build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/functionals.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/util.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/measures.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/quanta.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/images.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/fitting.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  copying pyrap/tables.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore
  copying casacore/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore
  creating build/lib.macosx-10.9-x86_64-cpython-39/pyrap/images
  copying pyrap/images/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap/images
  copying pyrap/images/image.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap/images
  copying pyrap/images/coordinates.py -> build/lib.macosx-10.9-x86_64-cpython-39/pyrap/images
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/tablecolumn.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/wxtablebrowser.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/tablehelper.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/tableindex.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/tableutil.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/table.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/tablerow.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/msutil.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  copying casacore/tables/tableiter.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/tables
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/fitting
  copying casacore/fitting/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/fitting
  copying casacore/fitting/fitting.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/fitting
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/util
  copying casacore/util/substitute.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/util
  copying casacore/util/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/util
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/images
  copying casacore/images/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/images
  copying casacore/images/image.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/images
  copying casacore/images/coordinates.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/images
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/functionals
  copying casacore/functionals/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/functionals
  copying casacore/functionals/functional.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/functionals
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/measures
  copying casacore/measures/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/measures
  creating build/lib.macosx-10.9-x86_64-cpython-39/casacore/quanta
  copying casacore/quanta/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/quanta
  copying casacore/quanta/quantity.py -> build/lib.macosx-10.9-x86_64-cpython-39/casacore/quanta
  running build_ext
  building 'casacore.fitting._fitting' extension
  creating build/temp.macosx-10.9-x86_64-cpython-39
  creating build/temp.macosx-10.9-x86_64-cpython-39/src
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/22031320/opt/anaconda3/include -arch x86_64 -I/Users/22031320/opt/anaconda3/include -fPIC -O2 -isystem /Users/22031320/opt/anaconda3/include -arch x86_64 -I/Users/22031320/opt/anaconda3/include/python3.9 -c src/fit.cc -o build/temp.macosx-10.9-x86_64-cpython-39/src/fit.o -std=c++11
  src/fit.cc:28:10: fatal error: 'boost/python.hpp' file not found
  #include <boost/python.hpp>
           ^~~~~~~~~~~~~~~~~~
  1 error generated.
  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 python-casacore
Running setup.py clean for python-casacore
Failed to build python-casacore
ERROR: Could not build wheels for python-casacore, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions