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

conda activate does not work as shown in the Python Commands task example #113

Open
shrutimantri opened this issue Mar 2, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@shrutimantri
Copy link
Contributor

Expected Behavior

The examples shown on this page: https://kestra.io/plugins/tasks/io.kestra.plugin.scripts.python.commands should work seamlessly.

Actual Behaviour

The first example with Conda is successful, but does not run "conda activate myCondaEnv" successfully.
The logs have this warning: "/bin/sh: 1: conda: not found" implying the conda command did not work.

Steps To Reproduce

Take the first example on the Commands task page:

id: python_venv
namespace: dev

tasks:
  - id: hello
    type: io.kestra.plugin.scripts.python.Commands
    namespaceFiles:
      enabled: true
    runner: PROCESS
    beforeCommands:
      - conda activate myCondaEnv
    commands:
      - python etl_script.py

And execute the flow.

Environment Information

  • Kestra Version: 0.14.4
  • Plugin version: 0.14.4
  • Operating System (OS / Docker / Kubernetes): Docker
  • Java Version (If not docker): N/A

Example flow

id: python_venv
namespace: dev

tasks:

  • id: hello
    type: io.kestra.plugin.scripts.python.Commands
    namespaceFiles:
    enabled: true
    runner: PROCESS
    beforeCommands:
    • conda activate myCondaEnv
      commands:
    • python etl_script.py
@shrutimantri shrutimantri added the bug Something isn't working label Mar 2, 2024
@anna-geller anna-geller added this to the v0.20.0 milestone Apr 17, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants