Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError when plotting graphs.AfricaMap() #25710

Closed
sagetrac-epalezzato mannequin opened this issue Jun 29, 2018 · 9 comments
Closed

UnicodeDecodeError when plotting graphs.AfricaMap() #25710

sagetrac-epalezzato mannequin opened this issue Jun 29, 2018 · 9 comments

Comments

@sagetrac-epalezzato
Copy link
Mannequin

sagetrac-epalezzato mannequin commented Jun 29, 2018

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 A.show().

CC: @slel @sagetrac-epalezzato

Component: graph theory

Keywords: plot, show, unicode, days94

Author: Frédéric Chapoton

Branch: 73c5e18

Reviewer: Peleg Michaeli

Issue created by migration from https://trac.sagemath.org/ticket/25710

@sagetrac-epalezzato sagetrac-epalezzato mannequin added this to the sage-8.3 milestone Jun 29, 2018
@fchapoton
Copy link
Contributor

Branch: public/25710

@fchapoton
Copy link
Contributor

Author: Frédéric Chapoton

@fchapoton
Copy link
Contributor

Commit: 73c5e18

@fchapoton
Copy link
Contributor

comment:2

fixed


New commits:

73c5e18trac 25710 fix unicode in Africa map

@pelegm
Copy link
Contributor

pelegm commented Jun 30, 2018

Reviewer: Peleg Michaeli

@pelegm
Copy link
Contributor

pelegm commented Jun 30, 2018

comment:3

Looks good.

@vbraun
Copy link
Member

vbraun commented Jul 3, 2018

Changed branch from public/25710 to 73c5e18

@slel
Copy link
Member

slel commented Jul 6, 2018

comment:5

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/world_map.py.

@slel
Copy link
Member

slel commented Jul 6, 2018

Changed commit from 73c5e18 to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants