LewsTherin511 edited a comment on issue #14875:
URL: 
https://github.com/apache/incubator-mxnet/issues/14875#issuecomment-887301408


   Hi! Thanks again for your assistance last time, it worked perfectly! 
   
   However, I noticed something weird.
   When I first used your script, I was working on another computer, and 
everything went ok. Yesterday, I tried exporting to ONNX on another machine, 
and I got the usual error:
   `ValueError: invalid literal for int() with base 10: 'None'
   `
   The machine I'm having problem with has 
   gluoncv (0.10.4.post0)
   mxnet-mkl (1.6.0)
   onnx (1.9.0)
   
   So, I tried the update script, but running it seems to somehow break the 
mxnet installation. After the update, whenever I try importing mxnet, I get the 
error:
   `File "<stdin>", line 1, in <module>
     File 
"/home/lews/anaconda3/envs/gluon/lib/python3.8/site-packages/mxnet/__init__.py",
 line 31, in <module>
       from . import contrib
     File 
"/home/lews/anaconda3/envs/gluon/lib/python3.8/site-packages/mxnet/contrib/__init__.py",
 line 31, in <module>
       from . import onnx
     File 
"/home/lews/anaconda3/envs/gluon/lib/python3.8/site-packages/mxnet/contrib/onnx/__init__.py",
 line 22, in <module>
       from ...onnx import export_model as export_model_
   ModuleNotFoundError: No module named 'mxnet.onnx'
   `
   and when importing GluonCV I got the error:
   `File 
"/home/lews/anaconda3/envs/gluon/lib/python3.8/site-packages/gluoncv/__init__.py",
 line 33, in <module>
       raise ImportError('Unable to import modules due to missing `mxnet` & 
`torch`. '
   ImportError: Unable to import modules due to missing `mxnet` & `torch`. You 
should install at least one deep learning framework.`
   Clearly, the exporting script still doesn't work, nor does anything else 
MXNet related.
   
   
   On the same machine, I tried creating a new virtual environment with:
   mxnet (1.8.0.post0)
   gluoncv (0.10.4.post0)
   
   as before, everything works ok (generically using MXNet/GluonCV models), and 
the ONNX export doesn't. The error this time is different:
   `AttributeError: No conversion function registered for op type 
_greater_scalar yet.`
   I tried the update script again, and the problems are the same:
   *) when importing mxnet
   `ModuleNotFoundError: No module named 'mxnet.onnx'
   `
   *) and, when importing gluoncv:
   `ImportError: Unable to import modules due to missing `mxnet` & `torch`. You 
should install at least one deep learning framework.
   `
   
   I still have everything working on the old machine, but I thought it might 
be useful the problem. :)
   


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