Coder Social home page Coder Social logo

Comments (7)

gijzelaerr avatar gijzelaerr commented on July 19, 2024

this is not the case yet, we need to first make a release.

from python-casacore.

brentjens avatar brentjens commented on July 19, 2024

Before a casacore release is made, it would help to ensure that no python2 boost libraries are linked with the casa_python3 lib when also building the casa_python lib. I found that if I do not build the casa_python lib, the cas_python3 lib is only linked with boost_python3, so then all is fine.

Current situation:
-DBUILD_PYTHON=YES -DBUILD_PYTHON3=YES : boost_python AND boost_python3 linked to casa_python3 -> trouble down the road

-DBUILD_PYTHON=NO -DBUILD_PYTHON3=YES : only boost_python3 linked to casa_python3 -> All is fine when used with Python3.

from python-casacore.

tammojan avatar tammojan commented on July 19, 2024

@gijzelaerr is currently working on better python3 support, probably fixing this as well. To be continued later today.

from python-casacore.

brentjens avatar brentjens commented on July 19, 2024

Great!

from python-casacore.

gijzelaerr avatar gijzelaerr commented on July 19, 2024

@brentjens can you verify this PR solves your problem?

casacore/casacore#280

from python-casacore.

brentjens avatar brentjens commented on July 19, 2024

On 18-12-15 12:53, Gijs Molenaar wrote:

@brentjens https://github.com/brentjens can you verify this PR solves your problem?

casacore/casacore#280 casacore/casacore#280


Reply to this email directly or view it on GitHub
#32 (comment).

brentjens@brentjenslaptop:~/abs/casacore.git/build (git python3-fix) - - - - - - - - - - - - - - - - - - - - - - - - -
[13:23:09]
$ cmake -DUSE_FFTW3=ON -DDATA_DIR=$HOME/Software/casa-measures/data -DUSE_OPENMP=ON -DUSE_HDF5=ON -DBUILD_PYTHON=ON
-DBUILD_PYTHON3=ON -DUSE_THREADS=ON -DBoost_NO_BOOST_CMAKE=True ../

brentjens@brentjenslaptop:~/abs/casacore.git/build (git python3-fix) - - - - - - - - - - - - - - - - - - - - - - - - -
[13:45:48]
$ ldd python3/libcasa_python3.so|grep boost
libboost_python3.so.1.59.0 => /usr/lib/libboost_python3.so.1.59.0 (0x00007f02d3484000)

Looks good....

brentjens@brentjenslaptop:~/abs/casacore.git/build (git python3-fix) - - - - - - - - - - - - - - - - - - - - - - - - -
[13:46:00]
$ ldd python/libcasa_python.so|grep boost
libboost_python.so.1.59.0 => /usr/lib/libboost_python.so.1.59.0 (0x00007ff7a77ff000)

Looks good too...

$ ipython
Python 3.5.1 (default, Dec 7 2015, 12:58:09)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import casacore.tables as tab

In [2]:

Everything works! Thanks.

  • Michiel

from python-casacore.

gijzelaerr avatar gijzelaerr commented on July 19, 2024

we now test for python3.4 on ubuntu 52a45c1

from python-casacore.

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.