Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot define csp nodes/graphs in raw python interpreter #177

Open
timkpaine opened this issue Mar 30, 2024 · 0 comments · May be fixed by #178
Open

Cannot define csp nodes/graphs in raw python interpreter #177

timkpaine opened this issue Mar 30, 2024 · 0 comments · May be fixed by #178
Labels
type: bug Concrete, reproducible bugs

Comments

@timkpaine
Copy link
Member

reported in #88 (comment)

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 timkpaine added the type: bug Concrete, reproducible bugs label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant