Skip to content
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

trax error #51

Open
gzhuxiaomogu opened this issue May 17, 2019 · 7 comments
Open

trax error #51

gzhuxiaomogu opened this issue May 17, 2019 · 7 comments

Comments

@gzhuxiaomogu
Copy link

Traceback (most recent call last):
File "", line 1, in
File "vot.py", line 17, in
import trax
File "/home/wublack/vot-toolkit/native/trax/support/python/trax/init.py", line 2, in
from .wrapper import PropertiesWrapper
File "/home/wublack/vot-toolkit/native/trax/support/python/trax/wrapper.py", line 4, in
from .internal import trax_image_release, trax_region_release, trax_cleanup, trax_properties_release
File "/home/wublack/vot-toolkit/native/trax/support/python/trax/internal.py", line 386, in
trax_image_list_create = _libraries['trax'].trax_image_list_create
File "/home/wublack/anaconda2/lib/python2.7/ctypes/init.py", line 379, in getattr
func = self.getitem(name)
File "/home/wublack/anaconda2/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libtrax.so: undefined symbol: trax_image_list_create

@gzhuxiaomogu
Copy link
Author

But in matlab is ok

@Honorisverum
Copy link

Have the same issue and can't solve it! The man who wrote challenge integrating software on MATLAB (what?) should be terribly hate human beings.

@lukacu
Copy link
Contributor

lukacu commented Jun 9, 2019

Since the last comment is borderline offensive so I guess I must reply. This may also be useful for someone who is trying to understand why we have developed the toolkit the way we have. It seems that some of the younger researchers do not remember that Matlab was the main language of CV research even a few years ago and it seemed only reasonable to write the toolkit in it then. VOT2013 did not have even one Python submission. Of course this has changed in the last years and we are also considering the switch to Python, but VOT is driven by voluntary work so things move slowly, there are other projects that need our attention too.

Now, the problem with Matlab is that it makes work with processes extremely difficult. You can run another application, but you cannot communicate with it as it runs. This makes more sophisticated tracking evaluation impossible, so we have developed the TraX protocol and library. It is not the only way of solving the problem, but it is one of them. Of course there were many challenges and Matlab did not make any of them easy, I must admit that I hate it as well as you. But the result is a toolkit that can run a lot of different experiments and does not enforce any language constraints on tracker author. As far as I know this is the only such toolkit, there are others that enable this only for Matlab or Python trackers because they are written in the same language and the toolkit simply shares the process with the tracker.

But to also try and answer the original question: we have tested Python integration on many systems with different Python versions and it works. Well, there were some issues with multi-image challenges, but they should be resolved now. My only explanation for the issue that you are having is that the Python wrapper used an older version of libtrax (perhaps you have installed it at some point?) that does not have some functions implemented yet. We have made some changes for this year so you need the same libtrax version.

@Bradyeyi
Copy link

@lukaku,I have the same issue. The version of libtrax I installed is 1.2.1。Is it an old version? I installed it by the Trax document。

@Bradyeyi
Copy link

I have solved this problem。@lukaku,you are right. The version of libtrax is too old. I download the latest Trax source code, then I compile it and install. Therefore, when you install libtrax, you don't use the command 'sudo apt-get install libtrax0 libtrax-dev', I recommend that you recompile the source code and install libtrax.
So, @lukacu , you need to update the repository (ppa:lukacu/trax) for convenience.

@lukacu
Copy link
Contributor

lukacu commented Sep 17, 2019 via email

@gzhuxiaomogu
Copy link
Author

gzhuxiaomogu commented Nov 9, 2019 via email

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

No branches or pull requests

4 participants