Git Product home page Git Product logo

Comments (5)

ChristopherAJDuncan avatar ChristopherAJDuncan commented on August 16, 2024

Under certain conditions (if I run setup.py explicitly) I get the following:

...
Scanning dependencies of target ccllib_swig_compilation
[ 93%] Swig compile ccl.i for python
:3: Error: Unable to find 'python.swg
...

from ccl.

tilmantroester avatar tilmantroester commented on August 16, 2024

The quick solution, unless you absolutely need to use the system or macports python, is to use conda.

from ccl.

hsinfan1996 avatar hsinfan1996 commented on August 16, 2024

Check if you can import numpy in your python interpreters. cmake obtains include path using python -c "import numpy as n; print(n.__version__); print(n.get_include());", with python replaced by the path to the python interpreter found previously.

from ccl.

ChristopherAJDuncan avatar ChristopherAJDuncan commented on August 16, 2024

Thanks @tilmantroester, I can install with Conda, but the script requires use of namaster (which is not currently hosted on Conda in arm form as far as I can tell, but also is another project I'm struggling to install anyway...) and glass (which is only hosted on PyPi). I'm not very familiar with Conda, and I think it can be set up to mix Conda forge with PyPi so I'm willing to try, but ideally could rely on PyPi entirely.

@hsinfan1996 thanks for the suggestion: the python interpreters can all see numpy. Even running your suggestion outputs:

1.26.3
/Users/Shared/env/py3.11/lib/python3.11/site-packages/numpy/core/include

as expected

from ccl.

ChristopherAJDuncan avatar ChristopherAJDuncan commented on August 16, 2024

Aha, I got it. I can install directly using python setup.py install. There were only two issues:

  1. I had installed swig using macports, but had not pip installed swig
  2. I had to force a completely clean install.

Thanks to all who responded. One step forward...

I'd note that I still cannot install via PyPi, but at least I have a working version now :)

from ccl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.