guibacellar / TEx

Telegram Monitor
Apache License 2.0
329 stars 47 forks source link

Error: Module is Not Enabled... #18

Closed kalijenner322 closed 1 year ago

kalijenner322 commented 1 year ago

2023-10-06 18:59:21,666 - INFO - [+] telegram_connection_manager.TelegramConnector 2023-10-06 18:59:21,962 - INFO - Authorizing on Telegram... 2023-10-06 18:59:22,292 - INFO - User Authorized on Telegram: True 2023-10-06 18:59:22,292 - INFO - [+] telegram_groups_scrapper.TelegramGroupScrapper 2023-10-06 18:59:22,296 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,296 - INFO - [+] telegram_groups_list.TelegramGroupList 2023-10-06 18:59:22,297 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,297 - INFO - [+] telegram_messages_scrapper.TelegramGroupMessageScrapper 2023-10-06 18:59:22,309 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,309 - INFO - [+] telegram_messages_listener.TelegramGroupMessageListener 2023-10-06 18:59:22,533 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,533 - INFO - [+] telegram_report_generator.telegram_report_sent_telegram.TelegramReportSentViaTelegram 2023-10-06 18:59:22,533 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,534 - INFO - [+] telegram_connection_manager.TelegramDisconnector 2023-10-06 18:59:22,538 - INFO - [+] telegram_report_generator.telegram_html_report_generator.TelegramReportGenerator 2023-10-06 18:59:22,563 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,563 - INFO - [+] telegram_report_generator.telegram_export_text_generator.TelegramExportTextGenerator 2023-10-06 18:59:22,563 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,563 - INFO - [+] telegram_report_generator.telegram_export_file_generator.TelegramExportFileGenerator 2023-10-06 18:59:22,564 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,564 - INFO - [+] telegram_stats_generator.TelegramStatsGenerator 2023-10-06 18:59:22,564 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,564 - INFO - [+] telegram_maintenance.telegram_purge_old_data.TelegramMaintenancePurgeOldData 2023-10-06 18:59:22,565 - INFO - Module is Not Enabled... 2023-10-06 18:59:22,565 - INFO - [*] Executing Termination: 2023-10-06 18:59:22,565 - INFO - [+] state_file_handler.SaveStateFileHandler

What should i do?

guibacellar commented 1 year ago

You do not need to do anything. These are just informational messages from the system.

Any module activates as demand automatically, Don't worry, everything is working properly.

But the message are still confusing....

On next release this will be fixed.

kalijenner322 commented 1 year ago

You do not need to do anything. These are just informational messages from the system.

Any module activates as demand automatically, Don't worry, everything is working properly.

But the message are still confusing....

On next release this will be fixed.

Yup, i just run this command : "python3 -m TEx connect --config /usr/my_TEx_config.config" after installing and get this error. Maybe some problems in libs or dependencies

guibacellar commented 1 year ago

Theres no Error. The 'connect' command just configure the Telegram Connection.

2023-10-06 18:59:21,962 - INFO - Authorizing on Telegram... 2023-10-06 18:59:22,292 - INFO - User Authorized on Telegram: True

Please, try the listen command to get the messages

kalijenner322 commented 1 year ago

