Bug 559087
Summary: | import matplotlib.toolkits.basemap fails | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Matt Domsch <matt_domsch> |
Component: | python-basemap | Assignee: | Jef Spaleta <jspaleta> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | el5 | CC: | gwync, jspaleta, tremble |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 559086 | Environment: | |
Last Closed: | 2010-09-24 12:39:54 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 559086 | ||
Bug Blocks: |
Description
Matt Domsch
2010-01-27 05:05:48 UTC
Two things, Firstly wrong package, you wanted python-matplotlib rather than python-basemap the hint was in your import line "import matplotlib.toolkits" (not "import basemap") Secondly, this is not a bug, this is an API change. See : http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg07053.html > NOW basemaps won't work any more! When I run, I get: > > Traceback (most recent call last): > File "C:\Documents and > Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py", > line 13, in <module> > from matplotlib.toolkits.basemap import Basemap as Basemap > ImportError: No module named toolkits.basemap One of the api changes is that the import line for basemap (and all matplotlib toolkits) is import mpl_toolkits.basemap rather than import matplotlib.toolkits.basemap Moving the conversation from the Fedora ticket (https://bugzilla.redhat.com/show_bug.cgi?id=559086) over to the EPEL ticket " Thanks for looking at the bug again. I wound up doing this in mirrormanager: # ABI breakage try: # this export sucks - basemap should do this automatically os.environ['BASEMAPDATA'] = '/usr/share/basemap' from mpl_toolkits.basemap import Basemap except: # python-basemap-0.9.5 from matplotlib.toolkits.basemap import Basemap " EPEL API breakage is kinda sucky. Part of me thinks that we should put a very basic matplotlib.toolkits.basemap package in that simply pretends to be mpl_toolkits.basemap just to avoid the API breakage. But there's only been the one ticket, the update happened 9 months ago, and there also seemed to be a strong demand for the version increment... https://bugzilla.redhat.com/show_bug.cgi?id=502082 |