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

Encoding error while running script #8

Closed
LeKrang opened this issue Apr 6, 2024 · 1 comment
Closed

Encoding error while running script #8

LeKrang opened this issue Apr 6, 2024 · 1 comment

Comments

@LeKrang
Copy link

LeKrang commented Apr 6, 2024

Hello,

First off thank you for providing this tool. 👍

When running the script I get the following encoding error

Traceback (most recent call last):
File "C:\Opsec\Phunter\phunter.py", line 8, in
asyncio.run(parser())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Opsec\Phunter\lib\cli.py", line 87, in parser
await lookup(args.target)
File "C:\Opsec\Phunter\lib\lookup.py", line 48, in lookup
print(f"{WHITE}\U0001f4de Phone number: {BLUE}{phone_number}{WHITE}")
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f4de' in position 19: character maps to

Running : python3 phunter.py -t +1333333333 (example)

It doesn't seem to like the encoding of the printf

@N0rz3
Copy link
Owner

N0rz3 commented Apr 6, 2024

Hello, thank you for notifying me of this error. I've never had it and I don't know how to reproduce it, so I don't know what you could do to fix it. I have two pieces of advice to give you:

  • change virtual environment (test on vm, subsystem, sandbox etc...)
  • test with another terminal (cmder or others...)

@N0rz3 N0rz3 closed this as completed Jun 7, 2024
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