You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is due to the fact that psutil is included in the tests optional-dependencies only, although it seems like it is needed by the Audit features.
Can you replicate the behavior? If yes, how?
Yes, here is how :
Create a test_pydra_tutorial.py file containing:
# Contents of test_pydra_tutorial.pyfrompydra.markimporttaskfrompydra.utils.messengerimportAuditFlag, PrintMessenger@taskdefadd_var(a: int, b: int) -> {'out': int}:
returna+btask0=add_var(
a=4, b=5,
audit_flags=AuditFlag.RESOURCE# This line causes the error
)
task0()
print(task0.result())
What version of Pydra are you using?
0.23
(Python 3.10.11)
What were you trying to do?
Following the tutorial (commit e1c91e3) for FunctionTask#Using Audit part.
What did you expect will happen?
I expected the provided code to run nicely.
What actually happened?
The error is due to the fact that
psutil
is included in thetests
optional-dependencies only, although it seems like it is needed by theAudit
features.Can you replicate the behavior? If yes, how?
Yes, here is how :
Create a
test_pydra_tutorial.py
file containing:Create a virtualenv and activate it
virtualenv pydra_test_venv source pydra_test_venv/bin/activate
Then inside the virtualenv
The text was updated successfully, but these errors were encountered: