You're viewing a comment by patfla and its responses.

patfla Permalink
November 01, 2012, 03:29

It seems that _socket.pyd doesn't load in 2.7.3

>>> C:\projects\python>python
Python 2.7.3 (default, Jun 11 2012, 17:36:33) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from xgoogle.search import GoogleSearch, SearchError
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "xgoogle\search.py", line 13, in <module>
    import urllib
  File "C:\Python27\Lib\urllib.py", line 26, in <module>
    import socket
  File "C:\Python27\Lib\socket.py", line 47, in <module>
    import _socket
ImportError: DLL load failed: The specified module could not be found.
>>>

And I say that for the following reason:

http://bugs.python.org/issue16119

It seems that Spiros fixed the problem however I've never been in the position of needing a nightly build for python and when I look for one now, I don't find anything.

How does one apply (or even find) patches like that indicated in issue 16119?

Although even if I figure out how to fix this (maybe just back my installation up to 2.7.2) my guess is that from a) a previous Django exercise (that I'm trying to double-check with xgoogle and b) the most recent posts above that google is now able to detect programmatic access and doesn't return any results in order to discourage (prevent) programmatic access.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "antispam_139": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.