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

not running #4

Open
BodaTomato opened this issue Oct 12, 2022 · 1 comment
Open

not running #4

BodaTomato opened this issue Oct 12, 2022 · 1 comment

Comments

@BodaTomato
Copy link

Traceback (most recent call last):
File "Desktop/tools/OSINT/social/instahunter/src/main.py", line 3, in
from lib.io import display_header, get_input, create_json_file, display_data, display_message
File "/home/boda/Desktop/tools/OSINT/social/instahunter/src/lib/io.py", line 3, in
from PyInquirer import prompt
File "/usr/local/lib/python3.10/dist-packages/PyInquirer-1.0.3-py3.10.egg/PyInquirer/init.py", line 6, in
from prompt_toolkit.token import Token
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/init.py", line 16, in
from .interface import CommandLineInterface
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/interface.py", line 19, in
from .application import Application, AbortAction
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/application.py", line 8, in
from .key_binding.bindings.basic import load_basic_bindings
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/key_binding/bindings/basic.py", line 9, in
from prompt_toolkit.renderer import HeightIsUnknownError
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/renderer.py", line 11, in
from prompt_toolkit.styles import Style
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/styles/init.py", line 8, in
from .from_dict import *
File "/usr/local/lib/python3.10/dist-packages/prompt_toolkit/styles/from_dict.py", line 9, in
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

@mrofcodyx
Copy link

resolved:

  1. pip3 install --upgrade prompt_toolkit PyInquirer

  2. nano /usr/local/lib/python3.10/dist-packages/prompt_toolkit/styles/from_dict.py
    and replace: "from collections import Mapping"
    With: "from collections.abc import Mapping"

  3. Save the file and try running your script again.
    image

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

2 participants