Bug 1403159 - np.concatenate((lsmask_lons,lsmask_lons[1:]+360),1) : IndexError: axis 1 out of bounds [0, 1)
Summary: np.concatenate((lsmask_lons,lsmask_lons[1:]+360),1) : IndexError: axis 1 out ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-basemap
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-09 10:11 UTC by Adrian Reber
Modified: 2016-12-20 06:23 UTC (History)
2 users (show)

Fixed In Version: python-basemap-1.0.7-14.fc25 python-basemap-1.0.7-14.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-19 23:22:09 UTC
Type: Bug


Attachments (Terms of Use)

Description Adrian Reber 2016-12-09 10:11:33 UTC
Description of problem:
With the update to Fedora 25 from Fedora 23 I am no longer able to draw maps using python-basemap (python-basemap-1.0.7-12.fc25.x86_64):

I get following traceback:

Traceback (most recent call last):
  File "/home/fhadm/ftpadmin/bin/mirrortraffic.py", line 696, in <module>
    draw_client_density(dest, client_ips, 'overall')
  File "/home/fhadm/ftpadmin/bin/mirrortraffic.py", line 81, in draw_client_density
    m.drawlsmask(ocean_color=(0,0,255,255), land_color=(0,128,0,255), lakes=True)
  File "/usr/lib64/python2.7/site-packages/mpl_toolkits/basemap/__init__.py", line 3916, in drawlsmask
    np.concatenate((lsmask_lons,lsmask_lons[1:]+360),1)
IndexError: axis 1 out of bounds [0, 1)

Following upstream patch fixes this for me:

https://github.com/matplotlib/basemap/commit/025d4f5bd6f25b79bdbbfd4db1eea23b4ebc4796

Comment 1 Fedora Update System 2016-12-09 14:15:19 UTC
python-basemap-1.0.7-14.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8fb579c00a

Comment 2 Fedora Update System 2016-12-09 14:15:27 UTC
python-basemap-1.0.7-14.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-89383fe7b0

Comment 3 Fedora Update System 2016-12-10 03:58:57 UTC
python-basemap-1.0.7-14.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8fb579c00a

Comment 4 Fedora Update System 2016-12-10 04:29:14 UTC
python-basemap-1.0.7-14.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-89383fe7b0

Comment 5 Adrian Reber 2016-12-11 16:55:20 UTC
Thanks for the quick update.

I filed a ticket upstream I had with an old configuration file. Just mentioning it here if someone else stumbles upon upside down maps:

https://github.com/matplotlib/basemap/issues/329

'backend: cairo' resulted in upside down maps. Deleting my matplotlibrc resulted in correct drawn maps again.

Comment 6 Fedora Update System 2016-12-19 23:22:09 UTC
python-basemap-1.0.7-14.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2016-12-20 06:23:57 UTC
python-basemap-1.0.7-14.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.