-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on Ubuntu Linux #2
Comments
Thanks - I expect that plenty of other people will run across this too. I have to wonder if this, and #1, are both upstream issues with the Scala bindings in MXNet (or with the JARs they've pushed to Maven). As far as I understand it, any native library issue that occurs here should occur likewise with the Scala bindings on their own. |
@iarenaza Thanks for the update on all that and providing the details, (I missed it earlier on my phone notification). It will really help! |
@iarenaza A Dockerfile will be most useful if you are up for it. Please feel free to open a PR 😸 |
@iarenaza I'm planning on getting a PR together for the MXNet main project tomorrow/ this weekend. So maybe you want to hold off on submitting it here, that way you can just get on that PR if you want. I'll ping you here when it is up |
@gigasquid I did all this work under contract with Magnet Coop, so they deserve the credit as well 🐱 |
@iarenaza Cool - added them too :) |
@iarenaza here is the PR apache/mxnet#11205 |
Thanks @iarenaza. Simply adding the ppa for opencv-3.4 fixed the problem in my case |
Using the pre-compiled binaries of
clojure-mxnet
and the pre-compiled binaries ofmxnet
it depends on doesn't work in Ubuntu 16.04 (and probably any later version as of today). Neither the CPU nor the GPU version.When you run
lein test
is errors out with:The problem is that it can't find
libopencv_imgcodecs.so.3.4
shared library. And that library is part of OpenCV 3.4 (the version used to compile MxNet 1.2). But OpenCV 3.4 is not packaged in Ubuntu 16.04 (nor any other later, including 18.04). The latest OpenCV version packaged in Ubuntu as of today is 3.2.There are PPA packages for OpenCV 3.4 available at https://launchpad.net/~timsc/+archive/ubuntu/opencv-3.4
Once you add the PPA repository, udpate the package list and install the
libopencv-imgcodecs3.4
package, it errors out with:So you also need to install
libcurl3
package (already part of Ubuntu). After installing both packages (in addition to those mentionned in the MxNet installation instructions for Ubuntu), all the tests run flawlessly both with the GPU and CPU version.This is the complete list of packages we (Magnet) are using to run
clojure-mxnet
in a Docker container, based on nVidia'snvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
base image:As mentionned before, you need to add the extra PPA repository to be able to install
libopencv-imgcodecs3.4
.We can provide the
Dockerfile
file we are using, if you think it's helpful to other people.Greetins, Iñaki.
The text was updated successfully, but these errors were encountered: