codealphago opened a new issue #20286:
URL: https://github.com/apache/incubator-mxnet/issues/20286
## Description
(A clear and concise description of what the bug is.)
On win10, I have compile MXNET 2.0 with Visul Studio 2019 successfully.When
I validate MXNet Installation "import mxnet as mx",it was failed to load
because of UnicodeDecodeError.I fix it to replace invalid characters in src.
### Error Message
(Paste the complete error message. Please also include stack trace by
setting environment variable `DMLC_LOG_STACK_TRACE_DEPTH=100` before running
your script.)
function = make_op_func(hdl, name, func_name)
File "D:\gvip\mxnet\source3\mxnet\python\mxnet\ndarray\register.py", line
267, in _make_ndarray_function
code, doc_str = _generate_ndarray_function_code(handle, name, func_name)
File "D:\gvip\mxnet\source3\mxnet\python\mxnet\ndarray\register.py", line
143, in _generate_ndarray_function_code
[py_str(arg_descs[i]) for i in range(narg)],
File "D:\gvip\mxnet\source3\mxnet\python\mxnet\ndarray\register.py", line
143, in <listcomp>
[py_str(arg_descs[i]) for i in range(narg)],
File "D:\gvip\mxnet\source3\mxnet\python\mxnet\base.py", line 54, in
<lambda>
py_str = lambda x: x.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 23-24:
invalid
continuation byte
## To Reproduce
(If you developed your own code, please provide a short script that
reproduces the error. For existing examples, please provide link.)
I have compile MXNET 2.0 with Visul Studio
2019(cmake,gpu,openblas)successfully.Installed built package to python env And
import mxnet in python command.
### Steps to reproduce
(Paste the commands you ran that produced the error.)
1.git clone --recursive https://github.com/apache/incubator-mxnet mxnet
2.choco install python git 7zip cmake ninja opencv
3.build openblas
4.set OpenBLAS_HOME
5.set OpenCV_DIR
6.set CUDA_PATH
7.cmake with Visul Studio 2019
8.cd mxnet path, python3 -m pip install --user -e ./python
## What have you tried to solve it?
1.I replace invalid characters “’” and "“" to "'" .Check related PR later
## Environment
***We recommend using our script for collecting the diagnostic information
with the following command***
`curl --retry 10 -s
https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
| python3`
<details>
<summary>Environment Information</summary>
```
# Paste the diagnose.py command output here
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]