Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.52k stars 2.09k forks source link

AttributeError: module 'collections' has no attribute 'Callable' #402

Open HYME60 opened 2 years ago

HYME60 commented 2 years ago

Traceback (most recent call last): File "C:\Users-----\Desktop\Osintgram-master\main.py", line 102, in pyreadline.Readline().parse_and_bind("tab: complete") File "C:\Users-----\AppData\Local\Programs\Python\Python310\lib\site-packages\pyreadline\rlmain.py", line 422, in init BaseReadline.init(self) File "C:\Users-----\AppData\Local\Programs\Python\Python310\lib\site-packages\pyreadline\rlmain.py", line 62, in init mode.init_editing_mode(None) File "C:\Users-----\AppData\Local\Programs\Python\Python310\lib\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode self._bind_key('space', self.self_insert) File "C:\Users-----\AppData\Local\Programs\Python\Python310\lib\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key if not callable(func): File "C:\Users-----\AppData\Local\Programs\Python\Python310\lib\site-packages\pyreadline\py3k_compat.py", line 8, in callable return isinstance(x, collections.Callable) AttributeError: module 'collections' has no attribute 'Callable'


im using windows 10 my python is 3.10

Leshiy010 commented 2 years ago

same errors

vidgix commented 2 years ago

me to

kruskgz commented 2 years ago

Igualmente porque sera?

TvSSorA commented 2 years ago

apparently in python 3.10, Callable is now part of collections.abc, so opening py3k_compat.py and replace collections.Callable with collections.abc.Callable should work

archiebaldw commented 2 years ago

apparently in python 3.10, Callable is now part of collections.abc, so opening py3k_compat.py and replace collections.Callable with collections.abc.Callable should work

Hi there! I've done as you have written and when I run the command, nothing happens at all. What can be done in this case?

blinkyy05 commented 2 years ago

have you fixed it because same

halomanlodestar commented 2 years ago

Installing python 3.8 and installing all modules using pip3.8 fixes this problem for me..

Fahd64x commented 1 year ago

Hi there! I've done as you have written and when I run the command, nothing happens at all. What can be done in this case?

Same

Welding-Torch commented 8 months ago

apparently in python 3.10, Callable is now part of collections.abc, so opening py3k_compat.py and replace collections.Callable with collections.abc.Callable should work

@TvSSorA

Changing Line 5 from import collections

to import collections.abc.Callable

gives the following error

Traceback (most recent call last):
  File "C:\Users\bhati\Documents\GitHub\Osintgram\main.py", line 16, in <module>
    import pyreadline
  File "C:\Users\bhati\Documents\GitHub\Osintgram\venv\lib\site-packages\pyreadline\__init__.py", line 11, in <module>
    from . import unicode_helper
  File "C:\Users\bhati\Documents\GitHub\Osintgram\venv\lib\site-packages\pyreadline\unicode_helper.py", line 10, in <module>
    from .py3k_compat import unicode, bytes
  File "C:\Users\bhati\Documents\GitHub\Osintgram\venv\lib\site-packages\pyreadline\py3k_compat.py", line 5, in <module>
    import collections.abc.Callable
ModuleNotFoundError: No module named 'collections.abc.Callable'; 'collections.abc' is not a package