matplotlib/matplotlib — Issue #673: imread() not working on master
Author: WeatherGod
Created: 2012-01-14 23:16:07+00:00
State: open
Labels: confirmed

As reported and confirmed on the matplotlib-devel list at http://sourceforge.net/mailarchive/message.php?msg_id=28676039, the imread() on master is not working and raises the following exception for both grayscale and color images:

```
Traceback (most recent call last):
File "", line 1, in
File "/home/ben/Programs/matplotlib/lib/matplotlib/pyplot.py", line 1746,
in imread
return _imread(*args, **kwargs)
File "/home/ben/Programs/matplotlib/lib/matplotlib/image.py", line 1218,
in imread
return handler(fd)
TypeError: PyCXX: Error creating object of type N2Py6ObjectE from (nil)
```

This is using python 2.7 with the latest numpy and matplotlib on 32-bit Ubuntu Oneric. Also confirmed on a 64-bit Ubuntu Natty. The problem does not appear to be caused by the recent commits to src/_png.cpp by @mdboom. Maybe some sort of change to CXX?