Open laundmo opened 5 years ago
Thank you for your report.
Probably the error caused by your locale setting. Your code and the example works fine with my environment (English locale). Please try to set your locale to English and re-execute.
how do i set the locale? ivr tried all things i can think of, i even made a SuperUser thread asking, but nothing seems to work @thombashi
chcp 437
would change the locale to English for my Windows environment.
I am not so sure why that not works for your environment.
How about chcp 65001
(UTF-8)?
nope! still german..
Thank you for confirmation.
I might possible to add German support in the future if you kindly provide me the following ping
results:
Text version of your screenshot would be enough.
Like the below, a ping result for an unknown destination:
Pinging 192.168.207.100 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.207.100:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Microsoft Windows [Version 10.0.17134.706]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>ping 1.1.1.1
Ping wird ausgeführt für 1.1.1.1 mit 32 Bytes Daten:
Antwort von 1.1.1.1: Bytes=32 Zeit=12ms TTL=59
Antwort von 1.1.1.1: Bytes=32 Zeit=12ms TTL=59
Antwort von 1.1.1.1: Bytes=32 Zeit=12ms TTL=59
Antwort von 1.1.1.1: Bytes=32 Zeit=12ms TTL=59
Ping-Statistik für 1.1.1.1:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 12ms, Maximum = 12ms, Mittelwert = 12ms
C:\WINDOWS\system32>
Microsoft Windows [Version 10.0.17134.706]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>ping 1.1.1.1
Ping wird ausgeführt für 1.1.1.1 mit 32 Bytes Daten:
Zeitüberschreitung der Anforderung.
Antwort von 192.168.178.1: Zielnetz nicht erreichbar.
Zeitüberschreitung der Anforderung.
Zeitüberschreitung der Anforderung.
Ping-Statistik für 1.1.1.1:
Pakete: Gesendet = 4, Empfangen = 1, Verloren = 3
(75% Verlust),
C:\WINDOWS\system32>
the failure was mostly timeout but in between there was a response with the message that the host couldn't be reached
Thank you for your information. The enhancement might take some time.
any new information about german implemantation?
This hasn't progressed much
Running into the same problem (also on a German Windows machine), I spent some time in the debugger to find the root of the problem, thinking it might be an easy fix. Here are some observations:
mbstrdecoder
falsely assuming that the output of the ping command ist "utf-16". If __CODECS
is modified so that "cp850" is above "utf-16", the conversion works as needed.chcp
command (in my case, it returns Aktive Codepage: 850.
). That's where I stopped and decided that for my purposes, a language agnostic ping library like ping3 or icmplib better fit the bill.
hey there, im using a slightly modified version of the example library code
my code:
and im getting a really weird result and then a NoneType error when trying to use the json.dumps....
mind you, i get the same error when running the exact example from https://pingparsing.readthedocs.io/en/latest/pages/usage/library.html#execute-ping-and-parse-the-result