Rob Bednark
Rob Bednark

Reputation: 28212

Why does "pip install Plone" fail with "KeyError: 'z3c'"?

$ pip install Plone

installed a lot of packages but then aborted with this error:

 File "/Users/rob/.virtualenvs/plone/bin/../lib/python2.7/site.py", line 172, in addpackage
    exec(line)
  File "string>", line 1, in <module>
KeyError: 'z3c'

Upvotes: 2

Views: 629

Answers (3)

Tom
Tom

Reputation: 634

If you want to install Plone with pip try plock.

Upvotes: 1

zupo
zupo

Reputation: 1556

The problem was likely in z3c.objpath 1.0 which did not have namespace declaration. Fixed and released in z3c.objpath 1.1.

(I had the same error when trying to build Plone docs on RTD via pip.)

Upvotes: 3

Rob Bednark
Rob Bednark

Reputation: 28212

Plone does not support installation via pip, even though it can be found as a Python package with pip search Plone.

I found this out by asking this question on the #plone IRC channel.

Per @SteveM's comment, easy_install and setup_tools just can't deal with all the known-good-set issues for an application with as many dependencies as Plone. That's what buildout is good for.

References:
Full trace of error
Reasons why it fails

Upvotes: 4

Related Questions