"import scrapy" results in error message

588 views
Skip to first unread message

Rex

unread,
Jan 22, 2009, 8:53:50 PM1/22/09
to scrapy-users
Hi,

I heard about Scrapy, and installed it following the instructions on
the Scrapy site. However, when I type "import scrapy", here's what
happens (on my Vista computer).

Any ideas?

Chris

====
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scrapy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\python25\lib\site-packages\scrapy-0.8-py2.5.egg\scrapy
\__init__.py", line 18, in <module>
from scrapy.patches import monkeypatches
File "c:\python25\lib\site-packages\scrapy-0.8-py2.5.egg\scrapy
\patches\monkeypatches.py", line 7, in <module>
from twisted.web.client import HTTPClientFactory
File "C:\Python25\lib\site-packages\twisted\web\client.py", line 12,
in <module>
from twisted.web import http
File "C:\Python25\lib\site-packages\twisted\web\http.py", line 34,
in <module>
from twisted.internet import interfaces, reactor, protocol,
address
File "C:\Python25\lib\site-packages\twisted\internet\reactor.py",
line 37, in <module>
from twisted.internet import selectreactor
File "C:\Python25\lib\site-packages\twisted\internet
\selectreactor.py", line 21, in <module>
from twisted.internet import posixbase
File "C:\Python25\lib\site-packages\twisted\internet\posixbase.py",
line 25, in <module>
from twisted.internet import tcp, udp
File "C:\Python25\lib\site-packages\twisted\internet\tcp.py", line
78, in <module>
from twisted.internet import defer, base, address
File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line
17, in <module>
from twisted.python import log, failure, lockfile
File "C:\Python25\lib\site-packages\twisted\python\lockfile.py",
line 28, in <module>
from win32api import OpenProcess
ImportError: No module named win32api
>>>

Daniel Graña

unread,
Jan 22, 2009, 10:48:42 PM1/22/09
to scrapy...@googlegroups.com
Hi Rex,

I am not a windows user, but this links may help you:

link of package to install http://sourceforge.net/project/showfiles.php?group_id=78018

that comes from http://starship.python.net/crew/mhammond/win32/Downloads.html

that originallly I found here http://markmail.org/message/wymsngtrjvdrfyhf

hopes that helps!
Dan

Rex

unread,
Jan 23, 2009, 4:43:35 AM1/23/09
to scrapy-users
Thanks, Daniel. I installed that module, and "import scrapy" no longer
gives an error message.

However, when I run:

scrapy-admin.py startproject google

I got the error message "This application has failed to start because
libeay32.dll was not found. Re-installing the application may fix this
problem." I downloaded libeay32.dll here:

http://www.dll-files.com/dllindex/dll-files.shtml?libeay32

And then I placed it in C:\Windows\System32. Then, using scrapy-
admin.py gives me the following error message:

"The procedure entry point ERR_load_RAND_strings could not be located
in the dynamic link library libeay32.dll"

Any advice on what to do from here on out? This looks like an
extremely promising module and I would love to get it working.

By the way, who is behind this project? There seems to be a flurry of
activity behind it, and it's always exciting to see new open source
Python projects spring up with enthusiastic contributors.

On Jan 22, 10:48 pm, Daniel Graña <dan...@gmail.com> wrote:
> Hi Rex,
>
> I am not a windows user, but this links may help you:
>
> link of package to installhttp://sourceforge.net/project/showfiles.php?group_id=78018
>
> that comes fromhttp://starship.python.net/crew/mhammond/win32/Downloads.html
>
> that originallly I found herehttp://markmail.org/message/wymsngtrjvdrfyhf
>
> hopes that helps!
> Dan

Pablo Hoffman

unread,
Jan 23, 2009, 5:33:35 PM1/23/09
to scrapy...@googlegroups.com
On Fri, Jan 23, 2009 at 01:43:35AM -0800, Rex wrote:
> "The procedure entry point ERR_load_RAND_strings could not be located
> in the dynamic link library libeay32.dll"
>
> Any advice on what to do from here on out? This looks like an
> extremely promising module and I would love to get it working.
>
> By the way, who is behind this project? There seems to be a flurry of
> activity behind it, and it's always exciting to see new open source
> Python projects spring up with enthusiastic contributors.

This company: http://insophia.com/

Regarding your problem, I'm afraid I can't help you because I don't have
a Windows machine at hand to reproduce the problem, but there are people
using Scrapy in Windows without any problem (although they use XP, not
Vista).

If you manage to solve it, it'd be great if you could post here how you
did it, so we can add the info to the FAQ.

Cheers,

Pablo.

Reply all
Reply to author
Forward
0 new messages