You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
rpherrera
added a commit
to rpherrera/bovespa
that referenced
this issue
Jul 12, 2016
When importing bovespa from python terminal, as a local project installed with
pip install -e .
we got this:And this was solved by placing the following code at the top, from referred file (bovespa/utils/layout.py):
The same procedure should be made into another file (bovespa/utils/content.py):
A pull request is on the way in order to fix this.
The text was updated successfully, but these errors were encountered: