trouble installing spear

915 views
Skip to first unread message

Lior Uzan

unread,
Dec 3, 2014, 2:11:57 PM12/3/14
to bob-...@googlegroups.com
Hey everyone,

trying to install spear but with no success.

here is my log:

root@lior-pc:/home/lior/Downloads/spear# ./bin/buildout
Develop: '/home/lior/Downloads/spear/.'
Installing scripts.
Getting distribution for 'xbob.sox'.

Installed /tmp/easy_install-rQhH6F/xbob.sox-1.1.0/.eggs/xbob.extension-0.2.1-py2.7.egg
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/usr/bin/ld: cannot find -lbob_python
/usr/bin/ld: cannot find -lbob_core
collect2: error: ld returned 1 exit status
error: Setup script exited with error: command 'c++' failed with exit status 1
An error occurred when trying to install xbob.sox 1.1.0. Look above this message for any errors that were output by easy_install.
While:
  Installing scripts.
  Getting distribution for 'xbob.sox'.
Error: Couldn't install: xbob.sox 1.1.0

I have installed bob and bob-dev with all their dependencies successfully, and verified that the .so files dir is on LD_LIBRARY_PATH but still no luck.

help?

Elie Khoury

unread,
Dec 4, 2014, 3:31:26 AM12/4/14
to bob-...@googlegroups.com
Hello Lior,

To help you solve your problem, could you please provide details about your operating system and the bob version you installed and how you did this?

By the way, "sox" should be also installed. Please check more details on how to install Spear on Ubuntu and Mac OSX here:

https://pypi.python.org/pypi/bob.spear/
 
Thanks and best regards,
Elie
--
-- 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. Elie Khoury
Post Doctorant
Biometric Person Recognition Group
IDIAP Research Institute (Switzerland)
Tel : +41 27 721 77 23
http://www.idiap.ch/~ekhoury

Lior Uzan

unread,
Dec 9, 2014, 6:58:08 AM12/9/14
to bob-...@googlegroups.com, elie....@idiap.ch
made clean install now everything installed fine.

eech...@gmail.com

unread,
Dec 30, 2015, 7:01:14 AM12/30/15
to bob-devel, elie....@idiap.ch
Hello Lior,
   While installing the spear,I have some trouble as follow. My operating system is Ubuntu Kylin 14.04

  Downloading bob.bio.spear-2.0.4.zip (1.5MB): 1.5MB downloaded
  Running setup.py (path:/tmp/pip-aiyWV8-build/setup.py) egg_info for package from https://pypi.python.org/packages/source/b/bob.bio.spear/bob.bio.spear-2.0.4.zip
    
    Installed /tmp/pip-aiyWV8-build/bob.extension-2.0.10-py2.7.egg
    
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from bob.bio.spear==2.0.4)
Downloading/unpacking bob.extension (from bob.bio.spear==2.0.4)
  Downloading bob.extension-2.0.10.zip (141kB): 141kB downloaded
  Running setup.py (path:/tmp/pip_build_zxchen/bob.extension/setup.py) egg_info for package bob.extension
    
Downloading/unpacking bob.blitz (from bob.bio.spear==2.0.4)
  Downloading bob.blitz-2.0.8.zip (49kB): 49kB downloaded
  Running setup.py (path:/tmp/pip_build_zxchen/bob.blitz/setup.py) egg_info for package bob.blitz
    
    Installed /tmp/pip_build_zxchen/bob.blitz/bob.extension-2.0.10-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_zxchen/bob.blitz/setup.py", line 72, in <module>
        system_include_dirs=system_include_dirs,
      File "/tmp/pip_build_zxchen/bob.blitz/bob.extension-2.0.10-py2.7.egg/bob/extension/__init__.py", line 346, in __init__
        boost_pkg = boost(boost_req.replace('boost', '').strip())
      File "/tmp/pip_build_zxchen/bob.blitz/bob.extension-2.0.10-py2.7.egg/bob/extension/boost.py", line 69, in __init__
        raise RuntimeError("could not find boost's `version.hpp' - have you installed Boost on this machine?")
    RuntimeError: could not find boost's `version.hpp' - have you installed Boost on this machine?
    Complete output from command python setup.py egg_info:
    

Installed /tmp/pip_build_zxchen/bob.blitz/bob.extension-2.0.10-py2.7.egg

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_zxchen/bob.blitz/setup.py", line 72, in <module>

    system_include_dirs=system_include_dirs,

  File "/tmp/pip_build_zxchen/bob.blitz/bob.extension-2.0.10-py2.7.egg/bob/extension/__init__.py", line 346, in __init__

    boost_pkg = boost(boost_req.replace('boost', '').strip())

  File "/tmp/pip_build_zxchen/bob.blitz/bob.extension-2.0.10-py2.7.egg/bob/extension/boost.py", line 69, in __init__

    raise RuntimeError("could not find boost's `version.hpp' - have you installed Boost on this machine?")

RuntimeError: could not find boost's `version.hpp' - have you installed Boost on this machine?

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_zxchen/bob.blitz
Storing debug log for failure in /tmp/tmpjzLrJr

Can you help me? Thank you.

Laurent El Shafey

unread,
Dec 30, 2015, 7:10:54 AM12/30/15
to bob-...@googlegroups.com
Hello,

It seems that you did not have the boost development headers installed, which has led to the reported error.

Spear uses bob, which requires a bunch of dependencies to be preinstalled. You have to install these dependencies on your own prior to installing spear.
Please follow the instructions here for Ubuntu:

In addition, the recommended way to install spear is using buildout instead of pip directly.
Pip installation is more tedious, since spear has several dependencies and you will have to respect the inter-package dependency order.

Best,
Laurent

--

André Anjos

unread,
Dec 30, 2015, 7:14:46 AM12/30/15
to bob-...@googlegroups.com

On Wed, Dec 30, 2015 at 1:10 PM, Laurent El Shafey <laurent...@gmail.com> wrote:
Spear uses bob, which requires a bunch of dependencies to be preinstalled. You have to install these dependencies on your own prior to installing spear.

You're using a supported binary distro, so I'd first install the binary version of Bob:


And then try to bootstrap and install bob.bio.spear. That should speed up deployment for you.

Best, A


--
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
Reply all
Reply to author
Forward
0 new messages