R
Railway10mo ago
Egorr

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
Percy
Percy10mo ago
Project ID: 0b20afb8-c9c5-4709-a58d-3998a2bc659a
Fragly
Fragly10mo ago
Looks like eslint errors mind sending full build logs using this? https://bookmarklets.up.railway.app/log-downloader/
Egorr
Egorr10mo ago
0b20afb8-c9c5-4709-a58d-3998a2bc659a its all logs
Fragly
Fragly10mo ago
I don't think it is are these from deployment logs or build logs?
Egorr
Egorr10mo ago
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.
Want results from more Discord servers?
Add your server