Giter Site home page Giter Site logo

Comments (12)

jbrendel avatar jbrendel commented on June 26, 2024 3

Thank you for reporting this issue. I'll have a look at it.

from multi-ping.

jbrendel avatar jbrendel commented on June 26, 2024 1

Recently, IPv6 support was added to multi-ping. The issue seems to stem from that. The code works for me as is and the IPPROTO_ICMPV6 symbol is defined for me.

@cleonello and @geokal, since I can't reproduce it here, could you please help me out and run a small test for me? Could you please start a Python shell and import the socket module, then check one attribute value for me?

>>> import socket
>>> socket.has_ipv6

What output do you get?

@geokal, could you please also let me know what version of Ubuntu you are running?

from multi-ping.

mametov avatar mametov commented on June 26, 2024 1

This solves the issue:
Open ...\lib\site-packages\multiping_init_.py
Line 129 where IF starts and delete "if ..... " to the end of the line and the line 130.
image

from multi-ping.

geokal avatar geokal commented on June 26, 2024

Hi, I can confirm the same happens in Ubuntu Linux

from multi-ping.

geokal avatar geokal commented on June 26, 2024

Hi, @jbrendel in my Windows terminal the output of socket.has_ipv6 is equal to true. But again the result after running the python script located in the readme section:
is the same as @cleonello. I will report back on Ubuntu cause I don't have access right now. Thanks again!!

from multi-ping.

alexjacobs08 avatar alexjacobs08 commented on June 26, 2024

Having the same issue on Windows 10 using python 3.5.2

>>> import socket
>>> socket.has_ipv6

returns True

from multi-ping.

mametov avatar mametov commented on June 26, 2024

Hi, I can confirm the same happens on Win 10 Python 3.6.5
socket.has_ipv6 returns True

from multi-ping.

geostar1024 avatar geostar1024 commented on June 26, 2024

@mametov's solution doesn't work for me under python 3.4.3 on Windows XP (nor does replacing socket.IPPROTO_ICMPV6 with the hardcoded value 58). What does work is to comment out the self._sock6... statements on lines 119 and 120 (effectively removing IPv6 from multiping).

Technically, this shouldn't be a problem, given that Microsoft says that IPPROTO_ICMPV6 should be available on Windows XP. Maybe this has something to do with this bug.

from multi-ping.

zachbryant avatar zachbryant commented on June 26, 2024

Can confirm @mametov's workaround on win10 3.6.5, but still hoping for a real solution

from multi-ping.

jbrendel avatar jbrendel commented on June 26, 2024

Hello everyone. Thank you for continuing to follow up on this. My apologies for not checking back earlier.

I have just pushed what I believe is a patch for this. In effect, it checks whether the IPPROTO_ICMPV6 attribute is present in socket or not. And if not then it uses the hardcoded value of 58.

I tested this on Ubuntu 14.04, 16.04 and on Windows 10 and it works (no surprise on the Ubuntus, since they have that value available anyway).

I'm concerned about @geostar1024 report, though, since apparently you tried hardocding 58 and it did not work for you? I really don't know what to say to that. This, as patched right now, seems to work. At least with Python3 on Windows 10.

If everyone could give the current version a go, please, and let me know? I don't want to just close this issue without getting your feedback first.

Thank you again!

from multi-ping.

jbrendel avatar jbrendel commented on June 26, 2024

If this works for everyone, I will mark this issue as closed...

from multi-ping.

geokal avatar geokal commented on June 26, 2024

@jbrendel thanks a lot will check tomorrow!

from multi-ping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.