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

Unable to install #2

Open
Kinpzz opened this issue Nov 5, 2017 · 9 comments
Open

Unable to install #2

Kinpzz opened this issue Nov 5, 2017 · 9 comments

Comments

@Kinpzz
Copy link

Kinpzz commented Nov 5, 2017

Hi, Andrew

I have trouble with both C++ and python installing method. They were all failed, and I can get little information from the debug log. Should I modify the program?

The log are as following:

  • C++:
  • Python:
@houqb
Copy link
Owner

houqb commented Nov 5, 2017

Yeah, sorry for that. At present, you may need to modify the code. I will fix this later on.

@Kinpzz
Copy link
Author

Kinpzz commented Nov 5, 2017

Thanks for your reply. It is very kind of you. However I don't know where I should modify because I barely get anything from the logs information. And I don't have any error information about OpenCV2.

@houqb
Copy link
Owner

houqb commented Nov 6, 2017

Some of the member functions of OpenCV2 are different from opencv3. You can try to compile the C++ part with gcc.

@Sucran
Copy link

Sucran commented Mar 6, 2018

@Kinpzz I had the same problem and I solved it by

  1. make sure opencv3 installed correctly (followed opencv tutorial)
  2. modified the setup.py for the right path for you envs
  3. using the command line "python setup.py install"
  4. cp ./build/lib.linux-x86_64-2.7/build/salmetric.so /home/user/anaconda2/envs/xxx/lib/python2.7/site-packages/salmetric.so
  5. then you can find the salmetric module
    if you want to modified the salmetric.cpp file, you can modified it and replace the file ./src/salmetric.cpp, then follow the 4 and 5 step

@Andrew-Qibin it is very kind of you to open this code. Can you give me some advice if I want to modify the code to return MaxFb and mae value as a list in the member function do_evaluation() ?

@yuanyao366
Copy link

@Kinpzz I have the trouble with both C++ and python installing method. Have you sloved it?
@Sucran I have opencv 2.4 installed in my minicoda. Then I install opencv 3.2 and add the command
set(OpenCV_DIR "/usr/local/opencv320/share/OpenCV") to the CMakeLists.txt. And I follow the tip3,4,5 as you suggested. But I still meet such problem:

import salmetric
Traceback (most recent call last):
File "", line 1, in
ImportError: /root/Util/miniconda/lib/python2.7/site-packages/salmetric.so: undefined symbol: _ZN2cv6imreadERKSsi

Have you some solutions?
And I am not particularly clear about the tip 2. Can you describe it more clearly?
Thanks a lot!

@sofmonk
Copy link

sofmonk commented Aug 27, 2019

@Kinpzz I had the same problem and I solved it by

  1. make sure opencv3 installed correctly (followed opencv tutorial)
  2. modified the setup.py for the right path for you envs
  3. using the command line "python setup.py install"
  4. cp ./build/lib.linux-x86_64-2.7/build/salmetric.so /home/user/anaconda2/envs/xxx/lib/python2.7/site-packages/salmetric.so
  5. then you can find the salmetric module
    if you want to modified the salmetric.cpp file, you can modified it and replace the file ./src/salmetric.cpp, then follow the 4 and 5 step

@Andrew-Qibin it is very kind of you to open this code. Can you give me some advice if I want to modify the code to return MaxFb and mae value as a list in the member function do_evaluation() ?

Hi, I still get the error AttributeError: module 'salmetric' has no attribute 'do_evalution' after correctly importing salmetric module.

@lightas
Copy link

lightas commented Oct 20, 2019

@Kinpzz I had the same problem and I solved it by

  1. make sure opencv3 installed correctly (followed opencv tutorial)
  2. modified the setup.py for the right path for you envs
  3. using the command line "python setup.py install"
  4. cp ./build/lib.linux-x86_64-2.7/build/salmetric.so /home/user/anaconda2/envs/xxx/lib/python2.7/site-packages/salmetric.so
  5. then you can find the salmetric module
    if you want to modified the salmetric.cpp file, you can modified it and replace the file ./src/salmetric.cpp, then follow the 4 and 5 step

@Andrew-Qibin it is very kind of you to open this code. Can you give me some advice if I want to modify the code to return MaxFb and mae value as a list in the member function do_evaluation() ?

Hi, I still get the error AttributeError: module 'salmetric' has no attribute 'do_evalution' after correctly importing salmetric module.

Same. Any solutions?

@uvasudha
Copy link

uvasudha commented May 5, 2020

@Kinpzz I had the same problem and I solved it by

  1. make sure opencv3 installed correctly (followed opencv tutorial)
  2. modified the setup.py for the right path for you envs
  3. using the command line "python setup.py install"
  4. cp ./build/lib.linux-x86_64-2.7/build/salmetric.so /home/user/anaconda2/envs/xxx/lib/python2.7/site-packages/salmetric.so
  5. then you can find the salmetric module
    if you want to modified the salmetric.cpp file, you can modified it and replace the file ./src/salmetric.cpp, then follow the 4 and 5 step

@Andrew-Qibin it is very kind of you to open this code. Can you give me some advice if I want to modify the code to return MaxFb and mae value as a list in the member function do_evaluation() ?

@Sucran Did you had any error while calling do_evaluation(), I am getting an error saying salmetric has no atrribute do_evaluation().
Any suggestion will be helpful, thank you.

@hit421
Copy link

hit421 commented May 6, 2023

do_evalution() should be do_evaluation()

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

8 participants