tomas789 / kitti2bag

Convert KITTI dataset to ROS bag file the easy way!
MIT License
720 stars 261 forks source link

Could not load module 'pykitti'. Please run `pip install pykitti` #54

Closed Juuustin closed 4 years ago

Juuustin commented 4 years ago

When I tried to do the example, it is said that Could not load module pykitti. Please run pip install pykitti, then I run pip install pykitti, it is said that Requirement already satisfied.

Any suggestions? `

valgur commented 4 years ago

That error message is kind of incorrect and misleading. Replace these lines with just import pykitti and try again.

Juuustin commented 4 years ago

That error message is kind of incorrect and misleading. Replace these lines with just import pykitti and try again.

Thank you very much! Now it works when I use python2.7 for ROS. There is another question: Would it be possible to just transform odometry dataset (velodyne laser data, 80 GB) into .bag file? There are 3 parameters to select: {raw_synced,odom_color,odom_gray} , but I have no idea which one to choose if I just want to save laser point into .bag.

YangSiri commented 3 years ago

Hi, @valgur @Juuustin

I follow the instructions mentioned above but still can't find pykitti which is already installed in python as shown below. 2021-03-06 08-53-05_kitti2bag1

2021-03-06 08-54-55_kitti2bag2

Could you please give me some advice on this? Thanks!

HXB-1997 commented 1 year ago

检查cv2和numpy是否安装 版本是否匹配

ly3106 commented 9 months ago

This problem is caused by cv2 and numpy which are used by pykitti. And these lines will report this error "Could not load module 'pykitti'. Please run pip install pykitti", when pykitti try to import cv2 and numpy. However when you install kitti2bag in a python3 environment, it is possible that the numpy's version is too high. So, the best solution is to install kitti2bag in a python2 environment. The reason likely be that this project was initially developed with python2.

jonarriza96 commented 7 months ago

The entire installation pipeline is broken. Hoping to help any newcomers, the following procedure worked for me:

conda create --name kitti38 python=3.8.10
conda activate kitti38
pip install opencv-python pykitti kitti2bag pyyaml rospkg pycryptodomex gnupg

and after unzipping the raw data from the instructions

kitti2bag -t 2011_09_26 -r 0002 raw_synced .
22Xc commented 5 months ago

The entire installation pipeline is broken. Hoping to help any newcomers, the following procedure worked for me:

conda create --name kitti38 python=3.8.10
conda activate kitti38
pip install opencv-python pykitti kitti2bag pyyaml rospkg pycryptodomex gnupg

and after unzipping the raw data from the instructions

kitti2bag -t 2011_09_26 -r 0002 raw_synced .

thanks a lot!