Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

macOS installation (build from source) fails #12373

Closed
aaronmarkham opened this issue Aug 27, 2018 · 5 comments
Closed

macOS installation (build from source) fails #12373

aaronmarkham opened this issue Aug 27, 2018 · 5 comments

Comments

@aaronmarkham
Copy link
Contributor

Running the installation for "build from source" for mac fails.

https://mxnet.incubator.apache.org/install/index.html?platform=MacOS&language=Python&processor=CPU#validate-mxnet-installation

It has you run a shell script.

Two issues:

  1. It detects a previous version, but fails to remove it.
MXNet 1.0.0.post4 is already installed.
This installation might interfere with current installation attempt.
Do you want to remove installed version? (y/n): y
Skipping mxnet as it is not installed.
MXNet 1.0.0.post4 is already installed.
This installation might interfere with current installation attempt.
Do you want to remove installed version? (y/n): y
Skipping mxnet as it is not installed.
MXNet 1.0.0.post4 is already installed.
This installation might interfere with current installation attempt.
  1. Then later the test fails:
BEGIN: Test MXNet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mxnet/__init__.py", line 24, in <module>
    from .context import Context, current_context, cpu, gpu, cpu_pinned
  File "mxnet/context.py", line 24, in <module>
    from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
  File "mxnet/base.py", line 214, in <module>
    _LIB = _load_lib()
  File "mxnet/base.py", line 205, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/markhama/mxnet/python/mxnet/../../lib/libmxnet.so, 6): Library not loaded: /usr/local/opt/ffmpeg/lib/libavcodec.57.dylib
  Referenced from: /usr/local/opt/opencv/lib/libopencv_videoio.3.3.dylib
  Reason: image not found
0a1,2
> [[2. 2. 2.]
>  [2. 2. 2.]]
 
ERROR: Following files differ: mxnet_test.log mxnet_test.expected
ERROR: MXNet test failed
END: Test MXNet
 
:-(

Importing mxnet yields a warning:

>>> import mxnet
dyld: warning, LC_RPATH ${ORIGIN} in /Users/markhama/Library/Python/2.7/lib/python/site-packages/mxnet/libmxnet.so being ignored in restricted program because it is a relative path
>>> 
@anirudhacharya
Copy link
Member

@mxnet-label-bot [Installation, Doc, OSX]

@srochel
Copy link
Contributor

srochel commented Sep 2, 2018

@mxnet-label-bot: ["Good First Issue"]

@aaronmarkham
Copy link
Contributor Author

If we go with #12388 then this issue will be moot. We wouldn't be using that script. However, if we get the script updated and working, it can be an alternative install option for users.

aaronmarkham added a commit to aaronmarkham/incubator-mxnet that referenced this issue Sep 26, 2018
@piyushghai
Copy link
Contributor

piyushghai commented Oct 9, 2018

@aaronmarkham Seems like the validate-mxnet-installation anchor link does not go to the intended
page. Can you please check the URL once again ?

Also, I tried install MXNet on MacOS and I did not run into any issues.
I used this instruction page to do so : https://mxnet.incubator.apache.org/install/osx_setup.html

@aaronmarkham
Copy link
Contributor Author

#12388 was merged and that removed this script from the instructions. I also moved validation to a separate page to reduce the complexity of the install page.
@piyushghai Glad to hear that the instructions work for you!

This issue can be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants