TypeError: 'type' object is not subscriptable
Question
I have deployed a bot, using g4f library. It works on my pc, but doesn't work here. How can I solve the problem? The following is what is written in logs.
File "gpt_bot.py", line 1, in
import g4f
File "/opt/venv/lib/python3.8/site-packages/g4f/init.py", line 6, in
from .models import Model, ModelUtils, _all_models
File "/opt/venv/lib/python3.8/site-packages/g4f/models.py", line 3, in
from .Provider import RetryProvider, ProviderType
File "/opt/venv/lib/python3.8/site-packages/g4f/Provider/init.py", line 3, in
from ..base_provider import BaseProvider, ProviderType
File "/opt/venv/lib/python3.8/site-packages/g4f/base_provider.py", line 39, in
class BaseRetryProvider(BaseProvider):
File "/opt/venv/lib/python3.8/site-packages/g4f/base_provider.py", line 45, in BaseRetryProvider
providers: list[type[BaseProvider]],
TypeError: 'type' object is not subscriptable
5 Replies
Project ID:
0b20afb8-c9c5-4709-a58d-3998a2bc659a
Looks like eslint errors
mind sending full build logs using this?
https://bookmarklets.up.railway.app/log-downloader/
0b20afb8-c9c5-4709-a58d-3998a2bc659a
its all logs
I don't think it is
are these from deployment logs or build logs?
deployment
its written that g4f works on python 3 so it is supposed to work but it doesnt. Railway uses 3.8, i use 3.10 on pc.