i can't run the first.py script (Python binding with ns Import Error).s
we i try to run the first.py script i got this error:
note cppyy version is 3.0.0 (latest version).
[0/2] Re-checking globbed directories...
ninja: no work to do.
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { $.cling-module-142.__inits.0, __cxx_global_var_initcling_module_142_, __orc_init_func.cling-module-142, _GLOBAL__sub_I_cling_module_142, _ZN3ns3L16g_TimeStaticInitE }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-142 }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { _ZN3ns34TimeD1Ev, $.cling-module-162.__inits.0, __cxx_global_var_initcling_module_162_, __orc_init_func.cling-module-162, _ZN3ns3L27UE_MEASUREMENT_REPORT_DELAYE, _ZZN3ns34Time14PeekResolutionEvE10resolution, _GLOBAL__sub_I_cling_module_162, _ZGVZN3ns34Time14PeekResolutionEvE10resolution }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-162 }) }
Traceback (most recent call last):
File "/home/gadour/source/ns-3.37/scratch/first.py", line 16, in <module>
from ns import ns
File "/home/gadour/source/ns-3.37/build/bindings/python/ns/__init__.py", line 488, in <module>
ns = load_modules() # can be imported via 'from ns import ns'
^^^^^^^^^^^^^^
File "/home/gadour/source/ns-3.37/build/bindings/python/ns/__init__.py", line 353, in load_modules
cppyy.load_library(library)
File "/home/gadour/.local/lib/python3.11/site-packages/cppyy/__init__.py", line 238, in load_library
sc = gSystem.Load(name)
^^^^^^^^^^^^^^^^^^
cppyy.gbl.std.regex_error: int CppyyLegacy::TSystem::Load(const char* module, const char* entry = "", CppyyLegacy::Bool_t system = kFALSE) =>
regex_error: Invalid escape in regular expression
Command 'python3 /home/gadour/source/ns-3.37/scratch/first.py' returned non-zero exit status 1.
i try to downgrade the cppyy package version to 2.4.1 and got this error:
./ns3 run scratch/first.py
[0/2] Re-checking globbed directories...
ninja: no work to do.
(Re-)building pre-compiled headers (options: -O2 -march=native); this may take a minute ...
In file included from input_line_10:9:
In file included from ./etc/dictpch/allHeaders.h:257:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:245:16: error: variables defined in a constexpr function must be initialized
unsigned __len;
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:370:1: note: in instantiation of function template specialization 'std::__to_chars_i<char>' requested here
_GLIBCXX_TO_CHARS(char)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:371:1: note: in instantiation of function template specialization 'std::__to_chars_i<signed char>' requested here
_GLIBCXX_TO_CHARS(signed char)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:372:1: note: in instantiation of function template specialization 'std::__to_chars_i<unsigned char>' requested here
_GLIBCXX_TO_CHARS(unsigned char)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:373:1: note: in instantiation of function template specialization 'std::__to_chars_i<short>' requested here
_GLIBCXX_TO_CHARS(signed short)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:374:1: note: in instantiation of function template specialization 'std::__to_chars_i<unsigned short>' requested here
_GLIBCXX_TO_CHARS(unsigned short)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:375:1: note: in instantiation of function template specialization 'std::__to_chars_i<int>' requested here
_GLIBCXX_TO_CHARS(signed int)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:376:1: note: in instantiation of function template specialization 'std::__to_chars_i<unsigned int>' requested here
_GLIBCXX_TO_CHARS(unsigned int)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned int]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:377:1: note: in instantiation of function template specialization 'std::__to_chars_i<long>' requested here
_GLIBCXX_TO_CHARS(signed long)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:378:1: note: in instantiation of function template specialization 'std::__to_chars_i<unsigned long>' requested here
_GLIBCXX_TO_CHARS(unsigned long)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:379:1: note: in instantiation of function template specialization 'std::__to_chars_i<long long>' requested here
_GLIBCXX_TO_CHARS(signed long long)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:358:9: error: no matching function for call to '__to_chars_8'
return __detail::__to_chars_8(__first, __last, __unsigned_val);
^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:380:1: note: in instantiation of function template specialization 'std::__to_chars_i<unsigned long long>' requested here
_GLIBCXX_TO_CHARS(unsigned long long)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:369:17: note: expanded from macro '_GLIBCXX_TO_CHARS'
{ return std::__to_chars_i<T>(__first, __last, __value, __base); }
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/charconv:240:5: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
__to_chars_8(char* __first, char* __last, _Tp __val) noexcept
^
Error: ./bin/rootcling: compilation failure (/tmp/allDictb51812a800_dictUmbrella.h)
/home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/loader.py:139: UserWarning: No precompiled header available (failed to build); this may impact performance.
warnings.warn('No precompiled header available (%s); this may impact performance.' % msg)
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:24:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/fstream:42:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/codecvt.h:344:20: error: explicit specialization of undeclared template class 'messages'
friend class messages<char>;
^ ~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/codecvt.h:407:20: error: explicit specialization of undeclared template class 'messages'
friend class messages<wchar_t>;
^ ~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/codecvt.h:717:28: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: codecvt_byname(__s.c_str(), __refs) { }
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/codecvt.h:737:28: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: codecvt_byname(__s.c_str(), __refs) { }
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/codecvt.h:755:28: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: codecvt_byname(__s.c_str(), __refs) { }
~~~ ^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:24:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/fstream:339:25: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
{ return open(__s.c_str(), __mode); }
~~~ ^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:26:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/iomanip:45:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/locale:43:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:812:29: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: time_get_byname(__s.c_str(), __refs) { }
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:946:29: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: time_put_byname(__s.c_str(), __refs) { }
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:1477:31: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: moneypunct_byname(__s.c_str(), __refs) { }
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:2049:29: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
: messages_byname(__s.c_str(), __refs) { }
~~~ ^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:26:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/iomanip:45:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/locale:43:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:2064:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/x86_64-redhat-linux/bits/messages_members.h:73:26: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
bindtextdomain(__s.c_str(), __dir);
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/x86_64-redhat-linux/bits/messages_members.h:93:22: error: no member named 'c_str' in 'std::__cxx11::basic_string<char>'
textdomain(__s.c_str());
~~~ ^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:26:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/iomanip:45:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/locale:43:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:2069:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.tcc:100:35: error: no member named 'size' in 'std::__cxx11::basic_string<char>'
const size_t __g_size = __g.size();
~~~ ^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.tcc:160:9: error: no matching constructor for initialization of 'std::string' (aka 'basic_string<char>')
string __grouping_tmp;
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:761:9: note: candidate constructor template not viable: requires at least 2 arguments, but 0 were provided
basic_string(_InputIterator __beg, _InputIterator __end,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:538:7: note: candidate constructor not viable: requires single argument '__a', but no arguments were provided
basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:708:7: note: candidate constructor not viable: requires at least argument '__l', but no arguments were provided
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:713:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(const basic_string& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:718:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(basic_string&& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:567:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:584:7: note: candidate constructor not viable: requires 3 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:667:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:602:7: note: candidate constructor not viable: requires 4 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:26:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/iomanip:45:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/locale:43:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:2069:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.tcc:173:9: error: no matching constructor for initialization of 'std::string' (aka 'basic_string<char>')
string __res;
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:761:9: note: candidate constructor template not viable: requires at least 2 arguments, but 0 were provided
basic_string(_InputIterator __beg, _InputIterator __end,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:538:7: note: candidate constructor not viable: requires single argument '__a', but no arguments were provided
basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:708:7: note: candidate constructor not viable: requires at least argument '__l', but no arguments were provided
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:713:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(const basic_string& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:718:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(basic_string&& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:567:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:584:7: note: candidate constructor not viable: requires 3 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:667:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:602:7: note: candidate constructor not viable: requires 4 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:26:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/iomanip:45:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/locale:43:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:2069:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.tcc:374:14: error: no matching constructor for initialization of 'std::string' (aka 'basic_string<char>')
string __str;
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:761:9: note: candidate constructor template not viable: requires at least 2 arguments, but 0 were provided
basic_string(_InputIterator __beg, _InputIterator __end,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:538:7: note: candidate constructor not viable: requires single argument '__a', but no arguments were provided
basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:708:7: note: candidate constructor not viable: requires at least argument '__l', but no arguments were provided
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:713:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(const basic_string& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:718:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(basic_string&& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:567:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:584:7: note: candidate constructor not viable: requires 3 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:667:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:602:7: note: candidate constructor not viable: requires 4 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
In file included from libCoreLegacy dictionary payload:7:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/Riostream.h:26:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/iomanip:45:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/locale:43:
In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.h:2069:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/locale_facets_nonio.tcc:392:14: error: no matching constructor for initialization of 'std::string' (aka 'basic_string<char>')
string __str;
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:761:9: note: candidate constructor template not viable: requires at least 2 arguments, but 0 were provided
basic_string(_InputIterator __beg, _InputIterator __end,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:538:7: note: candidate constructor not viable: requires single argument '__a', but no arguments were provided
basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:708:7: note: candidate constructor not viable: requires at least argument '__l', but no arguments were provided
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:713:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(const basic_string& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:718:7: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
basic_string(basic_string&& __str, const _Alloc& __a)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:567:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:584:7: note: candidate constructor not viable: requires 3 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:667:7: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc())
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/basic_string.h:602:7: note: candidate constructor not viable: requires 4 arguments, but 0 were provided
basic_string(const basic_string& __str, size_type __pos,
^
In file included from libCoreLegacy dictionary payload:10:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TBuffer.h:24:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TDataType.h:25:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TDictionary.h:41:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TNamed.h:25:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TString.h:26:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TMathBase.h:32:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cmath:89:3: error: redefinition of 'acos'
acos(float __x)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cmath:89:3: note: previous definition is here
acos(float __x)
^
In file included from libCoreLegacy dictionary payload:10:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TBuffer.h:24:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TDataType.h:25:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TDictionary.h:41:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TNamed.h:25:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TString.h:26:
In file included from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/include/TMathBase.h:32:
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cmath:93:3: error: redefinition of 'acos'
acos(long double __x)
^
/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/cmath:93:3: note: previous definition is here
acos(long double __x)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
*** Break *** segmentation violation
#0 0x00007fdb33cfcc37 in wait4 () from /lib64/libc.so.6
#1 0x00007fdb33c711fb in do_system () from /lib64/libc.so.6
#2 0x00007fdb25fa0725 in CppyyLegacy::TUnixSystem::StackTrace() () from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/lib/libCoreLegacy.so
#3 0x00007fdb260f9eb3 in (anonymous namespace)::do_trace (sig=1) at src/clingwrapper.cxx:239
#4 (anonymous namespace)::TExceptionHandlerImp::HandleException (this=<optimized out>, sig=1) at src/clingwrapper.cxx:252
#5 0x00007fdb25f9f231 in CppyyLegacy::TUnixSystem::DispatchSignals(CppyyLegacy::ESignals) () from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/lib/libCoreLegacy.so
#6 <signal handler called>
#7 0x00007fdb260fef8b in Cppyy::GetFinalName[abi:cxx11](unsigned long) (klass=klass
entry=2) at src/clingwrapper.cxx:1324
#8 0x00007fdb213aea34 in CPyCppyy::CreateNewCppProxyClass (pybases=0x7fdb263f66e0, klass=2) at src/ProxyWrappers.cxx:64
#9 CPyCppyy::CreateScopeProxy (name="std", parent=<optimized out>, parent
entry=0x0, flags=flags
entry=0) at src/ProxyWrappers.cxx:692
#10 0x00007fdb213afd5c in CPyCppyy::CreateScopeProxy (args=<optimized out>) at src/ProxyWrappers.cxx:530
#11 0x00007fdb33fcd2b8 in cfunction_call () from /lib64/libpython3.11.so.1.0
#12 0x00007fdb33fb0a93 in _PyObject_MakeTpCall () from /lib64/libpython3.11.so.1.0
#13 0x00007fdb33fb93d9 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#14 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#15 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#16 0x00007fdb34050d12 in builtin_exec () from /lib64/libpython3.11.so.1.0
#17 0x00007fdb33fc6d2a in cfunction_vectorcall_FASTCALL_KEYWORDS () from /lib64/libpython3.11.so.1.0
#18 0x00007fdb33fbd52a in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#19 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#20 0x00007fdb33fcca46 in object_vacall () from /lib64/libpython3.11.so.1.0
#21 0x00007fdb33fef4d4 in PyObject_CallMethodObjArgs () from /lib64/libpython3.11.so.1.0
#22 0x00007fdb33fecc24 in PyImport_ImportModuleLevelObject () from /lib64/libpython3.11.so.1.0
#23 0x00007fdb33fbfc16 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#24 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#25 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#26 0x00007fdb34050d12 in builtin_exec () from /lib64/libpython3.11.so.1.0
#27 0x00007fdb33fc6d2a in cfunction_vectorcall_FASTCALL_KEYWORDS () from /lib64/libpython3.11.so.1.0
#28 0x00007fdb33fbd52a in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#29 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#30 0x00007fdb33fcca46 in object_vacall () from /lib64/libpython3.11.so.1.0
#31 0x00007fdb33fef4d4 in PyObject_CallMethodObjArgs () from /lib64/libpython3.11.so.1.0
#32 0x00007fdb33fecc24 in PyImport_ImportModuleLevelObject () from /lib64/libpython3.11.so.1.0
#33 0x00007fdb33fbfc16 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#34 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#35 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#36 0x00007fdb34050d12 in builtin_exec () from /lib64/libpython3.11.so.1.0
#37 0x00007fdb33fc6d2a in cfunction_vectorcall_FASTCALL_KEYWORDS () from /lib64/libpython3.11.so.1.0
#38 0x00007fdb33fbd52a in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#39 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#40 0x00007fdb33fcca46 in object_vacall () from /lib64/libpython3.11.so.1.0
#41 0x00007fdb33fef4d4 in PyObject_CallMethodObjArgs () from /lib64/libpython3.11.so.1.0
#42 0x00007fdb33fecc24 in PyImport_ImportModuleLevelObject () from /lib64/libpython3.11.so.1.0
#43 0x00007fdb33fbfc16 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#44 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#45 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#46 0x00007fdb34057823 in run_eval_code_obj () from /lib64/libpython3.11.so.1.0
#47 0x00007fdb34053e2a in run_mod () from /lib64/libpython3.11.so.1.0
#48 0x00007fdb34069be2 in pyrun_file () from /lib64/libpython3.11.so.1.0
#49 0x00007fdb34069398 in _PyRun_SimpleFileObject () from /lib64/libpython3.11.so.1.0
#50 0x00007fdb34068ff8 in _PyRun_AnyFileObject () from /lib64/libpython3.11.so.1.0
#51 0x00007fdb34062f1c in Py_RunMain () from /lib64/libpython3.11.so.1.0
#52 0x00007fdb34029f5b in Py_BytesMain () from /lib64/libpython3.11.so.1.0
#53 0x00007fdb33c49b4a in __libc_start_call_main () from /lib64/libc.so.6
#54 0x00007fdb33c49c0b in __libc_start_main_impl () from /lib64/libc.so.6
#55 0x0000562146e51095 in _start ()
*** Break *** segmentation violation
#0 0x00007fdb33cfcc37 in wait4 () from /lib64/libc.so.6
#1 0x00007fdb33c711fb in do_system () from /lib64/libc.so.6
#2 0x00007fdb25fa0725 in CppyyLegacy::TUnixSystem::StackTrace() () from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/lib/libCoreLegacy.so
#3 0x00007fdb260f9d37 in (anonymous namespace)::do_trace (sig=1) at src/clingwrapper.cxx:239
#4 (anonymous namespace)::TExceptionHandlerImp::HandleException (this=<optimized out>, sig=1) at src/clingwrapper.cxx:258
#5 0x00007fdb25f9f231 in CppyyLegacy::TUnixSystem::DispatchSignals(CppyyLegacy::ESignals) () from /home/gadour/.local/lib/python3.11/site-packages/cppyy_backend/lib/libCoreLegacy.so
#6 <signal handler called>
#7 0x00007fdb260fef8b in Cppyy::GetFinalName[abi:cxx11](unsigned long) (klass=klass
entry=2) at src/clingwrapper.cxx:1324
#8 0x00007fdb213aea34 in CPyCppyy::CreateNewCppProxyClass (pybases=0x7fdb263f66e0, klass=2) at src/ProxyWrappers.cxx:64
#9 CPyCppyy::CreateScopeProxy (name="std", parent=<optimized out>, parent
entry=0x0, flags=flags
entry=0) at src/ProxyWrappers.cxx:692
#10 0x00007fdb213afd5c in CPyCppyy::CreateScopeProxy (args=<optimized out>) at src/ProxyWrappers.cxx:530
#11 0x00007fdb33fcd2b8 in cfunction_call () from /lib64/libpython3.11.so.1.0
#12 0x00007fdb33fb0a93 in _PyObject_MakeTpCall () from /lib64/libpython3.11.so.1.0
#13 0x00007fdb33fb93d9 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#14 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#15 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#16 0x00007fdb34050d12 in builtin_exec () from /lib64/libpython3.11.so.1.0
#17 0x00007fdb33fc6d2a in cfunction_vectorcall_FASTCALL_KEYWORDS () from /lib64/libpython3.11.so.1.0
#18 0x00007fdb33fbd52a in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#19 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#20 0x00007fdb33fcca46 in object_vacall () from /lib64/libpython3.11.so.1.0
#21 0x00007fdb33fef4d4 in PyObject_CallMethodObjArgs () from /lib64/libpython3.11.so.1.0
#22 0x00007fdb33fecc24 in PyImport_ImportModuleLevelObject () from /lib64/libpython3.11.so.1.0
#23 0x00007fdb33fbfc16 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#24 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#25 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#26 0x00007fdb34050d12 in builtin_exec () from /lib64/libpython3.11.so.1.0
#27 0x00007fdb33fc6d2a in cfunction_vectorcall_FASTCALL_KEYWORDS () from /lib64/libpython3.11.so.1.0
#28 0x00007fdb33fbd52a in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#29 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#30 0x00007fdb33fcca46 in object_vacall () from /lib64/libpython3.11.so.1.0
#31 0x00007fdb33fef4d4 in PyObject_CallMethodObjArgs () from /lib64/libpython3.11.so.1.0
#32 0x00007fdb33fecc24 in PyImport_ImportModuleLevelObject () from /lib64/libpython3.11.so.1.0
#33 0x00007fdb33fbfc16 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#34 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#35 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#36 0x00007fdb34050d12 in builtin_exec () from /lib64/libpython3.11.so.1.0
#37 0x00007fdb33fc6d2a in cfunction_vectorcall_FASTCALL_KEYWORDS () from /lib64/libpython3.11.so.1.0
#38 0x00007fdb33fbd52a in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#39 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#40 0x00007fdb33fcca46 in object_vacall () from /lib64/libpython3.11.so.1.0
#41 0x00007fdb33fef4d4 in PyObject_CallMethodObjArgs () from /lib64/libpython3.11.so.1.0
#42 0x00007fdb33fecc24 in PyImport_ImportModuleLevelObject () from /lib64/libpython3.11.so.1.0
#43 0x00007fdb33fbfc16 in _PyEval_EvalFrameDefault () from /lib64/libpython3.11.so.1.0
#44 0x00007fdb33fb54aa in _PyEval_Vector () from /lib64/libpython3.11.so.1.0
#45 0x00007fdb34039f5c in PyEval_EvalCode () from /lib64/libpython3.11.so.1.0
#46 0x00007fdb34057823 in run_eval_code_obj () from /lib64/libpython3.11.so.1.0
#47 0x00007fdb34053e2a in run_mod () from /lib64/libpython3.11.so.1.0
#48 0x00007fdb34069be2 in pyrun_file () from /lib64/libpython3.11.so.1.0
#49 0x00007fdb34069398 in _PyRun_SimpleFileObject () from /lib64/libpython3.11.so.1.0
#50 0x00007fdb34068ff8 in _PyRun_AnyFileObject () from /lib64/libpython3.11.so.1.0
#51 0x00007fdb34062f1c in Py_RunMain () from /lib64/libpython3.11.so.1.0
#52 0x00007fdb34029f5b in Py_BytesMain () from /lib64/libpython3.11.so.1.0
#53 0x00007fdb33c49b4a in __libc_start_call_main () from /lib64/libc.so.6
#54 0x00007fdb33c49c0b in __libc_start_main_impl () from /lib64/libc.so.6
#55 0x0000562146e51095 in _start ()
Command 'python3 scratch/first.py' returned non-zero exit status 129.
sorry about that last big error above.
Edited by Gabriel Ferreira