Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#19006 closed enhancement (fixed)

Add Qt4Agg backend to py25-matplotlib and py-matplotlib

Reported by: mf2k (Frank Schima) Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: python Cc:
Port: py-matplotlib py25-matplotlib

Description

Please add the Qt4Agg backend to py25-matplotlib and py-matplotlib. FYI, having py25-pyqt4 installed seems to allow it to just work for me with python25.

Change History (6)

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

I've been wanting to add the Qt4Agg backend but I always run into #16068 when trying to install py25-pyqt4, so until thats fixed I can't see how I can add it.

comment:2 Changed 16 years ago by mf2k (Frank Schima)

I agree that issue needs to be fixed asap. But pyqt4 still works even though it hits the error during the activate. I am able to use pyqt4 at work like this. The problem is that the registry does not recognize that any of the files got installed so it cannot be uninstalled. Try this before and then after the install of py25-pyqt4 in ipython2.5:

import PyQt4.QtCore 

comment:3 Changed 16 years ago by skymoo (Adam Mercer)

Status: newassigned

I'll take a look over the weekend.

comment:4 Changed 16 years ago by skymoo (Adam Mercer)

Just tried install py25-pyqt4 and as expected it fails on activation. Trying to import the module you mentions fails both before:

In [1]: import PyTQ4.QtCore
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/Users/ram/<ipython console> in <module>()

ImportError: No module named PyTQ4.QtCore

and:

$ sudo port install py25-pyqt4
--->  Fetching py25-pyqt4
--->  Attempting to fetch PyQt-mac-gpl-4.4.4.tar.gz from http://pyqwt.sourceforge.net/support/
--->  Verifying checksum(s) for py25-pyqt4
--->  Extracting py25-pyqt4
--->  Configuring py25-pyqt4
--->  Building py25-pyqt4
--->  Staging py25-pyqt4 into destroot
--->  Installing py25-pyqt4 @4.4.4_0
--->  Activating py25-pyqt4 @4.4.4_0
Error: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.
$

after:

In [2]: import PyTQ4.QtCore
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/Users/ram/<ipython console> in <module>()

ImportError: No module named PyTQ4.QtCore

In [3]:

So I cannot test the Qt backend, therefore I cannot add it. #16068 needs to be fixed first.

comment:5 Changed 16 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

I found a workaround for the activation problem (see patch in #16068), so I added the qt4 variant in r48823

comment:6 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.