-
Notifications
You must be signed in to change notification settings - Fork 149
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
Build problem about gtsam #7
Comments
Same issue here. New Ubuntu 20.04 install. |
@phamquandung I have done as you said, but I still have the problem. Which version pyparsing you used? |
After downloading the new gtsam, I find this error still exists. |
@JIANG-CX @pgaston @hjxwhy you can fork https://github.com/borglab/gtsam this one and build python wrapper like this https://github.com/borglab/gtsam/tree/develop/python. I tried, and it works. |
@phamquandung File "/home/pg/repos/NeRF-SLAM/./examples/../slam/vio_slam.py", line 65, in initial_state Thoughts? |
I think it's a problem of gtsam version. According to borglab/gtsam#1298, identity() was replaced to Identity() (UpperCase) |
Then, another error: File "/home/user/research/NeRF-SLAM/./examples/../slam/visual_frontends/visual_frontend.py", line 48, in gtsam_pose_to_torch |
That line and the following return statement should be replaced like this
|
Thanks for your kindly help. I can pass the build step now. But when I run the "./examples/slam_demo.py”, I find there is an error about the gtsam. I wonder have you met such error? How did you solve it? Thanks a lot. |
In the build folder you should run make python-install and make python-test, then it should be OK. |
Yes, I have run make python-install and make python-test, and got the feedback "[100%] Built target python-test" and "Successfully installed gtsam-4.2a8". But the error still exits. |
Maybe you installed gtsam to another python environment? Also, I made a bunch the changes to adopt to new gtsam in this PR, in case it helps: #12 |
Using the branch EDIT: the author has fixed it and the feature/nerf_slam branch of gtsam should be ok now. |
It works well! Nice job! |
@jrpowers Using your latest PR I got everything to build - whew. The cube sample scene runs fine! Unfortunately, the first example dies a horrible death... (perhaps I'll wait for the dust to settle on all these changes...) Thanks again to all!
The "GPUs: 0" looks fishy. However, nvidia-smi; nvcc --version; and nvitop -- all seem to be showing the usual results. |
works fully for me with the fixed GTSAM from the author & (only) python changes in this repo made by jrpowers |
what is you gcc version or other environment setup ? , after switch the branch. met this error
|
I do not understand this comment. Could you tell me how to fix the linear.cpp? What's the "inner const X& ..." stands for? |
It seems that the solution comes from README installation-issues: 3. But i'm also not clear about the "inner const X& ..." and still stuck with this problem now. If you have figured it out, please let me know. @JIANG-CX @pengwangucla |
You may change |
Thanks a lot! That's the solution and it works now! |
this worked for me |
Thanks for your reply! It saved my day! I have run into an error because of wrong modification of this. My wrong version is |
thirdparty/gtsam/gtsam_unstable/gtsam_unstable.i |
try "git clone https://github.com/ToniRV/gtsam-1" |
this worked for me. |
Hi I also met this |
Hello, I have the same problem when I run the demo. Although I have update gtsam and torch118, it didn't work. So how did you solve the problem(No module named 'gtsam')? |
When I run the command "cmake --build build_gtsam --config RelWithDebInfo -j", it gave an error as follows. Could you please help me to fix it? Thanks.
Traceback (most recent call last): File "/home/jiangcx/Documents/Nerf_related/NeRF-SLAM/thirdparty/gtsam/wrap/scripts/pybind_wrap.py", line 94, in <module> main() File "/home/jiangcx/Documents/Nerf_related/NeRF-SLAM/thirdparty/gtsam/wrap/scripts/pybind_wrap.py", line 90, in main wrapper.wrap(sources, args.out) File "/home/jiangcx/Documents/Nerf_related/NeRF-SLAM/thirdparty/gtsam/wrap/gtwrap/pybind_wrapper.py", line 723, in wrap submodules=submodules) File "/home/jiangcx/Documents/Nerf_related/NeRF-SLAM/thirdparty/gtsam/wrap/gtwrap/pybind_wrapper.py", line 624, in wrap_file module = parser.Module.parseString(content) File "/home/jiangcx/Documents/Nerf_related/NeRF-SLAM/thirdparty/gtsam/wrap/gtwrap/interface_parser/module.py", line 56, in parseString return Module.rule.parseString(s)[0] File "/opt/ros/noetic/lib/python3/dist-packages/pyparsing/core.py", line 1141, in parse_string raise exc.with_traceback(None) pyparsing.exceptions.ParseException: Expected string_end, found 'namespace' (at char 1249), (line:46, col:1) make[2]: *** [python/CMakeFiles/pybind_wrap_gtsam_unstable.dir/build.make:76: python/gtsam_unstable.cpp] Error 1 make[1]: *** [CMakeFiles/Makefile2:32620: python/CMakeFiles/pybind_wrap_gtsam_unstable.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: