Depth-VO-Feat icon indicating copy to clipboard operation
Depth-VO-Feat copied to clipboard

An issue about the compiling of caffe

Open Ha-kki opened this issue 3 years ago • 0 comments

Hi:) @Huangying-Zhan After I added your layers in caffe and compiled it, I found this import error when I ran the bash file ./experiments/depth/train.sh to training the depth estimation network.

I0301 14:24:43.756604 3770 layer_factory.hpp:77] Creating layer SE3 Traceback (most recent call last): File "/home/myubuntu/anaconda3/envs/caf/caffe/python/pygeometry.py", line 1, in <module> import caffe File "/home/myubuntu/anaconda3/envs/caf/caffe/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/home/myubuntu/anaconda3/envs/caf/caffe/python/caffe/pycaffe.py", line 11, in <module> import numpy as np File "/home/myubuntu/anaconda3/envs/caf/lib/python2.7/site-packages/numpy/__init__.py", line 140, in <module> from . import _distributor_init File "/home/myubuntu/anaconda3/envs/caf/lib/python2.7/site-packages/numpy/_distributor_init.py", line 33, in <module> with RTLD_for_MKL(): File "/home/myubuntu/anaconda3/envs/caf/lib/python2.7/site-packages/numpy/_distributor_init.py", line 18, in __enter__ import ctypes File "/home/myubuntu/anaconda3/envs/caf/lib/python2.7/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: /home/myubuntu/anaconda3/envs/caf/lib/python2.7/lib-dynload/_ctypes.so: undefined symbol: _PySlice_Unpack

It seems that this issue occurred when the SE3 layer we added was creating. However, when I imported caffe in other python files, it could be imported successfully. For example, when I ran the pygeometry.py in the terminal, there was no any error. Could you tell me how I can solve this issue?

Ha-kki avatar Mar 01 '21 06:03 Ha-kki