Giter VIP home page Giter VIP logo

Comments (14)

tissole avatar tissole commented on August 26, 2024 1

My config https://del.dog/rughackegy.txt
Log https://del.dog/vacyllanar.txt
Messages in source https://i.imgur.com/IyZEEsT.png
Messages in destination https://i.imgur.com/Zf9LDwI.png
I think you solved this issue.

By the way, the shell is more colorful now, even the errors look nice :)

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

Which OS and which version of python are you using @cat157 ? This issue may be related with #205

I could not reproduce this problem in Linux.

from tgcf.

ZilbergSP avatar ZilbergSP commented on August 26, 2024

Interesting ... I changed the server to digital ocean and everything works. I am sorry to bother you.
OS was Ubuntu 20.04 lts, โ€‹โ€‹digital ocean is the same.

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

I know this will work on Linux. But initially did in fail on Windows ? This is an important issue for windows users.

What was the os, in which the error occurred. I need to find the reason.

from tgcf.

tissole avatar tissole commented on August 26, 2024

I can confirm this issue on Windows 10 running tgcf 0.2.5.post0. Here is the log:

Traceback (most recent call last):
File "D:\TeleGram\tgcf.venv\Scripts\tgcf", line 5, in
app()
File "D:\TeleGram\tgcf.venv\lib\site-packages\typer\main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "D:\TeleGram\tgcf.venv\lib\site-packages\typer\main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "D:\TeleGram\tgcf\tgcf\cli.py", line 89, in main
from tgcf.past import forward_job # pylint: disable=import-outside-toplevel
File "D:\TeleGram\tgcf\tgcf\past.py", line 16, in
from tgcf import config
File "D:\TeleGram\tgcf\tgcf\config.py", line 149, in
CONFIG = read_config()
File "D:\TeleGram\tgcf\tgcf\config.py", line 96, in read_config
config_dict = yaml.full_load(file)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml_init_.py", line 142, in full_load
return load(stream, FullLoader)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml_init_.py", line 112, in load
loader = Loader(stream)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\loader.py", line 24, in init
Reader.init(self, stream)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
File "C:\Users\kms\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 255: character maps to

from tgcf.

ZilbergSP avatar ZilbergSP commented on August 26, 2024

I know this will work on Linux. But initially did in fail on Windows ? This is an important issue for windows users.

What was the os, in which the error occurred. I need to find the reason.

The previous one was also Ubuntu. Current - Ubuntu, only now on digital ocean. This surprised me.
I will try to run on Windows for the test today.

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

The previous one was also Ubuntu 20.04

My computer also has ubuntu. But I did not face any issue. May be some dependency related to yaml was missing in your computer.

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

I can confirm this issue on Windows 10 running tgcf 0.2.5.post0. Here is the log:

Hi @tissole where is the remaining log. The last line seems incomplete.

from tgcf.

tissole avatar tissole commented on August 26, 2024

Sorry! This is the last line

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 255: character maps to <undefined>

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

hi @tissole , try again with the latest version of tgcf. and show me your configuration file and full logs. Use pastebin https://del.dog/ for sharing large texts.

run tgcf --loud live, use emojis, and other weird characters in the yaml file.

from tgcf.

tissole avatar tissole commented on August 26, 2024

My config https://del.dog/erimilytuc.txt
Log after running tgcf --loud live https://del.dog/gixexaroca.txt
I deleted line 19 from config and the error was the same https://del.dog/lugestehob.txt
Then I replaced line 18 (Russian characters with the former line 19 (Japanese characters).
Log https://del.dog/orevollina.txt Only line 198 was changed.

Finally, I deleted line 18, and I kept only the first 17 lines in config. There was no error and I could forward messages to the source channel. The messages in source https://i.imgur.com/vgHwGYF.png
In the destination https://i.imgur.com/314Gf71.png
Log https://del.dog/ygrefighin.txt

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

thanks a lot, @tissole for the logs. The new logs are much easier to read.

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

hi @tissole, install the latest unreleased tgcf from source and try with the same config.

from tgcf.

aahnik avatar aahnik commented on August 26, 2024

hi @cat157 this error is now solved. From v0.2.8 onwards

click here Update to the latest version

from tgcf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.