[x3d-public] python 2.7 complains about x3d.py

Andreas Plesch andreasplesch at gmail.com
Thu Jun 11 12:19:35 PDT 2020


$ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import x3d.x3d as x
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/andreas/.local/lib/python2.7/site-packages/x3d/x3d.py", line
206
SyntaxError: Non-ASCII character '\xc3' in file
/home/andreas/.local/lib/python2.7/site-packages/x3d/x3d.py on line 206,
but no encoding declared; see http://python.org/de
v/peps/pep-0263/ for details

$ cat -nA  /home/andreas/.local/lib/python2.7/site-packages/x3d/x3d.py |
grep 206 | head -1
  206      'SFMatrix3d', # Single Field (singleton) 3M-CM-^W3 matrix of
double-precision floating point numbers$

There are indeed non-ascii characters.

python3 does not complain.

-- 
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200611/f4e00b59/attachment.html>


More information about the x3d-public mailing list