Update to Matplotlib and Numpy producing error

Thanks Darren. The win32 binaries are updated now. TkAgg is the
default on all of them, and the OSX binaries already had TkAgg as the
default.

- Charlie

···

On Mon, Jun 2, 2008 at 6:13 PM, Darren Dale <darren.dale@...163...> wrote:

On Monday 02 June 2008 05:33:52 pm John Hunter wrote:

On Mon, Jun 2, 2008 at 4:32 PM, Charlie Moad <cwmoad@...287...> wrote:
> I am pretty sure setupext.py used to have these defaults coded in, but
> something must have changed. I haven't had to check default backends
> in a long time. I'll get new builds up asap.

Darren has added a setup.cfg to configure the builds external to
setup.py. You'll probably want to use it to configure the default
backend.

When I did all that stuff, I tried to make setup.py choose the backend for the
default matplotlibrc intelligently. It defaults to agg, but then if a gui
toolkit is available it will use that. BUT, maybe you want to tell matplotlib
what the default backend should be, so you can set that in setup.cfg and THAT
setting has precedence, see the template. That feature was added specifically
for package managers, and I hoped it would make your life easier, Charlie.
You should be able to edit setup.cfg, set the backend there, and it will be
propagated to the default matplotlibrc.

Jeff, Got it and it seemed to install.

Well... as luck would have it, I still have a problem. I think I know what is causing it, though. I was using the high-res data, and the "upgrade" nukes that data. Here's the message I'm getting along with the code snippet, just to make sure I'm on the right track for a solution:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python25\Lib\lib-tk\Tkinter.py", line 1403, in __call__
    return self.func(*args)
  File "C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py", line 405, in callback
    populate_banddata(fileToOpen)
  File "C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py", line 383, in populate_banddata
    populate_location_map(sheetnumber, sP, txInfo)
  File "C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py", line 100, in populate_location_map
    projection='lcc', lat_1=33, lat_2=45, lon_0=-95, resolution='l')
TypeError: 'module' object is not callable

Code Snippet:
    m1 = basemap(llcrnrlon=-119, llcrnrlat=22, urcrnrlon=-64, urcrnrlat=49, \
                 projection='lcc', lat_1=33, lat_2=45, lon_0=-95, resolution='l')
    shp_info = m1.readshapefile(r'C:\Python25\Lib\basemap-0.99\examples\citiesx020', 'states', drawbounds=True)

Any hints on what to do now that I am downloading the fullres?
Regards,
Kurt

Well, installing the highres data into the 'data' directory didn't help.
Kurt

Looks like your latest compile includes the full-res data.
Kurt

My fault. that last error was because I re-installed matplotlib and forgot to "re-change" the backend to TkAgg.
Sorry. Everything seems to be working again now (although a bit slower).
Kurt