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

Encoding Issue #2

Open
rpherrera opened this issue Jul 12, 2016 · 0 comments
Open

Encoding Issue #2

rpherrera opened this issue Jul 12, 2016 · 0 comments

Comments

@rpherrera
Copy link

When importing bovespa from python terminal, as a local project installed with pip install -e . we got this:

>>> import bovespa
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bovespa/__init__.py", line 1, in <module>
    from .utils import record
  File "bovespa/utils/record.py", line 5, in <module>
    from . import layout
  File "bovespa/utils/layout.py", line 21
SyntaxError: Non-ASCII character '\xc3' in file bovespa/utils/layout.py on line 21, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

And this was solved by placing the following code at the top, from referred file (bovespa/utils/layout.py):

# -*- coding: utf-8 -*-

The same procedure should be made into another file (bovespa/utils/content.py):

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bovespa/__init__.py", line 1, in <module>
    from .utils import record
  File "bovespa/utils/record.py", line 6, in <module>
    from . import content
  File "bovespa/utils/content.py", line 3
SyntaxError: Non-ASCII character '\xc3' in file bovespa/utils/content.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

A pull request is on the way in order to fix this.

rpherrera added a commit to rpherrera/bovespa that referenced this issue Jul 12, 2016
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

No branches or pull requests

1 participant