Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'get_dialogs' #3

Open
rgiorgiotech opened this issue Jan 29, 2021 · 6 comments
Open

Comments

@rgiorgiotech
Copy link

Hello, I'm having this issue running the source code via Python3 IDLE installed on macOS. I've replaced YOUR_API_ID_HERE and YOUR_API_HASH_HERE with my API ID and HASH, and the program works well from logging to selecting chats (solo mode) and parameters before starting merging process.
But when it starts it says two errors from Python, they seem syntax error... but I don't really now. I attach a screenshot (don't worry about red warnings, it's Python IDLE) and log.
Thanks.
screenshot
TLMerger-log.log

@ferferga
Copy link
Member

@rgiorgiotech Indeed a conditional error

Can you pull my latest changes and retry, please?

@rgiorgiotech
Copy link
Author

@rgiorgiotech Indeed a conditional error

Can you pull my latest changes and retry, please?

Ok now it says another issue when starting process:

`STARTED! Now copying the conversation in Telegram...

Processing...

INFORMATION: Each 1000 messages, a pause will happen because TLMerger needs to refresh metadata due to Telegram's restrictions.
Although the process might look like it's stuck, don't close or cancel it because you think it's stuck. Whenever an error happens, you will be informed.

You can cancel at any time using CTRL+C keyboard combination.
Traceback (most recent call last):
File "/Users/giorgiomessina/Desktop/TLMerger-1.1/src/TLMerger.py", line 1381, in ExportMessages
Welcmsg = SendMessageClient1(user2,
UnboundLocalError: local variable 'user2' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/giorgiomessina/Desktop/TLMerger-1.1/src/TLMerger.py", line 3603, in
ExportMessages()
File "/Users/giorgiomessina/Desktop/TLMerger-1.1/src/TLMerger.py", line 3383, in ExportMessages
bar.finish()
UnboundLocalError: local variable 'bar' referenced before assignment

`
TLMerger-log.log

@ferferga
Copy link
Member

You sure you installed all the dependencies using pip?

@rgiorgiotech
Copy link
Author

You sure you installed all the dependencies using pip?

Yes of course. I've installed all the dependencies in their specific version you wrote on txt file.

@rgiorgiotech
Copy link
Author

I can try non-solo mode instead... I'll let you know.

@rgiorgiotech
Copy link
Author

Nothing to do. Non-solo mode isn't good for group chats! I'd like to merge two group chats but for this purpose I need the solo-mode.
I really hope you'll fix these issues!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants