Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- TIFFimage and RGB HOT 4
- Support for EXIF tags HOT 3
- fails to compile (Windows 7, VS2008, Python 2.7, numpy 1.6.1) HOT 6
- tests fail on all os.remove() on Windows HOT 8
- TIFF.write_image writes incorrect ORIENTATION tag HOT 4
- Reading tiffarray of large images
- http://openjpeg.googlecode.com/svn/dev-utils/scripts/generate_big_files.sh HOT 3
- RGB image format doesn't follow the standard numpy RGB format HOT 2
- import libtiff fails HOT 4
- bittools extension fails to compile on Fedora 18 (python 2.7.3, gcc 4.7.2, numpy 1.7.0) HOT 5
- Enhance parsing of tiff.h HOT 1
- TIFF.read_image() fails to read RGB images HOT 1
- Unknown TIFF tags HOT 2
- Writing a field with an empty string segfault with the C wrapper HOT 1
- Failure to import tif_lzw HOT 3
- incorrectly imports big-endian 16bit uints
- Fail to import libtiff in Ubuntu 14.04 HOT 8
- Let's put pylibtiff on PyPI so that other packages can install it as a dependency. HOT 2
- libtiff 4.x and custom tags
- Cannot be installed with Python3 (even after 2to3 translator)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylibtiff.