IPython not launching on scrapy shell session

249 views
Skip to first unread message

Łukasz Kulbacki

unread,
Jan 13, 2014, 10:47:48 AM1/13/14
to scrapy...@googlegroups.com
Hi everyone!

I've just installed IPython and Scrapy - but whenever I fire up '$ scrapy shell' it uses standard python shell. Is there any option I should override to use IPython instead? The documentation says only that scrapy will choose IPython over standard python shell automatically, which it doesn't.

I've installed Scrapy and dependencies in separate virtualenv, while IPython as global library (recommended Anaconda installer) - nevertheless, I can fire up IPython manually from within virualenvironment with '$ ipython' command.

My configuration (both commands fired from within virtualenv):

'$ pip freeze' output:
SQLAlchemy==0.9.1
Scrapy==0.20.2
Twisted==13.2.0
cssselect==0.9.1
lxml==3.2.5
psycopg2==2.5.2
pyOpenSSL==0.13.1
queuelib==1.1.1
six==1.5.2
w3lib==1.5
wsgiref==0.1.2
zope.interface==4.0.5

'$ ipython --version' output:
1.1.0

I'd appriciate any help!

Łukasz

Rolando Espinoza La Fuente

unread,
Jan 13, 2014, 12:11:34 PM1/13/14
to scrapy...@googlegroups.com
What's the output of "which scrapy"?

It should be a path within your virtualenv root directory.

Did you enabled the global site packages in your virtualenv?

If you are using virtualenvwrapper, you can execute: toggleglobalsitepackages

You should be able to execute without errors (no output): python -c "import IPython"



--
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 scrapy-users...@googlegroups.com.
To post to this group, send email to scrapy...@googlegroups.com.
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages