Open ImHaashim opened 1 year ago
Go to "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\py3k_compat.py"
And edit py3k_compat.py file
Change the "import Collections" to "import collections.abc" in Line 5
Go to "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\py3k_compat.py"
And edit py3k_compat.py file
Change the "import Collections" to "import collections.abc" in Line 5
@corehandler Unfortunately, even after making the change on Line 5 I'm getting the same error.
Issue #402 deals with the same problem and I have made a comment there as well that a similar fix does not work.
I have tried changing the python version to 3.9, as suggested by this comment.
I typed in py -0p
to list the installed versions of python.
Then I got Python 3.9 from the Microsoft Store.
Then I created a venv for Python 3.9 using py -3.9 -m venv test_env_3.9
cd test_env_3.9
I ran activate.bat
inside the Scripts folder.
I installed the requirements using pip install -r requirements.txt
.
I tried running it, and it failed. It simply said 'Attempt to login...' and then nothing happened.
(test_env_3.9) C:\Users\bhati\Documents\GitHub\Osintgram>python main.py davidbombal
Attempt to login...
(test_env_3.9) C:\Users\bhati\Documents\GitHub\Osintgram>python main.py davidbombal
So, no solution found as of yet.
I have tried more fixes, as I've written in this comment.
Still, no solution found as of yet.
Has anyone else got this error? after I try to run a test instagram account it gives me this error:
Traceback (most recent call last): File "C:\Users\haash\Osintgram\main.py", line 102, in
pyreadline.Readline().parse_and_bind("tab: complete")
File "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\rlmain.py", line 422, in init
BaseReadline.init(self)
File "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\rlmain.py", line 62, in init
mode.init_editing_mode(None)
File "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode
self._bind_key('space', self.self_insert)
File "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key
if not callable(func):
File "C:\Users\haash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pyreadline\py3k_compat.py", line 8, in callable
return isinstance(x, collections.Callable)
AttributeError: module 'collections' has no attribute 'Callable'
Anyone know how to fix this?