Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Cannot load data because of Unicode "Angstrom" sign #2

Open
birkenfeld opened this issue Aug 30, 2018 · 2 comments
Open

Cannot load data because of Unicode "Angstrom" sign #2

birkenfeld opened this issue Aug 30, 2018 · 2 comments

Comments

@birkenfeld
Copy link

I set up an instance according to the test/README.md - everything was installing fine and I could log in. Only difference is that instead of conda, I used a "normal" virtualenv to install the dependencies.

When trying to load some data, I always get an error due to failed encoding of the Angstrom sign that is added to the plot in https://github.com/neutrons/web_reflectivity/blob/master/web_reflectivity/fitting/view_util.py#L755 - if I replace that with "AA" it works.

Are you by chance operating in an environment with sys.setdefaultencoding("utf8")?

@mdoucet
Copy link
Member

mdoucet commented Aug 30, 2018

Interesting. Which python version are you using, and on which platform?
Thanks for the feedback. Feel free to contact me directly if you have other issues.

@birkenfeld
Copy link
Author

This is 2.7.15, on a Ubuntu 18.04 system. Will do - one of our scientists here at MLZ Garching was interested in the interface, and I set up the testing instance for him to try. I'm sure there will be more questions once he uploads some real data :)

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

No branches or pull requests

2 participants