Open arnabsinha opened 6 years ago
Similar problem here, but I got a bunch of abandoned packages as shown above. I met build failure when I typed catkin build maplab in $CATKIN_WS. Can I provide additional informations to fix this? Thanks in advance.
Seems to be an issue with python. Are you both using python 3.5? As a quick fix you could try making a virtualenv with python 2.7, installing the dependencies and trying to recompile. Or replace in the code the occurrences of PyString_FromString
with PyBytes_FromString
.
@smauq Thanks for the reply, however as I checked my Python version it is shown as 2.7 (Though I did not tried anything related with installing Python)
I think I found an error while installing this project, but I'll leave another issue since that seems not related with this issue.
@Keudeugi did you try doing the replacement PyString_FromString
to PyBytes_FromString
?
Hi @smauq , I think the problem I have is solved (https://github.com/ethz-asl/maplab/issues/93) but thanks for the reply.
I am using Ubuntu 16.04 with Kinetic ROS version. I have followed each and every steps as described in https://github.com/ethz-asl/maplab/wiki/Installation-Ubuntu. But I am facing the following problem :
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In constructor ‘plotty::detail::_interpreter::_interpreter()’: ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:98:27: error: cannot convert ‘char’ to ‘wchar_t’ for argument ‘1’ to ‘void Py_SetProgramName(wchar_t)’ Py_SetProgramName(name); // optional but recommended ^ ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:101:67: error: ‘PyString_FromString’ was not declared in this scope PyObject pyplotname = PyString_FromString("matplotlib.pyplot"); ^ ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘bool plotty::figure(std::cxx11::string)’: ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:194:51: error: ‘PyString_FromString’ was not declared in this scope PyObject* i_py = PyString_FromString(i.c_str()); ^ ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘bool plotty::hist(const Eigen::Ref<const Eigen::Matrix<double, -1, 1> >&, double, std::cxx11::string)’: ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:221:63: error: ‘PyString_FromString’ was not declared in this scope PyObject histtype_py = PyString_FromString(histtype.c_str()); ^ ~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘bool plotty::boxplot(const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const std::vector<std::cxx11::basic_string >&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:259:71: error: ‘PyString_FromString’ was not declared in this scope
PyList_SetItem(py_labels, i, PyString_FromString(labels[i].c_str()));
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘bool plotty::plot(const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const std::map<std:: cxx11::basic_string, std::__cxx11::basic_string >&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:363:64: error: ‘PyString_FromString’ was not declared in this scope
PyString_FromString(it->second.c_str()));
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘bool plotty::plot(const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:394:53: error: ‘PyString_FromString’ was not declared in this scope
PyObject pystring = PyString_FromString(s.c_str());
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘bool plotty::labelPlot(const string&, const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const Eigen::Ref<const Eigen::Matrix<double, -1, -1> >&, const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:435:73: error: ‘PyString_FromString’ was not declared in this scope
PyDict_SetItemString(kwargs, "label", PyString_FromString(name.c_str()));
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘void plotty::title(const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:611:62: error: ‘PyString_FromString’ was not declared in this scope
PyObject pytitlestr = PyString_FromString(titlestr.c_str());
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘void plotty::axis(const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:626:54: error: ‘PyString_FromString’ was not declared in this scope
PyObject str = PyString_FromString(axisstr.c_str());
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘void plotty::xlabel(const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:641:52: error: ‘PyString_FromString’ was not declared in this scope
PyObject pystr = PyString_FromString(str.c_str());
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘void plotty::ylabel(const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:656:52: error: ‘PyString_FromString’ was not declared in this scope
PyObject pystr = PyString_FromString(str.c_str());
^
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp: In function ‘void plotty::save(const string&)’:
~/maplab_ws/src/maplab_dependencies/internal/plotty/src/matplotlibcpp.cpp:706:62: error: ‘PyString_FromString’ was not declared in this scope
PyObject* pyfilename = PyString_FromString(filename.c_str());
^
make[2]: [CMakeFiles/plotty.dir/src/matplotlibcpp.cpp.o] Error 1
make[1]: [CMakeFiles/plotty.dir/all] Error 2
make: *** [all] Error 2
cd ~/maplab_ws/build/plotty; catkin build --get-env plotty | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
.............................................................................................................................................................................................
Failed << plotty:make [ Exited with code 2 ]
Failed <<< plotty [ 1.7 seconds ]
Abandoned <<< aslam_cv_frames [ Unrelated job failed ]
Abandoned <<< aslam_cv_matcher [ Unrelated job failed ]
Abandoned <<< aslam_cv_detector [ Unrelated job failed ]
Abandoned <<< aslam_cv_geometric_vision [ Unrelated job failed ]
Abandoned <<< aslam_cv_pipeline [ Unrelated job failed ]
Abandoned <<< aslam_cv_tracker [ Unrelated job failed ]
Abandoned <<< aslam_cv_triangulation [ Unrelated job failed ]
Abandoned <<< aslam_cv_visualization [ Unrelated job failed ]
Abandoned <<< aslam_serialization [ Unrelated job failed ]
Abandoned <<< console_common [ Unrelated job failed ]
Abandoned <<< map_manager [ Unrelated job failed ]
Abandoned <<< map_resources [ Unrelated job failed ]
Abandoned <<< message_flow [ Unrelated job failed ]
Abandoned <<< posegraph [ Unrelated job failed ]
Abandoned <<< sensors [ Unrelated job failed ]
Abandoned <<< statistics_plugin [ Unrelated job failed ]
Abandoned <<< vi_map [ Unrelated job failed ]
Abandoned <<< dense_reconstruction_common [ Unrelated job failed ]
Abandoned <<< loopclosure_common [ Unrelated job failed ]
Abandoned <<< pose_graph_manipulation_plugin [ Unrelated job failed ]
Abandoned <<< simulation [ Unrelated job failed ]
Abandoned <<< geometric_vision_algorithms [ Unrelated job failed ]
Abandoned <<< imu_integrator_rk4 [ Unrelated job failed ]
Abandoned <<< ceres_error_terms [ Unrelated job failed ]
Abandoned <<< stereo_dense_reconstruction [ Unrelated job failed ]
Abandoned <<< vi_map_helpers [ Unrelated job failed ]
Abandoned <<< map_optimization_legacy [ Unrelated job failed ]
Abandoned <<< vi_mapping_test_app [ Unrelated job failed ]
Abandoned <<< landmark_triangulation [ Unrelated job failed ]
Abandoned <<< vio_common [ Unrelated job failed ]
Abandoned <<< visualization [ Unrelated job failed ]
Abandoned <<< feature_tracking [ Unrelated job failed ]
Abandoned <<< landmark_manipulation_plugin [ Unrelated job failed ]
Abandoned <<< map_optimization_legacy_plugin [ Unrelated job failed ]
Abandoned <<< map_sparsification [ Unrelated job failed ]
Abandoned <<< maplab_console [ Unrelated job failed ]
Abandoned <<< online_map_builders [ Unrelated job failed ]
Abandoned <<< vi_map_basic_plugin [ Unrelated job failed ]
Abandoned <<< vi_map_visualization_plugin [ Unrelated job failed ]
Abandoned <<< vocabulary_tree [ Unrelated job failed ]
Abandoned <<< descriptor_projection [ Unrelated job failed ]
Abandoned <<< csv_export [ Unrelated job failed ]
Abandoned <<< localization_summary_map [ Unrelated job failed ]
Abandoned <<< product_quantization [ Unrelated job failed ]
Abandoned <<< inverted_multi_index [ Unrelated job failed ]
Abandoned <<< matching_based_loopclosure [ Unrelated job failed ]
Abandoned <<< loop_closure_handler [ Unrelated job failed ]
Abandoned <<< map_anchoring [ Unrelated job failed ]
Abandoned <<< localization_evaluator [ Unrelated job failed ]
Abandoned <<< loop_closure_plugin [ Unrelated job failed ]
Abandoned <<< map_anchoring_plugin [ Unrelated job failed ]
Abandoned <<< map_optimization [ Unrelated job failed ]
Abandoned <<< map_optimization_plugin [ Unrelated job failed ]
Abandoned <<< map_sparsification_plugin [ Unrelated job failed ]
Abandoned <<< mapping_workflows_plugin [ Unrelated job failed ]
Abandoned <<< rovioli [ Unrelated job failed ]
Abandoned <<< vi_map_data_import_export_plugin [ Unrelated job failed ]
Abandoned <<< vi_map_summarization_plugin [ Unrelated job failed ]
Abandoned <<< voxblox_interface [ Unrelated job failed ]
Abandoned <<< pmvs_interface [ Unrelated job failed ]
Abandoned <<< dense_reconstruction_plugin [ Unrelated job failed ]
Errors << rovio:make /home/mitun/maplab_ws/logs/rovio/build.make.000.log