second.pytorch icon indicating copy to clipboard operation
second.pytorch copied to clipboard

No module named "second".

Open liqisa opened this issue 5 years ago • 6 comments

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 from second.core import box_np_ops ModuleNotFoundError: No module named 'second'

Any suggestion?Thx

liqisa avatar May 06 '19 02:05 liqisa

You need to add second/.. to PYTHONPATH environment variable.

traveller59 avatar May 07 '19 13:05 traveller59

import sys sys.path.append(r"/home/wtj/second.pytorch")

wtj318 avatar May 24 '19 06:05 wtj318

/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?

snj00070 avatar May 31 '19 01:05 snj00070

在这行代码里加个绝对地址, 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.

wtj318 avatar May 31 '19 08:05 wtj318

export PYTHONPATH=DIR:$PYTHONPATH where DIR is your path to the project. For example: ~/Projects/second.pythorch

I hope it helps.

toharl avatar Sep 24 '19 10:09 toharl

import os
os.environ['PYTHONPATH'] += ':/content/second.pytorch'

ma7555 avatar Nov 14 '20 02:11 ma7555