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

error importing neurio module #3

Closed
larsks opened this issue Dec 28, 2015 · 3 comments · Fixed by #4
Closed

error importing neurio module #3

larsks opened this issue Dec 28, 2015 · 3 comments · Fixed by #4

Comments

@larsks
Copy link
Contributor

larsks commented Dec 28, 2015

Trying to import the neurio module yields the following traceback:

>>> import neurio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "neurio/__init__.py", line 446
SyntaxError: Non-ASCII character '\xe2' in file neurio/__init__.py on line 447, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
>>> 

This is due to the word location’s in the doc text for get_appliance_stats_by_location. You can either replace this with an ascii single quote (') or declare the source file to be UTF-8 encoded by adding the following at top:

# -*- coding: utf-8 -*-
@jordanh
Copy link
Owner

jordanh commented Dec 29, 2015

Hey! Thanks a ton! I hadn't run into this one due to my terminal's localization settings. More than happy to fix this fast by replacing the stupid unicode character with a standard ASCII '. However, would you like to submit a pull request? I'd love to count you among the contributors to the module.

@larsks
Copy link
Contributor Author

larsks commented Dec 30, 2015

Sure, happy to. I should be back in front of a computer tomorrow sometime.
On Dec 28, 2015 8:37 PM, "Jordan Husney" notifications@github.com wrote:

Hey! Thanks a ton! I hadn't run into this one due to my terminal's
localization settings. More than happy to fix this fast by replacing the
stupid unicode character with a standard ASCII '. However, would you like
to submit a pull request? I'd love to count you among the contributors to
the module.


Reply to this email directly or view it on GitHub
#3 (comment)
.

@jordanh
Copy link
Owner

jordanh commented Dec 30, 2015

@larsks thank's a ton! Much appreciated.

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

Successfully merging a pull request may close this issue.

2 participants