GithubHelp home page GithubHelp logo

Comments (7)

dkoes avatar dkoes commented on August 11, 2024

Do you have boost-python installed? There is some disagreement between distributions of what the suffix of this library should be, which might be the problem (e.g. on Ubuntu I have libboost_python-py36).

from libmolgrid.

alanbchristie avatar alanbchristie commented on August 11, 2024

Mmm - not sure (you can tell this whole area is new to me) and the whole area for Python 3 is rather confusing and poorly documented. I'm not using conda and installing the system package is pointless (I guess) - because I'm not using the system python.

One day unix might actually move away form Python 2 (especially with it being mothballed in about 4 weeks!). One can dream.

I've installed boost and it claims to have built everything. I'm new to this area of code, is boost-python part of a different repo?

from libmolgrid.

dkoes avatar dkoes commented on August 11, 2024

Look in /usr/lib (or possibly /usr/lib/x86_64-linux-gnu, whereever boost is installed) and look for libboost_python*

There are several variants of boost packages. You need the equivalent of the libboost-all-dev package, which has the libboost-python-dev package as a dependency.

from libmolgrid.

alanbchristie avatar alanbchristie commented on August 11, 2024

Ah, in my /opt/boost/lib/ is see libboost-python27.* ... even though I followed instructions and used --with-python and --with-python-version and --with-python-root for Python 3.7.

from libmolgrid.

alanbchristie avatar alanbchristie commented on August 11, 2024

This is starting to look like a boost problem then. My boost installation command is...

./bootstrap.sh \
        --prefix=/opt/boost \
        --with-python=/usr/bin/python3 \
        --with-python-version=3.7 \
        --with-python-root=/usr/local/lib/python3.7
./b2 -j4 install

And what gets built (amongst other things) are some libraries prefixed with libboost_python27.*.

from libmolgrid.

dkoes avatar dkoes commented on August 11, 2024

I've never had trouble building boost. I would try a clean checkout of boost or asking for help on their mailing list.

from libmolgrid.

alanbchristie avatar alanbchristie commented on August 11, 2024

Solved It's not about the python installation, although I have links to built binary in the form of:-

ln -s /usr/local/bin/python3.7 /usr/bin/python3
ln -s /usr/local/bin/pip3.7 /usr/bin/pip3

Without a ~/user-config.jam boost appears to build for the system python, regardless of the supplied bootstrap args. A home-directory user-config jam file that just contains the following instructs boost to build the libboost_python37 files:-

using python : 3.7 ;

Thanks for the hints - hopefully back on course now.

from libmolgrid.

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.