GithubHelp home page GithubHelp logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Importing tif_lzw works fine with Python 2.6.5 on Ubuntu Linux.

Could you try importing libtiff to python via gdb or ddd to get more
information about the segmentation fault. Also check that the libtiff 
build/install
is clean (no build/ directory when running the build command).

Original comment by pearu.peterson on 19 Jan 2011 at 7:40

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Same issue here.  It could be a bug in EPD.

$ python -V
Python 2.6.6 -- EPD 6.3-2 (64-bit)

$ uname -a
Linux 2.6.37-12-generic #26-Ubuntu SMP Wed Jan 5 18:38:48 UTC 2011 x86_64 
GNU/Linux

Stack trace attached.

Problem occurs on call to import_array().  Copying the tif_lzw.so into the 
current directory and importing directly works fine.

Original comment by [email protected] on 9 Feb 2011 at 12:41

Attachments:

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
How was libtiff built? If with Python 2.7 then try rebuilding it
with Python 2.6 and against numpy that EPD provides.

Original comment by pearu.peterson on 9 Feb 2011 at 9:08

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
The only version on python I have installed is 2.6.6.  I do have a system 
python 2.6.6, but numpy is not installed there.  I have rebuilt from a fresh 
directory.  Also:


$ ldd 
/opt/epd/epd-6.3-2-rh5-x86_64/lib/python2.6/site-packages/libtiff/tif_lzw.so 
    linux-vdso.so.1 =>  (0x00007fff3f192000)
    libpython2.6.so.1.0 => /opt/epd/epd-6.3-2-rh5-x86_64/lib/libpython2.6.so.1.0 (0x00007f3de03e4000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007f3de01a1000)
    libc.so.6 => /lib/libc.so.6 (0x00007f3ddfe1d000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007f3ddfc19000)
    libutil.so.1 => /lib/libutil.so.1 (0x00007f3ddfa16000)
    libm.so.6 => /lib/libm.so.6 (0x00007f3ddf792000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f3de0980000)

Original comment by [email protected] on 9 Feb 2011 at 9:29

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I wonder if you can build and import any numpy based extension module in your 
system.
For example, try

echo -e "subroutine foo\nend" > foo.f90
f2py -c -m bar foo.f90
python -c 'import bar; print bar.__doc__'

Does it work?

Original comment by pearu.peterson on 9 Feb 2011 at 9:45

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Yes, I have never had problems with numpy extensions using EPD in the past.

Original comment by [email protected] on 9 Feb 2011 at 10:35

Attachments:

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Hmm, then I have no idea what could be wrong.

Try importing numpy before importing libtiff.

You can also edit libtiff/src/tif_lzw.c by removing its
code until it will import successfully; this might give some ideas
what is going on.

Original comment by pearu.peterson on 10 Feb 2011 at 6:05

from pylibtiff.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Here's an idea. In the header of tif_lzw.c try to change the following line

  #define PY_ARRAY_UNIQUE_SYMBOL PyArray_API

to

  #define PY_ARRAY_UNIQUE_SYMBOL PyArray_API_tif_lzw

and rebuild libtiff.

Original comment by pearu.peterson on 10 Feb 2011 at 6:23

from pylibtiff.

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.