kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
216 stars 37 forks source link

pybind11::error_already_set #111

Closed yamadharma closed 5 years ago

yamadharma commented 5 years ago

After compiling from git

cadabra2 is starting normally in terminal

cadabra2-gtk is crasshing with:

terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  SystemError: <built-in method __contains__ of dict object at 0x7f6c46959480> returned a result with an error set
terminate called after throwing an instance of 'std::logic_error'
  what():  Failed to read port from server.
Aborted

cadabra-server is crashing with:

terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  SystemError: <built-in method __contains__ of dict object at 0x7f35e9f3f480> returned a result with an error set
Aborted
kpeeters commented 5 years ago

On which platform/distro?

yamadharma commented 5 years ago

linux gentoo python-3.5 python-3.6

yamadharma commented 5 years ago

cadabra2-2.2.0 works without problems.

kpeeters commented 5 years ago

What happens if you just run

 cadabra-server

from the command line?

yamadharma commented 5 years ago
terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  SystemError: <built-in method __contains__ of dict object at 0x7f35e9f3f480> returned a result with an error set
Aborted
yamadharma commented 5 years ago

Can confirm the same problem on manjaro using aur cadabra2-git package.

kpeeters commented 5 years ago

It's unfortunately a fairly generic error message so I'll need to get one of these distros installed somewhere.

yamadharma commented 5 years ago

After commit https://github.com/kpeeters/cadabra2/commit/3b121a977977838e40113181fbc4d41dad273a51 it's work for me.

kpeeters commented 5 years ago

Ah, thanks. That commit was meant to fix an issue on macOS, but since it involved some pybind simplifications I was hoping this would perhaps also solve the issue you reported. Forgot to ask you to re-test. Very good, will close the issue.