rpng / open_vins

An open source platform for visual-inertial navigation research.
https://docs.openvins.com
GNU General Public License v3.0
2.17k stars 636 forks source link

Error loading module matplotlib.pyplot? #288

Closed bobododosjl closed 1 year ago

goldbattle commented 1 year ago

You need to make sure you have matplotlib in your path and installed on your system.

On Sat, Nov 19, 2022 at 5:32 AM bobododosjl @.***> wrote:

— Reply to this email directly, view it on GitHub https://github.com/rpng/open_vins/issues/288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYW5IN5GX52W352EX23WJCUFDANCNFSM6AAAAAASFH3TSE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bobododosjl commented 1 year ago

I already check that , it satisify the requirements, still meet the same problem。

bobododosjl commented 1 year ago

You need to make sure you have matplotlib in your path and installed on your system. On Sat, Nov 19, 2022 at 5:32 AM bobododosjl @.> wrote: — Reply to this email directly, view it on GitHub <#288>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYW5IN5GX52W352EX23WJCUFDANCNFSM6AAAAAASFH3TSE . You are receiving this because you are subscribed to this thread.Message ID: @.> I already check that , it satisify the requirements, still meet the same problem.

goldbattle commented 1 year ago

Can you see if this issue helps you: https://github.com/lava/matplotlib-cpp/issues/8

Try running the following to see if you run into any errors.

python3
import matplotlib.pyplot 
bobododosjl commented 1 year ago

mport matplotlib.pyplot

is ok, i run the command rosrun ov_eval plot_trajectories posyaw /home/bobododo/GNC/MSF/workspace4/catkin_ws_ov/src/open_vins/ov_eval/example/stamped_groundtruth.txt /home/bobododo/GNC/MSF/workspace4/catkin_ws_ov/src/open_vins/ov_eval/example/stamped_traj_estimate.txt still meet the following problem:

[COMP]: 36382 poses in stamped_groundtruth => length of 80.63 meters [COMP]: 3638 poses in stamped_traj_estimate => length of 79.92 meters terminate called after throwing an instance of 'std::runtime_error' what(): Error loading module matplotlib.pyplot! [1] 8442 abort (core dumped) rosrun ov_eval plot_trajectories posyaw

goldbattle commented 1 year ago

Run in your terminal and see if you can import matplotlib yourself:

python3
import matplotlib.pyplot 
goldbattle commented 1 year ago

Feel free to reopen if the above commands ran successfully, and you still had the problem.