Borda / pyGCO

A python wrapper for gco-v3.0 package, used for graph cuts based MRF optimization.
http://vision.csd.uwo.ca/code
61 stars 18 forks source link

running `test_examples.py` fails #12

Closed WangChunxuCPP closed 5 years ago

WangChunxuCPP commented 5 years ago

@Borda When I ran "python test_example.py", I met this error:

Traceback (most recent call last):
  File "test_examples.py", line 9, in <module>
    import gco
  File "/home/wang/exprience/texture/pyGCO-master/gco/__init__.py", line 10, in <module>
    from gco.pygco import *
  File "/home/wang/exprience/texture/pyGCO-master/gco/pygco.py", line 6, in <module>
    from .cgco import _cgco, _SMOOTH_COST_FN
  File "/home/wang/exprience/texture/pyGCO-master/gco/cgco.py", line 12, in <module>
    assert len(LIST_LIBGCO) > 0, 'nothing found: %s' % repr(LIST_LIBGCO)
AssertionError: nothing found: []

Could you tell me what make this happened? Thank you!

Borda commented 5 years ago

Hello @WakeWang1996, could you please be more specific with your OS and libraries version you are using? In particular, you should be able to reproduce all results following instructions in .travis.yml

python setup.py install
python test_examples.py
WangChunxuCPP commented 5 years ago

@Borda Hello! I have solved my problem, I changed the code about the path of libcgco and now it worked. This is my carelessness, but thank you all the same!

WangChunxuCPP commented 5 years ago

I changed the code in cgco.py, line 8. To my own path that contains libcgco.so.

---Original--- From: "Neil Wu"notifications@github.com Date: Tue, Aug 13, 2019 10:24 AM To: "Borda/pyGCO"pyGCO@noreply.github.com; Cc: "Mention"mention@noreply.github.com;"WakeWang1996"1004232460@qq.com; Subject: Re: [Borda/pyGCO] running test_examples.py fails (#12)

@WakeWang1996 Hi, I met the same problem like you. Can you tell me how to change the code about the path of libcgco specifically? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.