sockysec / Telerecon

A reconnaissance framework for researching and investigating Telegram.
815 stars 116 forks source link

partially initialized module 'selectors' #9

Closed nocomp closed 7 months ago

nocomp commented 7 months ago

hi i wanted to give it a spin, all install was bug free, but when launching it, it seems i have an issue regarding selectors. any help would be appreciated. thxx a lot

└─$ python3 launcher.py Traceback (most recent call last): File "/home/nocomp/tools/osint/Telerecon/launcher.py", line 1, in import asyncio File "/usr/lib/python3.11/asyncio/init.py", line 8, in from .base_events import * File "/usr/lib/python3.11/asyncio/base_events.py", line 23, in import socket File "/usr/lib/python3.11/socket.py", line 54, in import os, sys, io, selectors File "/home/nocomp/tools/osint/Telerecon/selectors.py", line 5, in import pandas as pd File "/usr/lib/python3/dist-packages/pandas/init.py", line 7, in if 'mips' in platform.uname()[4]:


  File "/usr/lib/python3.11/platform.py", line 813, in __getitem__
    return tuple(self)[key]
           ^^^^^^^^^^^
  File "/usr/lib/python3.11/platform.py", line 799, in __iter__
    (self.processor,)
     ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/functools.py", line 1001, in __get__
    val = self.func(instance)
          ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/platform.py", line 794, in processor
    return _unknown_as_blank(_Processor.get())
                             ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/platform.py", line 739, in get
    return func() or ''
           ^^^^^^
  File "/usr/lib/python3.11/platform.py", line 758, in from_subprocess
    import subprocess
  File "/usr/lib/python3.11/subprocess.py", line 245, in <module>
    _PopenSelector = selectors.SelectSelector
                     ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'selectors' has no attribute 'SelectSelector' (most likely due to a circular import)
ArrowSyam commented 7 months ago

same for me 😥

deepserket commented 7 months ago

The file parse.py was renamed into selectors.py and it collides with the built in selectors module

deepserket commented 7 months ago

I've published a fix into my profile, check if it works: https://github.com/deepserket/Telerecon

NeonBubbles commented 7 months ago
  1. Rename the selectors.py in the directory; for example, selectorss.py or selector.py
  2. open the launcher.py in any IDE or Notepad.
  3. Change 'selectors.py' to the new name in line 86 ('Parse user messages to extract selectors/intel': 'selectorss.py') or ('Parse user messages to extract selectors/intel': 'selector.py')
sockysec commented 7 months ago

Apologies for the slow response, I've been offline over the past week. I have published @deepserket's solution to the issue. This should now be resolved.