Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#25710 closed defect (fixed)

UnicodeDecodeError when plotting `graphs.AfricaMap()`

Reported by: epalezzato Owned by:
Priority: major Milestone: sage-8.3
Component: graph theory Keywords: graphs, plot, show, unicode, days94
Cc: slelievre, epalezzato Merged in:
Authors: Frédéric Chapoton Reviewers: Peleg Michaeli
Report Upstream: N/A Work issues:
Branch: 73c5e18 (Commits) Commit:
Dependencies: Stopgaps:


In sage 8.3.beta7, plotting certain graphs results in a unicode decode error.

sage: A = graphs.AfricaMap()
sage: A.plot()
Traceback (most recent call last)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

The same happens with

Change History (5)

comment:1 Changed 3 years ago by alexjbest

  • Component changed from PLEASE CHANGE to graph theory

comment:2 Changed 3 years ago by chapoton

  • Authors set to Frédéric Chapoton
  • Branch set to public/25710
  • Commit set to 73c5e188868356ab572a412d1f36f50143f90a25
  • Status changed from new to needs_review


New commits:

73c5e18trac 25710 fix unicode in Africa map

comment:3 Changed 3 years ago by pelegm

  • Reviewers set to Peleg Michaeli
  • Status changed from needs_review to positive_review

Looks good.

comment:4 Changed 3 years ago by vbraun

  • Branch changed from public/25710 to 73c5e188868356ab572a412d1f36f50143f90a25
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:5 Changed 3 years ago by slelievre

  • Commit 73c5e188868356ab572a412d1f36f50143f90a25 deleted

Thanks! And just to confirm, this was the only map among the following with such problems:

sage: A = graphs.AfricaMap()
sage: E = graphs.EuropeMap()
sage: U = graphs.USAMap()
sage: W = graphs.WorldMap()

and that's all the maps we currently have in src/sage/graphs/generators/

Last edited 3 years ago by slelievre (previous) (diff)
Note: See TracTickets for help on using tickets.