csp icon indicating copy to clipboard operation
csp copied to clipboard

Cannot define csp nodes/graphs in raw python interpreter

Open timkpaine opened this issue 1 year ago • 0 comments

reported in https://github.com/Point72/csp/issues/88#issuecomment-1959057012

Python 3.8.10 | packaged by conda-forge | (default, Sep 13 2021, 21:46:58)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import csp
>>> import pandas
>>> from datetime import datetime
>>> @csp.graph
... def foo(x: pandas.DataFrame):
...   pass
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/csp/csp/impl/wiring/graph.py", line 393, in graph
    return _impl(func)
  File "/csp/csp/impl/error_handling.py", line 37, in __exit__
    raise exc_val.with_traceback(new_tb)
OSError: could not get source code
>>>

timkpaine avatar Mar 30 '24 14:03 timkpaine