GithubHelp home page GithubHelp logo

Comments (4)

un33k avatar un33k commented on September 26, 2024

Please include your exact Python version.

from django-ipware.

holyoaks avatar holyoaks commented on September 26, 2024

2.7.8

from django-ipware.

un33k avatar un33k commented on September 26, 2024

Please make sure you don't have a socket.py file in the directory where get_real_ip() is being invoked. Other than that, here are some tests you can run on your system:

$ python
Python 2.7.8 (default, Nov 19 2014, 22:13:14)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from socket import inet_pton
>>>

$ python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from socket import inet_pton
>>>

from django-ipware.

holyoaks avatar holyoaks commented on September 26, 2024

This has continued to crop up, and I found a potential solution at kinverarity1/webpy@3706180. I tried to create a pull request but received a 403.

I see that the same code is at line 28 of ipware utils.py;

except socket.error:

I expect making the same change will resolve this issue, as shown below.
except (socket.error, AttributeError):

from django-ipware.

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.