Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partially initialized module 'selectors' #9

Closed
nocomp opened this issue Dec 5, 2023 · 5 comments
Closed

partially initialized module 'selectors' #9

nocomp opened this issue Dec 5, 2023 · 5 comments

Comments

@nocomp
Copy link

nocomp commented Dec 5, 2023

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
_PopenSelector = selectors.SelectSelector
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'selectors' has no attribute 'SelectSelector' (most likely due to a circular import)

@ArrowSyam
Copy link

same for me 😥

@deepserket
Copy link
Contributor

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

@deepserket
Copy link
Contributor

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

@NeonBubbles
Copy link
Contributor

NeonBubbles commented Dec 12, 2023

  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
Copy link
Owner

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.

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

No branches or pull requests

5 participants