[graph-tool] Boost.Python.ArgumentError: Python argument types did not match C++ signature

P-M pmj27 at cam.ac.uk
Fri Feb 24 18:00:30 CET 2017


Applying the work around and using the system readline means ./configure now
seems to run without errors.

When running make I get an error however revolving around CGAL. Do you know
what might be causing them?

In file included from
/usr/include/CGAL/Periodic_3_Delaunay_triangulation_traits_3.h:30:0,
                 from graph_triangulation.cc:55:
/home/pmj27/anaconda2/include/CGAL/Periodic_3_triangulation_traits_3.h:33:9:
error: redefinition of ‘class CGAL::Traits_with_offsets_adaptor<K,
Functor_>’
   class Traits_with_offsets_adaptor {
         ^
In file included from
/usr/include/CGAL/Periodic_3_Delaunay_triangulation_traits_3.h:27:0,
                 from graph_triangulation.cc:55:
/usr/include/CGAL/Traits_with_offsets_adaptor.h:31:9: error: previous
definition of ‘class CGAL::Traits_with_offsets_adaptor<K, Functor_>’
   class Traits_with_offsets_adaptor {
         ^
In file included from
/usr/include/CGAL/Periodic_3_Delaunay_triangulation_traits_3.h:30:0,
                 from graph_triangulation.cc:55:
/home/pmj27/anaconda2/include/CGAL/Periodic_3_triangulation_traits_3.h:96:7:
error: redefinition of ‘class CGAL::Periodic_3_construct_point_3<K,
Construct_point_3_base>’
 class Periodic_3_construct_point_3 : public Construct_point_3_base
       ^
In file included from
/usr/include/CGAL/Periodic_3_Delaunay_triangulation_traits_3.h:28:0,
                 from graph_triangulation.cc:55:
/usr/include/CGAL/Periodic_3_construct_point_3.h:31:7: error: previous
definition of ‘class CGAL::Periodic_3_construct_point_3<K,
Construct_point_3_base>’
 class Periodic_3_construct_point_3 : public Construct_point_3_base
       ^
In file included from
/home/pmj27/anaconda2/include/boost/type_traits/ice.hpp:15:0,
                 from
/home/pmj27/anaconda2/include/boost/python/detail/def_helper.hpp:9,
                 from
/home/pmj27/anaconda2/include/boost/python/class.hpp:29,
                 from /home/pmj27/anaconda2/include/boost/python.hpp:18,
                 from ../../../src/graph/numpy_bind.hh:22,
                 from graph_triangulation.cc:72:
/home/pmj27/anaconda2/include/boost/type_traits/detail/ice_or.hpp:17:71:
note: #pragma message: NOTE: Use of this header (ice_or.hpp) is deprecated
 # pragma message("NOTE: Use of this header (ice_or.hpp) is deprecated")
                                                                       ^
In file included from
/home/pmj27/anaconda2/include/boost/type_traits/ice.hpp:16:0,
                 from
/home/pmj27/anaconda2/include/boost/python/detail/def_helper.hpp:9,
                 from
/home/pmj27/anaconda2/include/boost/python/class.hpp:29,
                 from /home/pmj27/anaconda2/include/boost/python.hpp:18,
                 from ../../../src/graph/numpy_bind.hh:22,
                 from graph_triangulation.cc:72:
/home/pmj27/anaconda2/include/boost/type_traits/detail/ice_and.hpp:18:72:
note: #pragma message: NOTE: Use of this header (ice_and.hpp) is deprecated
 # pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated")
                                                                        ^
In file included from
/home/pmj27/anaconda2/include/boost/type_traits/ice.hpp:17:0,
                 from
/home/pmj27/anaconda2/include/boost/python/detail/def_helper.hpp:9,
                 from
/home/pmj27/anaconda2/include/boost/python/class.hpp:29,
                 from /home/pmj27/anaconda2/include/boost/python.hpp:18,
                 from ../../../src/graph/numpy_bind.hh:22,
                 from graph_triangulation.cc:72:
/home/pmj27/anaconda2/include/boost/type_traits/detail/ice_not.hpp:17:72:
note: #pragma message: NOTE: Use of this header (ice_not.hpp) is deprecated
 # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated")
                                                                        ^
In file included from
/home/pmj27/anaconda2/include/boost/type_traits/ice.hpp:18:0,
                 from
/home/pmj27/anaconda2/include/boost/python/detail/def_helper.hpp:9,
                 from
/home/pmj27/anaconda2/include/boost/python/class.hpp:29,
                 from /home/pmj27/anaconda2/include/boost/python.hpp:18,
                 from ../../../src/graph/numpy_bind.hh:22,
                 from graph_triangulation.cc:72:
/home/pmj27/anaconda2/include/boost/type_traits/detail/ice_eq.hpp:17:71:
note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated")
                                                                       ^
In file included from
/home/pmj27/anaconda2/include/CGAL/Periodic_3_Delaunay_triangulation_3.h:29:0,
                 from graph_triangulation.cc:56:
/home/pmj27/anaconda2/include/CGAL/Periodic_3_triangulation_3.h: In
instantiation of ‘CGAL::Periodic_3_triangulation_3<GT, TDS>::Vertex_handle
CGAL::Periodic_3_triangulation_3<GT, TDS>::periodic_insert(const Point&,
const Offset&, CGAL::Periodic_3_triangulation_3<GT, TDS>::Locate_type,
CGAL::Periodic_3_triangulation_3<GT, TDS>::Cell_handle, const
Conflict_tester&, Point_hider&, CGAL::Periodic_3_triangulation_3<GT,
TDS>::Vertex_handle) [with Conflict_tester =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>::Conflict_tester; Point_hider =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>::Point_hider; GT =
CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>; TDS =
CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >,
CGAL::Sequential_tag>; CGAL::Periodic_3_triangulation_3<GT,
TDS>::Vertex_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>;
CGAL::Periodic_3_triangulation_3<GT, TDS>::Point =
CGAL::Point_3<CGAL::Epick>; CGAL::Periodic_3_triangulation_3<GT,
TDS>::Offset = CGAL::Periodic_3_offset_3;
CGAL::Periodic_3_triangulation_3<GT, TDS>::Cell_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>]’:
/home/pmj27/anaconda2/include/CGAL/Periodic_3_triangulation_3.h:2553:37:  
required from ‘CGAL::Periodic_3_triangulation_3<GT, TDS>::Vertex_handle
CGAL::Periodic_3_triangulation_3<GT, TDS>::insert_in_conflict(const Point&,
CGAL::Periodic_3_triangulation_3<GT, TDS>::Locate_type,
CGAL::Periodic_3_triangulation_3<GT, TDS>::Cell_handle, int, int, const
Conflict_tester&, Point_hider&) [with Conflict_tester =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>::Conflict_tester; Point_hider =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>::Point_hider; GT =
CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>; TDS =
CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >,
CGAL::Sequential_tag>; CGAL::Periodic_3_triangulation_3<GT,
TDS>::Vertex_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>;
CGAL::Periodic_3_triangulation_3<GT, TDS>::Point =
CGAL::Point_3<CGAL::Epick>; CGAL::Periodic_3_triangulation_3<GT,
TDS>::Cell_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>]’
/home/pmj27/anaconda2/include/CGAL/Periodic_3_triangulation_3.h:1000:30:  
required from ‘CGAL::Periodic_3_triangulation_3<GT, TDS>::Vertex_handle
CGAL::Periodic_3_triangulation_3<GT, TDS>::insert_in_conflict(const Point&,
CGAL::Periodic_3_triangulation_3<GT, TDS>::Cell_handle, const
Conflict_tester&, Point_hider&) [with Conflict_tester =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>::Conflict_tester; Point_hider =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>::Point_hider; GT =
CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>; TDS =
CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >,
CGAL::Sequential_tag>; CGAL::Periodic_3_triangulation_3<GT,
TDS>::Vertex_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>;
CGAL::Periodic_3_triangulation_3<GT, TDS>::Point =
CGAL::Point_3<CGAL::Epick>; CGAL::Periodic_3_triangulation_3<GT,
TDS>::Cell_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>]’
/home/pmj27/anaconda2/include/CGAL/Periodic_3_Delaunay_triangulation_3.h:176:36:  
required from ‘CGAL::Periodic_3_Delaunay_triangulation_3<Gt,
Tds>::Vertex_handle CGAL::Periodic_3_Delaunay_triangulation_3<Gt,
Tds>::insert(const Point&, CGAL::Periodic_3_Delaunay_triangulation_3<Gt,
Tds>::Cell_handle) [with Gt =
CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>; Tds =
CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >,
CGAL::Sequential_tag>; CGAL::Periodic_3_Delaunay_triangulation_3<Gt,
Tds>::Vertex_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>;
CGAL::Periodic_3_Delaunay_triangulation_3<Gt, Tds>::Point =
CGAL::Point_3<CGAL::Epick>; CGAL::Periodic_3_Delaunay_triangulation_3<Gt,
Tds>::Cell_handle =
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_vertex_base_3<void> >,
CGAL::Triangulation_cell_base_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>,
CGAL::Periodic_3_triangulation_ds_cell_base_3<void> >, CGAL::Sequential_tag>
> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>]’
graph_triangulation.hh:117:24:   required from ‘void
graph_tool::get_triangulation<Triang, IsPeriodic>::operator()(Graph&,
Points&, PosMap) const [with Graph =
boost::undirected_adaptor<boost::adj_list<long unsigned int> >; Points =
boost::multi_array_ref<double, 2ul>; PosMap =
boost::checked_vector_property_map<std::vector<double>,
boost::typed_identity_property_map<long unsigned int> >; Triang =
CGAL::Periodic_3_Delaunay_triangulation_3<CGAL::Periodic_3_Delaunay_triangulation_traits_3<CGAL::Epick>
>; IsPeriodic = std::integral_constant<bool, true>]’
graph_triangulation.cc:103:42:   required from here
/home/pmj27/anaconda2/include/CGAL/Periodic_3_triangulation_3.h:2164:17:
warning: unused parameter ‘lt’ [-Wunused-parameter]
     Locate_type lt, Cell_handle c, const Conflict_tester &tester,
                 ^
Makefile:562: recipe for target 'graph_triangulation.lo' failed
make[4]: *** [graph_triangulation.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

[warnings about unused definitions]
                                    ^
make[4]: Leaving directory '/home/pmj27/graph-tool/src/graph/generation'
Makefile:740: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pmj27/graph-tool/src/graph'
Makefile:419: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/pmj27/graph-tool/src'
Makefile:591: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pmj27/graph-tool'
Makefile:478: recipe for target 'all' failed
make: *** [all] Error 2




--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Boost-Python-ArgumentError-Python-argument-types-did-not-match-C-signature-tp4027056p4027070.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.



More information about the graph-tool mailing list