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

Taskweaver can't run a plugin that uses pyodbc #361

Closed
pfekrati opened this issue Jun 13, 2024 · 1 comment
Closed

Taskweaver can't run a plugin that uses pyodbc #361

pfekrati opened this issue Jun 13, 2024 · 1 comment

Comments

@pfekrati
Copy link

Describe the bug
I've created a plugin that uses pyodbc to get data from a SQL database. When Taskweaver tries to use the plugin it always returns an error message saying ModuleNotFoundError: No module named 'pyodbc'

To Reproduce
Steps to reproduce the behavior:

  1. create a plugin that uses pydobd and register it
  2. prompt anything that triggers the usage of that plugin

Expected behavior
I'm sure the code works fine because I tested it outside of Taskweaver plugin and I'm sure the pyodbc is installed

Screenshots
image

image

Environment Information (please complete the following information):

  • OS: Windows 11
  • Python Version: tested with both 3.9 and 3.11
  • LLM that you're using: GPT4o

Additional context
The execution of the generated python code above has failed

During execution, the following messages were logged:
Traceback (most recent call last):

Cell In[5], line 2
import pyodbc

ModuleNotFoundError: No module named 'pyodbc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

Cell In[5], line 5
import pyodbc

ModuleNotFoundError: No module named 'pyodbc'

Requirement already satisfied: pyodbc in /home/taskweaver/.local/lib/python3.10/site-packages (5.1.0)

@liqul
Copy link
Contributor

liqul commented Jun 14, 2024

Check my answer here #360

@liqul liqul closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants