Matplotlib.tests sub-modules missing

Hello,

I am installing matplotlib on Snow Leopard 10.6. I downloaded v1.1.0 from the sourceforge site and installed in this manner:

···

############################

$ export CFLAGS="-arch i386 -arch x86_64 -I/usr/X11/include -I/usr/X11/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk"
$ export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64 -L/usr/X11/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk"
$ export FFLAGS="-arch i386 -arch x86_64"
$ tar -xf matplotlib-1.1.0.tar.gz
$ cd matplotlib-1.1.0
$ python setup.py build
$ python setup.py install
$
$ python

import matplotlib as mpl
mpl.test("1")

...........EEEEEEEEEEE

ERROR: Failure: AttributeError ('module' object has no attribute 'test_backend_svg')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/tmp/test/lib/python2.6/site-packages/nose/loader.py", line 379, in loadTestsFromName
    module = resolve_name(addr.module)
  File "/private/tmp/test/lib/python2.6/site-packages/nose/util.py", line 331, in resolve_name
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_backend_svg'

(etc.)
#############################

The failure is for all modules in matplotlib.tests except for test_agg, test_cbook, test_mlab, and test_transform.

Is the sourceforge achive incomplete?

-Dave

--
David Welch
david.m.welch@...287...

Update: test folders are in the build directory, they are just not
being copied during build.

*bump*

···

On 11/10/11, David Welch <david.m.welch@...287...> wrote:

Hello,

I am installing matplotlib on Snow Leopard 10.6. I downloaded v1.1.0 from
the sourceforge site and installed in this manner:

############################

$ export CFLAGS="-arch i386 -arch x86_64 -I/usr/X11/include
-I/usr/X11/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk"
$ export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch
x86_64 -L/usr/X11/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk"
$ export FFLAGS="-arch i386 -arch x86_64"
$ tar -xf matplotlib-1.1.0.tar.gz
$ cd matplotlib-1.1.0
$ python setup.py build
$ python setup.py install
$
$ python

import matplotlib as mpl
mpl.test("1")

...........EEEEEEEEEEE

ERROR: Failure: AttributeError ('module' object has no attribute
'test_backend_svg')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/tmp/test/lib/python2.6/site-packages/nose/loader.py", line
379, in loadTestsFromName
    module = resolve_name(addr.module)
  File "/private/tmp/test/lib/python2.6/site-packages/nose/util.py", line
331, in resolve_name
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_backend_svg'

(etc.)
#############################

The failure is for all modules in matplotlib.tests except for test_agg,
test_cbook, test_mlab, and test_transform.

Is the sourceforge achive incomplete?

-Dave

--
David Welch
david.m.welch@...287...

--

Dept. of Psychiatry
Dept. of Biomedical Engineering
University of Iowa

Have you tried removing the build directory and install directories to force a full rebuild? It sounds like the build or install got stuck at some point. I've never seen it not copy *.py files in a package before.

Mike

···

On 11/11/2011 03:12 PM, David Welch wrote:

Update: test folders are in the build directory, they are just not
being copied during build.

*bump*

On 11/10/11, David Welch<david.m.welch@...287...> wrote:

Hello,

I am installing matplotlib on Snow Leopard 10.6. I downloaded v1.1.0 from
the sourceforge site and installed in this manner:

############################

$ export CFLAGS="-arch i386 -arch x86_64 -I/usr/X11/include
-I/usr/X11/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk"
$ export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch
x86_64 -L/usr/X11/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk"
$ export FFLAGS="-arch i386 -arch x86_64"
$ tar -xf matplotlib-1.1.0.tar.gz
$ cd matplotlib-1.1.0
$ python setup.py build
$ python setup.py install
$
$ python

import matplotlib as mpl
mpl.test("1")

...........EEEEEEEEEEE

ERROR: Failure: AttributeError ('module' object has no attribute
'test_backend_svg')
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/private/tmp/test/lib/python2.6/site-packages/nose/loader.py", line
379, in loadTestsFromName
     module = resolve_name(addr.module)
   File "/private/tmp/test/lib/python2.6/site-packages/nose/util.py", line
331, in resolve_name
     obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_backend_svg'

(etc.)
#############################

The failure is for all modules in matplotlib.tests except for test_agg,
test_cbook, test_mlab, and test_transform.

Is the sourceforge achive incomplete?

-Dave

--
David Welch
david.m.welch@...287...

Has ANYONE installed matplotlib on OSX 10.6 and had the module tests pass? Specifically in a virtualenv setup?

-Dave

···

--
David Welch
david.m.welch@...287...

On 11Nov, 2011, at 2:12 PM, David Welch wrote:

Update: test folders are in the build directory, they are just not
being copied during build.

*bump*

On 11/10/11, David Welch <david.m.welch@...287...> wrote:

Hello,

I am installing matplotlib on Snow Leopard 10.6. I downloaded v1.1.0 from
the sourceforge site and installed in this manner:

############################

$ export CFLAGS="-arch i386 -arch x86_64 -I/usr/X11/include
-I/usr/X11/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk"
$ export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch
x86_64 -L/usr/X11/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk"
$ export FFLAGS="-arch i386 -arch x86_64"
$ tar -xf matplotlib-1.1.0.tar.gz
$ cd matplotlib-1.1.0
$ python setup.py build
$ python setup.py install
$
$ python

import matplotlib as mpl
mpl.test("1")

...........EEEEEEEEEEE

ERROR: Failure: AttributeError ('module' object has no attribute
'test_backend_svg')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/private/tmp/test/lib/python2.6/site-packages/nose/loader.py", line
379, in loadTestsFromName
   module = resolve_name(addr.module)
File "/private/tmp/test/lib/python2.6/site-packages/nose/util.py", line
331, in resolve_name
   obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_backend_svg'

(etc.)
#############################

The failure is for all modules in matplotlib.tests except for test_agg,
test_cbook, test_mlab, and test_transform.

Is the sourceforge achive incomplete?

-Dave

--
David Welch
david.m.welch@...287...

--

Dept. of Psychiatry
Dept. of Biomedical Engineering
University of Iowa

Hi Micheal,

I didn't see your response, apologies for the frustrated post. I am building a completely fresh VE and when the testing fails I blow it away and start from scratch. I will try your suggestion on my next iteration and see if that fixes the problem.

Ideally, I'd like to "pip install" the module into my VE, but the same problem persists with that approach. My pip command is:

pip install -f http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz matplotlib

per the suggestion from http://seanbehan.com/mac-os-x/installing-matplotlib-on-os-x-for-python-version-2-6-1/

If my setup.cfg file isn't configured correctly, could it cause an issue like this? I would think that the test sub-directories would be required, no matter the setup. I've attached the installation output below in case that sheds any light on the problem.

matplotlib.txt (36.3 KB)