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

Error in using glue_stick_demo.ipynb #32

Open
shenw000 opened this issue Aug 8, 2024 · 3 comments
Open

Error in using glue_stick_demo.ipynb #32

shenw000 opened this issue Aug 8, 2024 · 3 comments

Comments

@shenw000
Copy link

shenw000 commented Aug 8, 2024

When I run the command "import homography_est as hest" in glue_stick_demo.ipynb, the following error appears:


ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import homography_est as hest
3 line_seg0 = [hest.LineSegment(l[0], l[1])
4 for l in matched_lines0.reshape(-1, 2, 2)]
5 line_seg1 = [hest.LineSegment(l[0], l[1])
6 for l in matched_lines1.reshape(-1, 2, 2)]

ImportError: /lib/libceres.so.1: undefined symbol: _ZN6google21kLogSiteUninitializedE


So I look into the version of /lib/libceres.so.1, by command:
ls -ll /lib/* | grep libceres
the following appears:


-rw-r--r-- 1 root root 9847228 Jun 12 2020 /lib/libceres.a
lrwxrwxrwx 1 root root 13 Jun 12 2020 /lib/libceres.so -> libceres.so.1
lrwxrwxrwx 1 root root 18 Jun 12 2020 /lib/libceres.so.1 -> libceres.so.1.14.0
-rw-r--r-- 1 root root 2824976 Jun 12 2020 /lib/libceres.so.1.14.0


That means the actual version of /lib/libceres.so.1 is /lib/libceres.so.1.14.0
Is this the correct version for /lib/libceres.so.1?
Any suggestion how to fix it?

@iago-suarez
Copy link
Collaborator

iago-suarez commented Aug 8, 2024 via email

@shenw000
Copy link
Author

shenw000 commented Aug 8, 2024

Hi, It looks like you have a different version of ceres and there is some missing symbol. I think the missing symbol comes from glog. Can you compare the versions of ceres and glob that you have with the ones in Google Colab? Best, Iago. El 8 ago 2024, a las 22:32, shenw000 @.> escribió:  When I run the command "import homography_est as hest" in glue_stick_demo.ipynb, the following error appears:

________________________________ ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import homography_est as hest 3 line_seg0 = [hest.LineSegment(l[0], l[1]) 4 for l in matched_lines0.reshape(-1, 2, 2)] 5 line_seg1 = [hest.LineSegment(l[0], l[1]) 6 for l in matched_lines1.reshape(-1, 2, 2)] ImportError: /lib/libceres.so.1: undefined symbol: _ZN6google21kLogSiteUninitializedE So I look into the version of /lib/libceres.so.1, by command: ls -ll /lib/
| grep libceres the following appears: -rw-r--r-- 1 root root 9847228 Jun 12 2020 /lib/libceres.a lrwxrwxrwx 1 root root 13 Jun 12 2020 /lib/libceres.so -> libceres.so.1 lrwxrwxrwx 1 root root 18 Jun 12 2020 /lib/libceres.so.1 -> libceres.so.1.14.0 -rw-r--r-- 1 root root 2824976 Jun 12 2020 /lib/libceres.so.1.14.0 That means the actual version of /lib/libceres.so.1 is /lib/libceres.so.1.14.0 Is this the correct version for /lib/libceres.so.1? Any suggestion how to fix it? — Reply to this email directly, view it on GitHub<#32>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYQZ3K554GJ5NRHB7C42EDZQPIU3AVCNFSM6AAAAABMHGQ3FGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TMNJXGY2TCMQ. You are receiving this because you are subscribed to this thread.Message ID: @.
*>

Thank you for the info, lago-suarez! How do I find the version number of libceres and glog used in Google Colab.
My versions for libceres and glog are:

ls -ll /lib/* | grep libceres
-rw-r--r-- 1 root root 9847228 Jun 12 2020 /lib/libceres.a
lrwxrwxrwx 1 root root 13 Jun 12 2020 /lib/libceres.so -> libceres.so.1
lrwxrwxrwx 1 root root 18 Jun 12 2020 /lib/libceres.so.1 -> libceres.so.1.14.0
-rw-r--r-- 1 root root 2824976 Jun 12 2020 /lib/libceres.so.1.14.0

ls -ll /lib/* | grep glog
-rw-r--r-- 1 root root 261226 Mar 22 2020 libglog.a
lrwxrwxrwx 1 root root 16 Mar 22 2020 libglog.so -> libglog.so.0.0.0
lrwxrwxrwx 1 root root 16 Mar 22 2020 libglog.so.0 -> libglog.so.0.0.0
-rw-r--r-- 1 root root 138440 Mar 22 2020 libglog.so.0.0.0

@iago-suarez
Copy link
Collaborator

iago-suarez commented Aug 16, 2024

Hi, sorry for late reply, it has been a busy week. You can run the same commands in Collab, you just need to add ! In the beginning.

Cheers,
Iago.

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

2 participants