look familiar, but we have success GroupMessageListener 2023-10-06 22:49:02,182 - INFO - telegram_messages_listener.py 2023-10-06 22:49:02,182 - INFO - telegram_messages_scrapper.py 2023-10-06 22:49:02,182 - INFO - telegram_report_generator 2023-10-06 22:49:02,182 - INFO - telegram_stats_generator.py 2023-10-06 22:49:02,182 - INFO - [] Executing Initialization: 2023-10-06 22:49:02,182 - INFO - [+] input_args_handler.InputArgsHandler 2023-10-06 22:49:02,193 - INFO - connect = False 2023-10-06 22:49:02,193 - INFO - load_groups = False 2023-10-06 22:49:02,194 - INFO - download_messages = False 2023-10-06 22:49:02,194 - INFO - listen = True 2023-10-06 22:49:02,194 - INFO - config = /usr/my_TEx_config.config 2023-10-06 22:49:02,194 - INFO - ignore_media = False 2023-10-06 22:49:02,195 - INFO - group_id = 2023-10-06 22:49:02,195 - INFO - list_groups = False 2023-10-06 22:49:02,196 - INFO - report = False 2023-10-06 22:49:02,196 - INFO - export_text = False 2023-10-06 22:49:02,196 - INFO - export_file = False 2023-10-06 22:49:02,196 - INFO - sent_report_telegram = False 2023-10-06 22:49:02,196 - INFO - stats = False 2023-10-06 22:49:02,196 - INFO - purge_old_data = False 2023-10-06 22:49:02,196 - INFO - purge_temp_files = False 2023-10-06 22:49:02,196 - INFO - [+] execution_configuration_handler.ExecutionConfigurationHandler 2023-10-06 22:49:02,196 - INFO - [] Loading Execution Configurations: 2023-10-06 22:49:02,197 - INFO - [+] data_structure_handler.DataStructureHandler 2023-10-06 22:49:02,197 - INFO - [+] database_handler.DatabaseHandler 2023-10-06 22:49:02,425 - INFO - [+] temp_file_manager.TempFileManager 2023-10-06 22:49:02,426 - INFO - [+] state_file_handler.LoadStateFileHandler 2023-10-06 22:49:02,455 - INFO - [] Executing Pipeline: 2023-10-06 22:49:02,455 - INFO - [+] telegram_connection_manager.TelegramConnector 2023-10-06 22:49:03,283 - INFO - User Authorized on Telegram: True 2023-10-06 22:49:03,283 - INFO - [+] telegram_groups_scrapper.TelegramGroupScrapper 2023-10-06 22:49:03,286 - INFO - Module is Not Enabled... 2023-10-06 22:49:03,286 - INFO - [+] telegram_groups_list.TelegramGroupList 2023-10-06 22:49:03,287 - INFO - Module is Not Enabled... 2023-10-06 22:49:03,287 - INFO - [+] telegram_messages_scrapper.TelegramGroupMessageScrapper 2023-10-06 22:49:03,291 - INFO - Module is Not Enabled... 2023-10-06 22:49:03,291 - INFO - [+] telegram_messages_listener.TelegramGroupMessageListener 2023-10-06 22:49:03,531 - INFO - Listening Past Messages... 2023-10-06 22:49:03,531 - INFO - Listening New Messages...

guibacellar commented 1 year ago

Works as expected :D

guibacellar commented 1 year ago

The message system was fixed on V0.2.15. Please update your version and try

pip install --upgrade TelegramExplorer
kalijenner322 commented 1 year ago

Hello again. Thank you for very quick replies, you r super cool. But even after upgrade, I have same issue

2023-10-09 10:51:07,903 - INFO -        [+] data_structure_handler.DataStructureHandler
2023-10-09 10:51:07,903 - INFO -        [+] database_handler.DatabaseHandler
2023-10-09 10:51:08,130 - INFO -        [+] temp_file_manager.TempFileManager
2023-10-09 10:51:08,131 - INFO -        [+] state_file_handler.LoadStateFileHandler
2023-10-09 10:51:08,150 - INFO - [*] Executing Pipeline:
2023-10-09 10:51:08,150 - INFO -        [+] telegram_connection_manager.TelegramConnector
2023-10-09 10:51:08,330 - INFO -                Authorizing on Telegram...
2023-10-09 10:51:08,660 - INFO -                User Authorized on Telegram: True
2023-10-09 10:51:08,661 - INFO -        [+] telegram_groups_scrapper.TelegramGroupScrapper
2023-10-09 10:51:08,662 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,662 - INFO -        [+] telegram_groups_list.TelegramGroupList
2023-10-09 10:51:08,663 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,663 - INFO -        [+] telegram_messages_scrapper.TelegramGroupMessageScrapper
2023-10-09 10:51:08,666 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,666 - INFO -        [+] telegram_messages_listener.TelegramGroupMessageListener
2023-10-09 10:51:08,868 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,868 - INFO -        [+] telegram_report_generator.telegram_report_sent_telegram.TelegramReportSentViaTelegram
2023-10-09 10:51:08,870 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,870 - INFO -        [+] telegram_connection_manager.TelegramDisconnector
2023-10-09 10:51:08,872 - INFO -        [+] telegram_report_generator.telegram_html_report_generator.TelegramReportGenerator
2023-10-09 10:51:08,917 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,917 - INFO -        [+] telegram_report_generator.telegram_export_text_generator.TelegramExportTextGenerator
2023-10-09 10:51:08,917 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,917 - INFO -        [+] telegram_report_generator.telegram_export_file_generator.TelegramExportFileGenerator
2023-10-09 10:51:08,918 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,918 - INFO -        [+] telegram_stats_generator.TelegramStatsGenerator
2023-10-09 10:51:08,918 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,918 - INFO -        [+] telegram_maintenance.telegram_purge_old_data.TelegramMaintenancePurgeOldData
2023-10-09 10:51:08,919 - INFO -                Module is Not Enabled...
2023-10-09 10:51:08,919 - INFO - [*] Executing Termination:
2023-10-09 10:51:08,919 - INFO -        [+] state_file_handler.SaveStateFileHandler

