Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run scrapy shell after installing iPython #10632

Open
DarkStar1 opened this issue Jun 1, 2017 · 2 comments
Open

Unable to run scrapy shell after installing iPython #10632

DarkStar1 opened this issue Jun 1, 2017 · 2 comments

Comments

@DarkStar1
Copy link

DarkStar1 commented Jun 1, 2017

I am just getting into python because of scrapy and I had been using scrapy shell just fine, then I installed iPython (5.3.0). Since then whenever I try to use scrapy shell i get the following error message:

File "/Users/mydevuser/.virtualenvs/sample/bin/scrapy", line 11, in <module>
    sys.exit(execute())
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/cmdline.py", line 149, in execute
    _run_print_help(parser, _run_command, cmd, args, opts)
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/cmdline.py", line 89, in _run_print_help
    func(*a, **kw)
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/cmdline.py", line 156, in _run_command
    cmd.run(args, opts)
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/commands/shell.py", line 73, in run
    shell.start(url=url, redirect=not opts.no_redirect)
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/shell.py", line 81, in start
    banner=self.vars.pop('banner', ''))
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/utils/console.py", line 82, in start_python_console
    shell(namespace=namespace, banner=banner)
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/scrapy/utils/console.py", line 22, in wrapper
    banner1=banner, user_ns=namespace, config=config)
  File "/Users/mydevuser/.virtualenvs/sample/lib/python3.6/site-packages/traitlets/config/configurable.py", line 423, in instance
    '%s are being created.' % cls.__name__
traitlets.config.configurable.MultipleInstanceError: Multiple incompatible subclass instances of InteractiveShellEmbed are being created.
@Carreau
Copy link
Member

Carreau commented Jun 1, 2017

Well that's likely a scrappy issue. You can't create multiple instance of IPython Shell which you can't do.

That might also be something on your machine (custom configuration ?) as this seem to work fine for me locally.

@DarkStar1
Copy link
Author

@Carreau Thanks. I'll see what the scrappy Forum has to say about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants