microsoft / TaskWeaver

A code-first agent framework for seamlessly planning and executing data analytics tasks.
https://microsoft.github.io/TaskWeaver/
MIT License
5.27k stars 663 forks source link

Difficulty adding python modules #84

Closed dcieslak19973 closed 9 months ago

dcieslak19973 commented 9 months ago

Describe the bug When I instruct TaskWeaver to use yahooquery to pull stock prices in the Playground UI running in a docker container, it is unable to reliably do so

To Reproduce Steps to reproduce the behavior:

  1. Start the Playground web UI
  2. Type the user query "Use yahooquery to get the last 1 year of closing prices for NVIDIA. Plot a chart of the closing prices"
  3. Wait for the response
  4. Type the user query "It appears that the 'yahooquery' module is not persisting in the environment despite the reinstallation attempt. This could be due to the execution environment's restrictions, which may not allow permanent installations of new packages, or the environment may reset after each execution."
  5. See error

Expected behavior Telling TaskWeaver directly to install yahooquery via prompt does succeed. However, subsequent interactions requiring the module fail. For some reason, yfinance works

Screenshots If applicable, add screenshots to help explain your problem.

Environment Information (please complete the following information):

Additional context Running this inside a Docker container in a k8s cluster.

dcieslak19973 commented 9 months ago

Turns out it was a user error on my part....