I tried to execute this command sudo python3 -m TEx connect --config /usr/my_TEx_config.config

guibacellar commented 1 year ago

Hello

Are you sure you updated the version to the most current one (0.2.15)?

On start of the processing, the code output version information as first line.

image

I'm asking, because the 0.2.15 I change this message to a DEBUG message and your log show the message as INFO.

Thanks ;)

kalijenner322 commented 1 year ago

Hi again. image I dont know what to do. Full message: 2023-10-10 16:18:04,804 - INFO - TEx - Telegram Explorer Version 0.2.15 By: Th3 0bservator

2023-10-10 16:18:04,805 - INFO - [] Loading Configurations: 2023-10-10 16:18:04,806 - INFO - [] Installed Modules: 2023-10-10 16:18:04,806 - INFO - data_structure_handler.py 2023-10-10 16:18:04,806 - INFO - database_handler.py 2023-10-10 16:18:04,806 - INFO - execution_configuration_handler.py 2023-10-10 16:18:04,807 - INFO - telegram_connection_manager.py 2023-10-10 16:18:04,807 - INFO - telegram_groups_list.py 2023-10-10 16:18:04,807 - INFO - telegram_groups_scrapper.py 2023-10-10 16:18:04,807 - INFO - telegram_maintenance 2023-10-10 16:18:04,807 - INFO - telegram_messages_listener.py 2023-10-10 16:18:04,807 - INFO - telegram_messages_scrapper.py 2023-10-10 16:18:04,807 - INFO - telegram_report_generator 2023-10-10 16:18:04,807 - INFO - telegram_stats_generator.py 2023-10-10 16:18:04,807 - INFO - [] Executing Initialization: 2023-10-10 16:18:04,828 - INFO - [+] input_args_handler.InputArgsHandler 2023-10-10 16:18:04,862 - INFO - connect = True 2023-10-10 16:18:04,862 - INFO - config = /usr/my_TEx_config.config 2023-10-10 16:18:04,862 - INFO - load_groups = False 2023-10-10 16:18:04,862 - INFO - download_messages = False 2023-10-10 16:18:04,862 - INFO - listen = False 2023-10-10 16:18:04,862 - INFO - list_groups = False 2023-10-10 16:18:04,862 - INFO - report = False 2023-10-10 16:18:04,862 - INFO - export_text = False 2023-10-10 16:18:04,862 - INFO - export_file = False 2023-10-10 16:18:04,862 - INFO - sent_report_telegram = False 2023-10-10 16:18:04,862 - INFO - stats = False 2023-10-10 16:18:04,862 - INFO - purge_old_data = False 2023-10-10 16:18:04,862 - INFO - purge_temp_files = False 2023-10-10 16:18:04,864 - INFO - [+] execution_configuration_handler.ExecutionConfigurationHandler 2023-10-10 16:18:04,864 - INFO - [] Loading Execution Configurations: 2023-10-10 16:18:06,697 - INFO - [+] database_handler.DatabaseHandler 2023-10-10 16:18:06,846 - INFO - [+] temp_file_manager.TempFileManager 2023-10-10 16:18:06,851 - INFO - [+] state_file_handler.LoadStateFileHandler 2023-10-10 16:18:06,902 - INFO - [] Executing Pipeline: 2023-10-10 16:18:09,057 - INFO - [+] telegram_connection_manager.TelegramConnector 2023-10-10 16:18:09,057 - INFO - Authorizing on Telegram... 2023-10-10 16:18:09,467 - INFO - User Authorized on Telegram: True /home/kali/.local/lib/python3.11/site-packages/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.13) or chardet (5.2.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " 2023-10-10 16:18:11,235 - INFO - [+] telegram_connection_manager.TelegramDisconnector 2023-10-10 16:18:11,376 - INFO - [] Executing Termination: 2023-10-10 16:18:11,376 - INFO - [+] state_file_handler.SaveStateFileHandler

guibacellar commented 1 year ago

Hi. Now looks working properly. This are the expected output for "connect" command. Well, there's a warning message from urllib, but don't worry about that, on next version all dependencies will be updated.

Please, try the listen command to get the messages