OcelotProject / Ocelot

Ocelot is open-source linking for life cycle assessment. See https://ocelot.space/ for more information.
Other
25 stars 7 forks source link

encoding issue with faces.json #79

Closed haasad closed 8 years ago

haasad commented 8 years ago

loading of faces.json fails if sys.stdin.encoding != 'utf8' in Ocelot/ocelot/transformations/locations/_topology.py on line 22

change lines 21, 22 from: self.data = {key: set(value) for key, value in json.load(open(self.fp))['data']}

to

self.data = {key: set(value) for key, value in json.load(open(self.fp, enconding='utf8'))['data']}