Code Monkey home page Code Monkey logo

Comments (3)

DannyCork avatar DannyCork commented on May 25, 2024

Well spotted. This is an issue with python 2.x.
As you pointed out, I have added a fix for this 11fb18d

Please
pull master
or
$ pip install --upgrade whois
and verify the fix.

from python-whois.

Nilsbijlsma avatar Nilsbijlsma commented on May 25, 2024

Ah yes, I should've added that I was using Python 2.7.13
However, when running the same code as before I'm now getting the following traceback:

`
Python 2.7.13 (default, Nov 23 2017, 15:37:09)
[GCC 6.3.0 20170406] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import whois
domain = whois.query('google.com')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/whois/init.py", line 61, in query
pd = do_parse(do_query(d, force, cache_file, slow_down, ignore_returncode), tld)
File "/usr/local/lib/python2.7/dist-packages/whois/_1_query.py", line 46, in do_query
_do_whois_query(dl, ignore_returncode),
File "/usr/local/lib/python2.7/dist-packages/whois/_1_query.py", line 60, in _do_whois_query
p = subprocess.Popen(['whois', '.'.join(dl)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
`

I went through the listed files and they all seem to be present in those specific directories.

from python-whois.

DannyCork avatar DannyCork commented on May 25, 2024

Python 2 not supported.

from python-whois.

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.