I use up-to-date Debian testing (wheezy) with an amd64 architecture. I am trying to use matplotlib with Python 3.2, I downloaded matplotlib-matplotlib-v1.1.0-684-ge87374e.tar.gz
I expanded the tarball and did
python3.2 setup.py build
and, as root,
python3.2 setup.py install
When I tried to run
python3.2 tests.py
I had two types of error. First the files in lib/dateutil: parser.py, rrule.py, etc. had not been run through 2to3. I removed back-quotes, used the function-call form for exceptions, and fixed some import statements.
After fixing these errors I get 13 messages like:
ERROR: Failure: AttributeError ('module' object has no attribute 'test_backend_svg')
···
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 37, in runTest
raise self.exc_class(self.exc_val).with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 379, in loadTestsFromName
module = resolve_name(addr.module)
File "/usr/lib/python3/dist-packages/nose/util.py", line 331, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_backend_svg'
These tests are all in build/lib.linux-x86_64-3.2/matplotlib/tests.
There is a similar problem in http://sourceforge.net/mailarchive/message.php?msg_id=28398373
What is the problem and the fix?
Are you running the tests from the source directory? That often results in failures that look like this.
Mike
···
On 05/14/2012 06:11 PM, Edward C. Jones wrote:
I use up-to-date Debian testing (wheezy) with an amd64 architecture. I
am trying to use matplotlib with Python 3.2, I downloaded
matplotlib-matplotlib-v1.1.0-684-ge87374e.tar.gz
I expanded the tarball and did
python3.2 setup.py build
and, as root,
python3.2 setup.py install
When I tried to run
python3.2 tests.py
I had two types of error. First the files in lib/dateutil: parser.py,
rrule.py, etc. had not been run through 2to3. I removed back-quotes,
used the function-call form for exceptions, and fixed some import
statements.
After fixing these errors I get 13 messages like:
ERROR: Failure: AttributeError ('module' object has no attribute
'test_backend_svg')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 37, in
runTest
raise self.exc_class(self.exc_val).with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 379, in
loadTestsFromName
module = resolve_name(addr.module)
File "/usr/lib/python3/dist-packages/nose/util.py", line 331, in
resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_backend_svg'
These tests are all in build/lib.linux-x86_64-3.2/matplotlib/tests.
There is a similar problem in
Re: [Matplotlib-users] Matplotlib.tests sub-modules missing | matplotlib
What is the problem and the fix?
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options