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

no config dir, linux #9

Closed
superuben opened this issue Dec 4, 2023 · 3 comments
Closed

no config dir, linux #9

superuben opened this issue Dec 4, 2023 · 3 comments

Comments

@superuben
Copy link

superuben commented Dec 4, 2023

cant find the config directory (using linux). also in the installation instructions you use cd taskweaver, but its actually being extracted into the directory TaskWeaver
tw

also had to install 2 extra modules. now im stuck here:

pip install injector
pip install ijson

python -m taskweaver -p ./project/
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/user/TaskWeaver/taskweaver/main.py", line 1, in
from .cli import main
File "/home/user/TaskWeaver/taskweaver/cli/main.py", line 1, in
from .cli import taskweaver
File "/home/user/TaskWeaver/taskweaver/cli/cli.py", line 3, in
from ..app import TaskWeaverApp
File "/home/user/TaskWeaver/taskweaver/app/init.py", line 1, in
from .app import TaskWeaverApp
File "/home/user/TaskWeaver/taskweaver/app/app.py", line 12, in
from taskweaver.session.session import Session
File "/home/user/TaskWeaver/taskweaver/session/init.py", line 1, in
from .session import Session
File "/home/user/TaskWeaver/taskweaver/session/session.py", line 7, in
from taskweaver.code_interpreter import CodeInterpreter
File "/home/user/TaskWeaver/taskweaver/code_interpreter/init.py", line 1, in
from .code_interpreter import CodeInterpreter
File "/home/user/TaskWeaver/taskweaver/code_interpreter/code_interpreter.py", line 6, in
from taskweaver.code_interpreter.code_generator import (
File "/home/user/TaskWeaver/taskweaver/code_interpreter/code_generator/init.py", line 1, in
from .code_generator import CodeGenerator, CodeGeneratorConfig, format_code_revision_message
File "/home/user/TaskWeaver/taskweaver/code_interpreter/code_generator/code_generator.py", line 8, in
from taskweaver.llm import LLMApi
File "/home/user/TaskWeaver/taskweaver/llm/init.py", line 6, in
from openai import AzureOpenAI, OpenAI
ImportError: cannot import name 'AzureOpenAI' from 'openai' (/home/user/.venv/lib/python3.11/site-packages/openai/init.py)

pip freeze: openai==0.28.1

@liqul
Copy link
Contributor

liqul commented Dec 4, 2023

Hi @superuben, thanks for reporting this issue. The configuration file taskweaver_config.json is now under the project folder. We will update the doc accordingly.

About the 2 extra modules. Please check if you can see them in the requirements.txt file. We actually included them there.

For the error you were getting stuck in, we note that the openai lib had a major version upgrade (now 1.xx) last month that makes the api incompatible with the older versions now (0.xx). You can find similar issues here.

@superuben
Copy link
Author

ow i just added the openai issue also. or you want it in a separate issue?

@liqul
Copy link
Contributor

liqul commented Dec 4, 2023

not a problem.

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