jasaw opened a new issue #20657:
URL: https://github.com/apache/incubator-mxnet/issues/20657


   ## Description
   When `MXNET_CONF_PATH` is defined, `find_conf_path` in `libinfo.py` returns 
a string rather than a list of strings, causing `tvmop.py` to fail.
   
   
   ### Error Message
   >Traceback (most recent call last):
     File "main.py", line 23, in <module>
       import mxnet as mx
     File "/storage/inference/python-mxnet/mxnet/__init__.py", line 103, in 
<module>
       from . import tvmop
     File "/storage/inference/python-mxnet/mxnet/tvmop.py", line 42, in <module>
       with open(_CONF_TVM_OP[0], "r") as f:
   IsADirectoryError: [Errno 21] Is a directory: '/'
   
   
   ## To Reproduce
   
   ### Steps to reproduce
   
   1. `export MXNET_CONF_PATH=/some/path/to/tvmop.conf`
   2. `import mxnet` in python
   
   
   ## What have you tried to solve it?
   
   ```patch
   diff -rupEbwBN mxnet-1.8.0.org/python/mxnet/libinfo.py 
mxnet-1.8.0/python/mxnet/libinfo.py
   --- mxnet-1.8.0.org/python/mxnet/libinfo.py  2021-01-17 07:50:48.000000000 
+1100
   +++ mxnet-1.8.0/python/mxnet/libinfo.py      2021-10-09 17:06:13.934450228 
+1100
   @@ -124,7 +124,7 @@ def find_conf_path(prefix='tvmop'):
                    logging.warning("MXNET_CONF_PATH should be an absolute 
path, instead of: %s",
                                    conf_from_env)
                else:
   -                return conf_from_env
   +                return [conf_from_env]
            else:
                logging.warning("MXNET_CONF_PATH '%s' doesn't exist", 
conf_from_env)
    
   ```
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org
For additional commands, e-mail: issues-h...@mxnet.apache.org

Reply via email to