Test failures with pyshp 3.0.0 (AttributeError: 'tuple' object has no attribute 'tolist')
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- data-visualization
Research direction
Start in basemap/init.py at readshapefile, especially the line where shf.bbox.tolist() raises the error. Read pyshp 3.0.0's breaking-changes notes and reproduce the failure using the Debian report or the project's tests. Done means the affected tests pass with pyshp 3.0.0.
Written by the indexing model from the issue text.
Description
As reported in Debian Bug #1110711, a few tests fail with pyshp 3.0.0:
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.j0rpiwrc/downtmp/autopkgtest_tmp/hurrtracks.py", line 17, in <module>
shp_info = m.readshapefile('huralll020','hurrtracks',drawbounds=False)
File "/usr/lib/python3/dist-packages/mpl_toolkits/basemap/__init__.py", line 2152, in readshapefile
bbox = shf.bbox.tolist()
^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'tolist'
Full output: https://ci.debian.net/packages/b/basemap/unstable/amd64/62754867/
From the pyshp README:
- bbox, mbox and zbox attributes are all new Namedtuples.
- Dominant language
- Python
- Stars
- 817
- Forks
- 395
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matplotlib/basemap
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
matplotlib/basemap#368 ·
-
Python 3.14 wheels Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
matplotlib/basemap#652 · 2 comments · 5 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
matplotlib/basemap#649 · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
matplotlib/basemap#646 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
matplotlib/basemap#645 · 2 comments ·
All issues in matplotlib/basemap
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/skills#1811 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
datalayer/mcp-compose#42 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2523 ·