Closed AbhayGhante closed 1 year ago
oof im sorry. it was a misspelling in the docker-compose file. now it should work normally
please apply these changes to your docker-compose file and try again
yet new error log
FileNotFoundError: [Errno 2] No such file or directory: '/config/props.yml'
[nltk_data] Downloading package names to /root/nltk_data...
[nltk_data] Package names is already up-to-date!
Traceback (most recent call last):
File "
Make sure you have all the yml files inside the config directory, it claims props is not there, but it's already on the repo
And there's no updated Dockerfile in your fork
Oh yh, I forgot to remv old docker built image, but still after everything, This error logs
File "/usr/local/lib/python3.11/dist-packages/yaml/parser.py", line 438, in parse_block_mapping_key
raise ParserError("while parsing a block mapping", self.marks[-1],
yaml.parser.ParserError: while parsing a block mapping
in "/config/api.yml", line 6, column 3
expected
Keep the correct indentation in the yml files. Check the other API you added and count the spaces
Keep the correct indentation in the yml files. Check the other API you added and count the spaces
oh oky wait
yeah deployed it successfully. Thanks
the only issue with telegram is that, when the chatgpt gen response with tables or codes it isn't readable
Yeh sorry, it's hard to make telegram interpret well the markdown code while it's editing the message in real time I think. i already tried to only markdown it when it ends the response but it still giving errors, so i disabled the markdown parsing to avoid errors...
Idk how to fix it at the moment
Yeh sorry, it's hard to make telegram interpret well the markdown code while it's editing the message in real time I think. i already tried to only markdown it when it ends the response but it still giving errors, so i disabled the markdown parsing to avoid errors...
Idk how to fix it at the moment
But you did a great job making this compatible to work with custom Api. Thank You
Error logs:
FileNotFoundError: [Errno 2] No such file or directory: '/config/lang.yml' [nltk_data] Downloading package names to /root/nltk_data... [nltk_data] Package names is already up-to-date! Traceback (most recent call last): File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/bot/main.py", line 1, in
from bot.src.start import run_bot
File "/bot/src/start.py", line 13, in
from .handlers import message, voice, ocr_image, document, timeout, error
File "/bot/src/handlers/message.py", line 6, in
from bot.src.utils.gen_utils.phase import ChatGPT
File "/bot/src/utils/gen_utils/phase.py", line 1, in
from bot.src.utils import proxies
File "/bot/src/utils/proxies.py", line 3, in
from bot.src.utils import config, database
File "/bot/src/utils/config.py", line 47, in
with open(config_dir / "lang.yml", 'r') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/config/lang.yml