ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
2018-03-03 14:15
2586 查看
环境
Ubuntu 14.04 + ROS indigo + Anaconda | Python3.6.3报错日志
cv_image = CvBridge().imgmsg_to_cv2(image_data, "bgr8") File "/home/zhw/gym-gazebo/gym_gazebo/envs/installation/catkin_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 163, in imgmsg_to_cv2 dtype, n_channels = self.encoding_to_dtype_with_channels(img_msg.encoding) File "/home/zhw/gym-gazebo/gym_gazebo/envs/installation/catkin_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 99, in encoding_to_dtype_with_channels return self.cvtype2_to_dtype_with_channels(self.encoding_to_cvtype2(encoding)) File "/home/zhw/gym-gazebo/gym_gazebo/envs/installation/catkin_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 91, in encoding_to_cvtype2 from cv_bridge.boost.cv_bridge_boost import getCvType ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
解决方案
注释掉关于Anaconda的环境变量:#export PATH=/home/soft/conda3/bin:$PATH
然后把这个环境变量改为
PYTHON_PATH:
export PYTHON_PATH=/home/soft/conda3/bin
相关文章推荐
- 编译caffe的Python借口,提示:ImportError: dynamic module does not define module export function (PyInit__caffe)
- caffe配置问题:dynamic module does not define module export function(PyInit_caffe)
- pvanet的问题--ImportError: dynamic module does not define init function (initcython_bbox)
- C++开发python扩展模块:ImportError: dynamic module does not define init function (initRabbit)解决办法
- Error: At least one module has an unresolved import due to a missing export function in an implicitl
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- Error:Child module xxx of parent\pom.xml does not exist @ @
- error: DynamicDataSource is not abstract and does not override abstract method getParentLogger() in
- ERROR 1336 (0A000): Dynamic SQL is not allowed in stored function or trigger
- build/core/java.mk:9: *** frameworks/bin: Target java module does not define any source or resource
- build/core/java.mk:9: *** frameworks/bin: Target java module does not define any source or resource
- Angular引入node_modules里面的css文件出错Module build failed:TypeError:URL.startsWith is not a function
- build/core/java.mk:9: *** frameworks/bin: Target java module does not define any source or resource
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- Module "django.contrib.flatpages" does not define a "middleware" attribute/class
- ERROR 1336 (0A000): Dynamic SQL is not allowed in stored function or trigger
- ERROR tool.ImportTool: Import failed: java.io.IOException: Hive does not support the SQL type for co
- python import 包问题:TypeError: 'module' object is not callable
- SyntaxErrorException系列日记一:FUNCTION xxxxxx.xxxxxx does not exist
- ThriftParserError: ThriftPy does not support generating module with path in protocol 'd'