Erotemic / ibeis

image based ecological information system
Apache License 2.0
47 stars 16 forks source link

Problem running tests #57

Closed crowmagnumb closed 8 years ago

crowmagnumb commented 8 years ago

After successfully working through the setup I'm trying to test if I have things set up right so I've tried running both of the following commands...

./dev.py --set-workdir ~/data/work --preload-exit
./run_tests.py

...and in both cases I get the following error ...

Traceback (most recent call last):
  File "./run_tests.py", line 7, in <module>
    from ibeis.tests import run_tests
  File "/home/ken/code/ibeis/ibeis/__init__.py", line 45, in <module>
    from ibeis import other
  File "/home/ken/code/ibeis/ibeis/other/__init__.py", line 7, in <module>
    from ibeis.other import detectfuncs
  File "/home/ken/code/ibeis/ibeis/other/detectfuncs.py", line 26, in <module>
    from ibeis.control import controller_inject
  File "/home/ken/code/ibeis/ibeis/control/__init__.py", line 11, in <module>
    from ibeis.control import IBEISControl
  File "/home/ken/code/ibeis/ibeis/control/IBEISControl.py", line 107, in <module>
    ut.import_modname(modname)
  File "/home/ken/code/utool/utool/util_import.py", line 132, in import_modname
    module = __import__(modname, {}, {}, fromlist_, 0)
  File "/home/ken/code/ibeis/ibeis/control/manual_meta_funcs.py", line 14, in <module>
    from ibeis.algo import Config
  File "/home/ken/code/ibeis/ibeis/algo/__init__.py", line 6, in <module>
    from ibeis.algo import detect
  File "/home/ken/code/ibeis/ibeis/algo/detect/__init__.py", line 7, in <module>
    from ibeis.algo.detect import yolo
  File "/home/ken/code/ibeis/ibeis/algo/detect/yolo.py", line 13, in <module>
    import pydarknet
  File "/home/ken/code/pydarknet/pydarknet/__init__.py", line 10, in <module>
    from ._pydarknet import *
  File "/home/ken/code/pydarknet/pydarknet/_pydarknet.py", line 105, in <module>
    DARKNET_CLIB = _load_c_shared_library(METHODS)
  File "/home/ken/code/pydarknet/pydarknet/pydarknet_helpers.py", line 71, in _load_c_shared_library
    def_cfunc(METHODS[method][1], method, METHODS[method][0])
  File "/home/ken/code/detecttools/detecttools/ctypes_interface/__init__.py", line 95, in def_cfunc
    cfunc = getattr(clib, func_name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/ken/code/pydarknet/pydarknet/libpydarknet.so: undefined symbol: train

Any idea what this could be?

crowmagnumb commented 8 years ago

I went to the pydarknet repo and manually reran ./unix_build.sh again. And now everything is fine. Thanks for the report :)

Erotemic commented 7 years ago

I added a more informative error message when this error occurs. It now suggest a rebuild.