second.pytorch
second.pytorch copied to clipboard
No module named "second".
python create_data.py create_kitti_info_file --data_path=/home/deeper/workspace/frustum-pointnets/dataset/KITTI/object/
Traceback (most recent call last):
File "create_data.py", line 9, in
Any suggestion?Thx
You need to add second/..
to PYTHONPATH
environment variable.
import sys sys.path.append(r"/home/wtj/second.pytorch")
/home/harry/second.pytorch/second /my/other/path /home/harry/anaconda3/lib/python36.zip /home/harry/anaconda3/lib/python3.6 /home/harry/anaconda3/lib/python3.6/lib-dynload /home/harry/anaconda3/lib/python3.6/site-packages /home/harry/SparseConvNet
~/second.pytorch/second$ python create_data.py kitti_data_prep --data_path=KITTI_DATASET_ROOT
Traceback (most recent call last):
File "create_data.py", line 9, in
same problem how do I resolve this? any kind help?
在这行代码里加个绝对地址, impot sys sys.path.append(r"/home/xxx/second.pytorch") 即second.pytorch文件在你的目录下的地址 ------------------ 原始邮件 ------------------ 发件人: "snj00070"[email protected] 发送时间: 2019年5月31日(星期五) 上午9:18 收件人: "traveller59/second.pytorch"[email protected]; 抄送: "wtj318"[email protected];"Comment"[email protected]; 主题: Re: [traveller59/second.pytorch] No module named "second". (#183)
/home/harry/second.pytorch/second /my/other/path /home/harry/anaconda3/lib/python36.zip /home/harry/anaconda3/lib/python3.6 /home/harry/anaconda3/lib/python3.6/lib-dynload /home/harry/anaconda3/lib/python3.6/site-packages /home/harry/SparseConvNet
~/second.pytorch/second$ python create_data.py kitti_data_prep --data_path=KITTI_DATASET_ROOT Traceback (most recent call last): File "create_data.py", line 9, in from second.core import box_np_ops ModuleNotFoundError: No module named 'second
same problem how do I resolve this? any kind help?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
export PYTHONPATH=DIR:$PYTHONPATH where DIR is your path to the project. For example: ~/Projects/second.pythorch
I hope it helps.
import os
os.environ['PYTHONPATH'] += ':/content/second.pytorch'