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

error after uploading to the hosting #2

Open
ghost opened this issue Feb 18, 2023 · 0 comments
Open

error after uploading to the hosting #2

ghost opened this issue Feb 18, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 18, 2023

 File "/root/TelegramAIBot/main.py", line 2, in <module>
    from async_openai import OpenAI, CompletionResponse
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/__init__.py", line 26, in <module>
    from async_openai.schemas.completions import CompletionChoice, CompletionObject, CompletionResponse
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/schemas/__init__.py", line 3, in <module>
    from async_openai.schemas.completions import CompletionChoice, CompletionObject, CompletionResponse
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/schemas/completions.py", line 5, in <module>
    from async_openai.types.resources import BaseResource
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/types/resources.py", line 8, in <module>
    from fileio import File, FileType
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/__init__.py", line 6, in <module>
    from fileio.core.imports import pathlib
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/core/__init__.py", line 3, in <module>
    from fileio.core.imports import pathlib
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/core/imports.py", line 21, in <module>
    from fileio.aiopath.wrap import coro_as_method_coro, func_as_method_coro, to_thread, method_as_method_coro, func_to_async_func
  File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/aiopath/wrap.py", line 12, in <module>
    _pool = futures.ThreadPoolExecutor(max_workers = settings.core.num_workers)
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 144, in __init__
    raise ValueError("max_workers must be greater than 0")
ValueError: max_workers must be greater than 0
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

0 participants