Does it fails in a fresh project? How/Where are you calling the function?
What's the output of "scrapy version -v"?
Sometimes the crawler import error is due to a "from scrapy.project import
crawler".
Alternatively, I like to use
from IPython import embed; embed()
instead of inspect_response because it gives me access to the current
variables. Although inspect_response gives you the handy shell shortcuts
like view(response).
Rolando
On Fri, Feb 21, 2014 at 7:20 AM, John <[email protected]> wrote:
> Hi Everyone,
>
> I'm trying to debug my scraper and have discovered the inspect_response()
> function which looks quite useful.
>
> However when importing it I get the following exception:
> exceptions.ImportError:
> cannot import name crawler
>
> I have also attempted using inspect_response from the python shell and get
> the same error.
>
> I'm using scrapy 0.22.2. Has anyone else encountered this error? What more
> information can I provide to investigate this?
>
> Cheers,
> John
>
> --
> You received this message because you are subscribed to the Google Groups
> "scrapy-users" 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/scrapy-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" 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/scrapy-users.
For more options, visit https://groups.google.com/groups/opt_out.