You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/09/27 01:42:55 UTC

[GitHub] [incubator-mxnet] lele012 opened a new issue #19234: import mxnet in arm64 error

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


   ## Description
   This error occurred when I was using MXNET on ARM64。
   
   “/usr/local/lib/python3.7/site-packages/mxnet/libmxnet.so”,but in the path,lib file(libmxnet.so) is existed.
   
   I installed MXNET by "pip install mxnet"。Is there no ARM64 MXNET image on Dockerhub ?
   
   ### Error Message
   root@face-6ff98747f6-rtl5n:/# python
   Python 3.7.9 (default, Sep 10 2020, 15:29:47) 
   [GCC 8.3.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import mxnet as mx
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/usr/local/lib/python3.7/site-packages/mxnet/__init__.py", line 24, in <module>
       from .context import Context, current_context, cpu, gpu, cpu_pinned
     File "/usr/local/lib/python3.7/site-packages/mxnet/context.py", line 24, in <module>
       from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
     File "/usr/local/lib/python3.7/site-packages/mxnet/base.py", line 214, in <module>
       _LIB = _load_lib()
     File "/usr/local/lib/python3.7/site-packages/mxnet/base.py", line 205, in _load_lib
       lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
     File "/usr/local/lib/python3.7/ctypes/__init__.py", line 364, in __init__
       self._handle = _dlopen(self._name, mode)
   OSError: /usr/local/lib/python3.7/site-packages/mxnet/libmxnet.so: cannot open shared object file: No such file or directory
   >>> 


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] leoaaaaaaa commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
leoaaaaaaa commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-923636931


   @nirantarashwin Have you built it on arm64 successfully?


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] leezu commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-708597468


   You can follow the normal build-from-source instructions @nirantarashwin. If you like to do cross-compile, you can set up your environment by following https://github.com/apache/incubator-mxnet/blob/12ec04611c78a603c03707488d66bdbbedf0d536/ci/docker/Dockerfile.build.arm#L109-L128
   and pass the `-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}` argument to cmake when configuring the compilation.


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] leoaaaaaaa edited a comment on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
leoaaaaaaa edited a comment on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-923636931






-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] leoaaaaaaa commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
leoaaaaaaa commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-923637250


   @szha Have we already released the arm64 build?


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-699571419


   Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
   Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
   If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] lele012 commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
lele012 commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-699572170


   @szha Ok,i know ,thanks。Later,i will try to build from source.


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] mseth10 commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
mseth10 commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-1016883234


   Hi @Tomaubier , here's the public MXNet 1.9 wheel that supports aarch64 https://repo.mxnet.io/dist/python/cpu/mxnet-1.9.0-py3-none-manylinux2014_aarch64.whl . Currently it takes ArmPL as a dependency, so you need to install ArmPL corresponding to your OS from here https://developer.arm.com/tools-and-software/server-and-hpc/downloads/arm-performance-libraries
   For example, these worked for me on rhel7
   ```
   # install Arm Performance Libraries
   wget https://developer.arm.com/-/media/Files/downloads/hpc/arm-performance-libraries/21-1-0/RHEL7/arm-performance-libraries_21.1_RHEL-7_gcc-8.2.tar?revision=d6133508-1bcc-4fca-aeb1-4bba06d3898f
   tar -xvf arm-performance-libraries_21.1_RHEL-7_gcc-8.2.tar\?revision\=d6133508-1bcc-4fca-aeb1-4bba06d3898f 
   sudo arm-performance-libraries_21.1_RHEL-7_gcc-8.2/arm-performance-libraries_21.1_RHEL-7.sh -a
   export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/arm/armpl_21.1_gcc-8.2/lib
   
   # Install MXNet that takes Arm PL as a dependency
   wget https://repo.mxnet.io/dist/python/cpu/mxnet-1.9.0-py3-none-manylinux2014_aarch64.whl
   python3 -c 'import mxnet'
   ```


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] sandeep-krishnamurthy commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
sandeep-krishnamurthy commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-699575724


   @mseth10 @josephevans 


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] szha commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
szha commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-699571539


   @lele012 at the moment users need to build from source for arm support. We are planning on adding official arm support in near future. cc @sandeep-krishnamurthy 


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] chenx2018 commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
chenx2018 commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-1086476829


   any updates?


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] xintin commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
xintin commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-926639928


   @szha @nirantarashwin Is there any update on the official support for mxnet whl for arm CPU? Also, build from source instructions available at https://mxnet.apache.org/versions/1.8.0/get_started/build_from_source are not proper! It says `python3 -m pip install --user -e ./python` without other `make ` or build instructions. 
   
   Can you provide more details on this, please? 
   
   Thank you.


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] Tomaubier commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
Tomaubier commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-1011257482


   Any update on this?


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] nirantarashwin commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
nirantarashwin commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-708601279


   > You can follow the normal build-from-source instructions @nirantarashwin. If you like to do cross-compile, you can set up your environment by following
   > 
   > https://github.com/apache/incubator-mxnet/blob/12ec04611c78a603c03707488d66bdbbedf0d536/ci/docker/Dockerfile.build.arm#L109-L128
   > 
   > 
   > and pass the `-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}` argument to cmake when configuring the compilation.
   
   Got it. Thank you very much :) 


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] szha edited a comment on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
szha edited a comment on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-699571539


   @lele012 at the moment users need to build from source for arm support. The one available on pip should be for amd64 only. We are planning on adding official arm support in near future. cc @sandeep-krishnamurthy 


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] nirantarashwin commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
nirantarashwin commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-708561341


   > @lele012 at the moment users need to build from source for arm support. The one available on pip should be for amd64 only. We are planning on adding official arm support in near future. cc @sandeep-krishnamurthy
   
   Is there a link to building it from source for arm64? 


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] leoaaaaaaa edited a comment on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
leoaaaaaaa edited a comment on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-923637250


   @szha Have we already released the arm64 build? thanks


-- 
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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] szha commented on issue #19234: import mxnet in arm64 error

Posted by GitBox <gi...@apache.org>.
szha commented on issue #19234:
URL: https://github.com/apache/incubator-mxnet/issues/19234#issuecomment-927316979


   @mseth10 worked on arm build and may be able to provide update


-- 
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-unsubscribe@mxnet.apache.org

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



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