You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/05 15:59:47 UTC

[GitHub] tornadomeet opened a new issue #9320: how to fix error of SyntaxError: Non-ASCII character '\xef' i?

tornadomeet opened a new issue #9320: how to fix error of SyntaxError: Non-ASCII character '\xef' i?
URL: https://github.com/apache/incubator-mxnet/issues/9320
 
 
   ## Description
   when build from source and ```import mxnet```, it will output error like this:
   ```shell
   SyntaxError: Non-ASCII character '\xef' in file mxnet/ndarray/gen_contrib.py on line 508, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
   ```
   
   ## Environment info (Required)
   python2.7.13+macos10.12.3
   
   MXNet commit hash:
   ```1150b65a077681493f4cbd8fad3957ca9038aa27```
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   ```python
   import mxnet
   ```
   
   ## What have you tried to solve it?
   
   1. add one line of code ```# -*- coding: utf-8 -*-``` in file ```mxnet/ndarray/gen_contrib.py```, but no work.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services