ImportError: libbob_math.so: cannot open shared object file: No such file or directory

53 views
Skip to first unread message

Lakomkin Egor

unread,
Sep 20, 2015, 10:52:30 AM9/20/15
to bob-devel
Hi,

I am trying to install bob on the Ubuntu 14.10 LTS and getting this error during installation process.

  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context
 File "/home/egor/anaconda/envs/ml_env/lib/python2.7/contextlib.py", line 35, in __exit__
   self.gen.throw(type, value, traceback)
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 164, in save_modules
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 139, in resume
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 152, in save_modules
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 237, in run_setup
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 267, in run
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 236, in runner
 File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 46, in _execfile
 File "/tmp/easy_install-DJ1_6w/bob.ip.facedetect-2.0.2/setup.py", line 91, in <module>

  File "/home/egor/distr/bob/eggs/bob.blitz-2.0.7-py2.7-linux-x86_64.egg/bob/blitz/extension.py", line 52, in __init__
   BobExtension.__init__(self, *args, **kwargs)
 File "/home/egor/distr/bob/eggs/bob.extension-2.0.8-py2.7.egg/bob/extension/__init__.py", line 291, in __init__
   bob_includes, bob_libraries, bob_library_dirs = get_bob_libraries(self.bob_packages)
 File "/home/egor/distr/bob/eggs/bob.extension-2.0.8-py2.7.egg/bob/extension/__init__.py", line 185, in get_bob_libraries
   pkg = importlib.import_module(package)
 File "/home/egor/anaconda/envs/ml_env/lib/python2.7/importlib/__init__.py", line 37, in import_module
   __import__(name)
 File "/home/egor/distr/bob/eggs/bob.ip.base-2.0.6-py2.7-linux-x86_64.egg/bob/ip/base/__init__.py", line 9, in <module>
   from ._library import *
ImportError: libbob_math.so: cannot open shared object file: No such file or directory
bob.buildout.extension: An error occurred when trying to install bob.ip.facedetect 2.0.2. Look above this message for any errors that were output by easy_install.
While:
 Installing.
 Processing develop directory '/home/egor/distr/bob/.'.
 Getting distribution for 'bob.ip.facedetect==2.0.2'.
Error: Couldn't install: bob.ip.facedetect 2.0.2


I am installing via ./bin/buildout

What can go wrong here? I have tried to follow all the guidelines.

André Anjos

unread,
Sep 20, 2015, 11:30:05 AM9/20/15
to bob-...@googlegroups.com
Hello,

This looks like a missing library somewhere.

The package "bob.ip.base" uses "bob.math" and it is trying to import it, but failing to do so.

Could you please try to install only bob.math and see if that works, i.e.:

$ ./bin/python
>> import bob.math

If that does not work (gives the same issue), then the problem is there. To understand it further, start python with the "-v" option and try to figure out from the logs where the problem may be:

./bin/python -v
... #lots of logs
>> import bob.math

Post what happens after you try to import bob.math in this case, back.

Best, A


--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dr. André Anjos
Idiap Research Institute
Centre du Parc - rue Marconi 19
CH-1920 Martigny, Suisse
Phone: +41 27 721 7763
Fax: +41 27 721 7712
http://andreanjos.org

Lakomkin Egor

unread,
Sep 20, 2015, 12:16:17 PM9/20/15
to bob-devel
Hi Andre,

Thank you very much for response and your help.

I have installed bob.math and import bob.math gives no error. But still I get the same error, while running ./bin/buildout

воскресенье, 20 сентября 2015 г., 23:30:05 UTC+8 пользователь André Anjos написал:

André Anjos

unread,
Sep 20, 2015, 1:06:50 PM9/20/15
to bob-...@googlegroups.com

On Sun, Sep 20, 2015 at 6:16 PM, Lakomkin Egor <egor.l...@gmail.com> wrote:
I have installed bob.math and import bob.math gives no error. But still I get the same error, while running ./bin/buildout

Ok, so please do the "python -v" trick with the faulty package, post the logs. A

Lakomkin Egor

unread,
Sep 20, 2015, 1:56:35 PM9/20/15
to bob-devel
>>>import bob.learn.em

# /home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/linear/auxiliary.pyc matches /home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/linear/auxiliary.py
import bob.learn.linear.auxiliary # precompiled from /home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/linear/auxiliary.pyc
dlopen("/home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/em/_library.so", 2);
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/em/__init__.py", line 10, in <module>
    from ._library import *
ImportError: libbob_sp.so: cannot open shared object file: No such file or directory

This what I get when I import bob.learn.em

понедельник, 21 сентября 2015 г., 1:06:50 UTC+8 пользователь André Anjos написал:

André Anjos

unread,
Sep 20, 2015, 2:59:53 PM9/20/15
to bob-...@googlegroups.com

On Sun, Sep 20, 2015 at 7:56 PM, Lakomkin Egor <egor.l...@gmail.com> wrote:
/home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/em/_library.so

Strange... Can you send the result of:

$ ldd /home/egor/anaconda/envs/ml_env/lib/python2.7/site-packages/bob/learn/em/_library.so

Manuel Günther

unread,
Sep 20, 2015, 3:25:35 PM9/20/15
to bob-devel
Fir some reason it looks like it doesn't get the order of packages installed correctly. This is really strange, as we did some effort to get this running.

@Andre: I don't know if you have noticed, but the faulting libraries have changed in between the first and the last post of Lakomkin. First it was libbob_math.so, and after installing bob.math by hand, now it is libbob_sp.so. So, installing by hand seems to work, but the automatic dependencies are not working any more.

@Lakomkin: Could you please provide us with you buildout.cfg file that you are using, and which generates the error? Did you add our bob.buildout to the list of extensions, which actually does solve the inclusion order of our packages?

André Anjos

unread,
Sep 20, 2015, 3:58:09 PM9/20/15
to bob-...@googlegroups.com
Did notice, but I thought there was missing library somewhere... A

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lakomkin Egor

unread,
Sep 24, 2015, 8:15:44 AM9/24/15
to bob-devel
Apologies for the long silence. I have run clean Docker image with Ubuntu and everything worked out smooth.

воскресенье, 20 сентября 2015 г., 22:58:09 UTC+3 пользователь André Anjos написал:
Reply all
Reply to author
Forward
0 new messages