Skip to content

Instantly share code, notes, and snippets.

@shivamvats
Created January 19, 2015 19:46
Show Gist options
  • Save shivamvats/87f24b310da644a43bab to your computer and use it in GitHub Desktop.
Save shivamvats/87f24b310da644a43bab to your computer and use it in GitHub Desktop.
Error
python: /home/aries/gsoc/csympy/src/mul.cpp:16: CSymPy::Mul::Mul(const CSymPy::RCP<const CSymPy::Number>&, CSymPy::map_basic_basic&&): Assertion `is_canonical(coef, dict_)' failed.
Abort caught. Printing stacktrace:
Traceback (most recent call last):
File unknown, in _start()
File "/build/buildd/eglibc-2.19/csu/libc-start.c", line 287, in __libc_start_main()
File "-------src-dir-------/Python-2.7.9/Modules/main.c", line 645, in Py_Main()
File "-------src-dir-------/Python-2.7.9/Python/pythonrun.c", line 747, in PyRun_AnyFileExFlags()
File "-------src-dir-------/Python-2.7.9/Python/pythonrun.c", line 778, in PyRun_InteractiveLoopFlags()
File "-------src-dir-------/Python-2.7.9/Python/pythonrun.c", line 1371, in run_mod()
File "-------src-dir-------/Python-2.7.9/Python/ceval.c", line 667, in PyEval_EvalCode()
File "-------src-dir-------/Python-2.7.9/Python/ceval.c", line 3265, in PyEval_EvalCodeEx()
File "-------src-dir-------/Python-2.7.9/Python/ceval.c", line 4017, in call_function()
File "/home/aries/gsoc/csympy/csympy/lib/csympy_wrapper.cpp", line 6455, in __pyx_pw_6csympy_3lib_14csympy_wrapper_5Basic_27expand()
__pyx_r = __pyx_pf_6csympy_3lib_14csympy_wrapper_5Basic_26expand(((struct __pyx_obj_6csympy_3lib_14csympy_wrapper_Basic *)__pyx_v_self));
File "/home/aries/gsoc/csympy/csympy/lib/csympy_wrapper.cpp", line 6485, in __pyx_pf_6csympy_3lib_14csympy_wrapper_5Basic_26expand()
__pyx_t_1 = CSymPy::expand(((CSymPy::RCP<CSymPy::Basic const > &)__pyx_v_self->thisptr));
File "/home/aries/gsoc/csympy/src/basic.cpp", line 41, in CSymPy::expand(CSymPy::RCP<CSymPy::Basic const> const&)
if (is_a<Pow>(*self)) return pow_expand(rcp_static_cast<const Pow>(self));
File "/home/aries/gsoc/csympy/src/pow.cpp", line 415, in CSymPy::pow_expand(CSymPy::RCP<CSymPy::Pow const> const&)
RCP<const Basic> term = Mul::from_dict(overall_coeff, std::move(d));
File "/home/aries/gsoc/csympy/src/mul.cpp", line 204, in CSymPy::Mul::from_dict(CSymPy::RCP<CSymPy::Number const> const&, std::map<CSymPy::RCP<CSymPy::Basic const>, CSymPy::RCP<CSymPy::Basic const>, CSymPy::RCPBasicKeyLess, std::allocator<std::pair<CSymPy::RCP<CSymPy::Basic const> const, CSymPy::RCP<CSymPy::Basic const> > > >&&)
return rcp(new Mul(coef, std::move(d)));
File "/home/aries/gsoc/csympy/src/mul.cpp", line 16, in CSymPy::Mul::Mul(CSymPy::RCP<CSymPy::Number const> const&, std::map<CSymPy::RCP<CSymPy::Basic const>, CSymPy::RCP<CSymPy::Basic const>, CSymPy::RCPBasicKeyLess, std::allocator<std::pair<CSymPy::RCP<CSymPy::Basic const> const, CSymPy::RCP<CSymPy::Basic const> > > >&&)
CSYMPY_ASSERT(is_canonical(coef, dict_))
File "/build/buildd/eglibc-2.19/assert/assert.c", line 101, in __GI___assert_fail()
File "/build/buildd/eglibc-2.19/assert/assert.c", line 92, in __assert_fail_base()
File "/build/buildd/eglibc-2.19/stdlib/abort.c", line 89, in __GI_abort()
File "/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c", line 56, in __GI_raise()
File unknown, in killpg()
File "/home/aries/gsoc/csympy/src/teuchos/Teuchos_stacktrace.cpp", line 449, in loc_abort_callback_print_stack()
Teuchos::show_stacktrace();
Done.
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment