tomas789 / kitti2bag

Convert KITTI dataset to ROS bag file the easy way!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

command not found

DamonMIN opened this issue · comments

@tomas789 Dear sir, when I successfully finished all the previous installation procedures and run the command "kitti2bag -t 2011_09_26 -r 0002 raw_synced .". There is an error "kitti2bag: command not found". I checked the kitti2bag package with "pip list", which was installed successfully.

I have got the same error. pip successfully installed kitti2bag, but when I tried to call kitti2bag, it showed that kitti2bag: command not found. How to resolve this error?

I'm having a similar problem. when I issue: kitti2bag -t 2011_09_26 -r 0002 raw_synced .
I get : Could not load module 'pykitti'. Please run pip install pykitti

commented

@OmarNsiri hi,I have got the same error.
first,sudo pip install numpy --upgrad, sudo pip install scikit-image.
second,#10
kitti2bag 2011_09_26 0002.

@OmarNsiri hi,I have got the same error.
first,sudo pip install numpy --upgrad, sudo pip install scikit-image.
second,#10
kitti2bag 2011_09_26 0002.

@jy723 hi,
I updated the numpy and scikit-image but the problem still exists.
I get : Could not load module 'pykitti'. Please run pip install pykitti.
And how #10 help to solve this problem?
Thanks a lot.

@J2eremy Hi,

Have you found a solution to that problem? I'm getting the same error, although I tried the proposed solutions and I have updated all dependencies.

You can replace the

try:
    import pykitti
except ImportError as e:
    print('Could not load module \'pykitti\'. Please run `pip install pykitti`')
    sys.exit(1)

lines with import pykitti. That way the exact ImportError message will not be hidden.

The issue is likely a missing cv2 dependency, which pykitti is accidentally trying to import but which is not actually used or listed as a dependency either.

@valgur
Thanks for the reply, it turned out you're right. It was in fact a missing cv2.

I'd also like to point out for future reference that if you try installing with python2.7/pip2 you should install an older version of matplotlib, since the current one is requiring at least python3.6.

Can you explain the method in detail? I had the same problem, but I was new to it

@valgur How i apply this answer????

try:
import pykitti
except ImportError as e:
print('Could not load module 'pykitti'. Please run pip install pykitti')
sys.exit(1)

commented

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

It works for me! Thanks

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

Thanks so much! It solved my problem!

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

It works for me too. Thanks!

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

Thanks, that worked for me. My problem was #54 . When I reinstall kitti2bag using sudo, it claimed that bash: /home/jun/anaconda3/envs/kitti/bin/kitti2bag: No such file or directory , then I run pip install kitti2bag again after sudo pip install kitti2bag, everything then worked.

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

fucking good!Thanks a lot

For Ubuntu 20.04, please just change the python version into 3.8.10, which can solve this problem well.

first remove the kitti2bag:

pip uninstall kitti2bag

second install kitti2bag by root:

sudo pip install kitti2bag

This method works for me! Thank you so much!