Skip to content

Default to showing a traceback in reticulate #166

@falexwolf

Description

@falexwolf

I'm running a script remotely and the only error message I get is this.

$ Rscript test-docs/r-quickstart.R
→ connected lamindb: testuser1/test-docs
→ created Transform('tCHiOO2SZuHZ0000'), started new Run('UwCb0kAm...') at [20](https://github.com/laminlabs/laminr/actions/runs/14087099520/job/39453936522#step:13:21)25-03-27 07:21:48 UTC
Error in py_call_impl(callable, call_args$unnamed, call_args$named) : 
  TypeError: unsupported operand type(s) for -: 'set' and 'dict'
Run `reticulate::py_last_error()` for details.
Calls: <Anonymous> ... unwrap_args_and_call -> do.call -> <Anonymous> -> py_call_impl
Execution halted
Error: Process compl

I can't debug based on it and so I have to manually add this:

library(reticulate)
options(reticulate.traceback = TRUE)

Should we have this as the default behavior? It'd make it faster to debug; in particular if inexperienced users would report something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions