I got 
python-whois==0.2 installed via pip.
Yes, on all three interpreters I did import whois.

I'm not in a virtualenv, with all 3 interpreters I got:

>>> import whois
>>> print whois
<module 'whois' from 
'/usr/local/lib/python2.7/dist-packages/whois/__init__.pyc'>


My pip version is made by Chris Wolf, debian one by Francois Marier.
I installed that one because I liked it, not really important,
I can change, but now I'm curios about that issue...

Empty results maybe depend on server used,
some of them do not give that field.

I think that whois looks for some nearby server.
You could try some other domains and see if some
produce results.


Il giorno mercoledì 29 maggio 2013 12:54:10 UTC+2, marienz ha scritto:
>
> On Wed, May 29, 2013 at 8:15 PM, Antonio Mignolli 
> <[email protected] <javascript:>> wrote: 
> > Hi people, is it possible something's wrong with type() function? 
> > 
> > I'm running bpython 0.11-1 (debian package). 
> > 
> > I was using the python-whois module. 
>
> Using Debian wheezy I get python-whois-0.6.4-2, which is apparently 
> slightly different from your python-whois: it has no whois.whois 
> function, but a presumably similar whois.query function. I don't see 
> the problem you see with that one: w.expiration_date is a datetime 
> using both interpreters. 
>
> Can you reveal which version of python-whois you're using, and confirm 
> it's imported from the same place in both interpreters (print "whois" 
> (the module) in both, it'll include the path)? I'm ignoring IPython, 
> but bpython and plain old python should normally do the same thing 
> here. 
>
> Thanks! 
>
> -- 
> Marien Zwart (marienz on freenode). 
>

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bpython?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to