Skip to content

Calling statsmodels methods to use in rust #3948

Discussion options

You must be logged in to vote

Sorry for the slow reply 🙈

  1. You can use the .traceback() method on the PyErr error type. That has a .format() method on it to turn it into the kind of Python traceback string you're used to seeing.

  2. Afraid I don't have a good answer for that either. At a guess, the statsmodels package is expecting to be called from Python rather than Rust, and it's triggered an error. f_locals is referring to Python frame objects. Maybe printing the traceback from (1) can give hints.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dannytoomey
Comment options

Answer selected by dannytoomey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants