Site Scene

Posts Tagged ‘easy_install’

Creating & distributing a new Plone/PyPI product

It’s amazing to see how technologies can be so smoothly integrated these days.  I’m talking, at least in this instance, about how setuptools works with PyPI (and then Plone.org’s Products section) and allows you to distribute your product(s) to the world.  So far, I’ve just got the one — collective.portlet.googleapps — but I’m sure time will pass and I’ll have some more useful things to contribute. (more…)

Virtualenv, Plone, and Centos 5.x

EDIT: Watch out for python-ldap 2.3.10, the latest version at time of writing. Seems like there’s an issue with it and Centos 5.4. Forcing python-ldap to be version 2.3.8 works, though. (easy_install python-ldap==2.3.8)

Previously, you might have read about setting up a Virtualenv on Ubuntu Jaunty. Now, that was reasonably painless since python-virtualenv and python-setuptools is in the Ubuntu repo. Whether it’s my Centos servers and their misguided repos or me just not being able to find such a related rpm packages, Centos just needs little more love to get it to the same setup. (Note: actually, there was a setuptools RPM that I installed, but nfi why it didn’t give me easy_install…) (more…)

Buildout and Version Problems

Two blog entries in one day – wow it’s been a good work day.

Just a quick chronicle of my thoughts: version conflicts in buildout aren’t always pretty. My latest escapade into trying to load up Varnish through zc.buildout resulted in a hair-tearing out message:

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File “/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py”, line 1477, in main
File “/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py”, line 346, in install
File “/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py”, line 857, in getitem
File “/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py”, line 938, in _initialize
File “/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py”, line 901, in _install_and_load
File “/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py”, line 277, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py”, line 2179, in load_entry_point
raise ImportError(“Entry point %r not found” % ((group,name),))
ImportError: Entry point (‘zc.buildout’, ‘default’) not found

What??? What’s that supposed to mean?

Turns out I managed to stumble upon the cause: our local PyPi repository had actually already had an old version of the plone.recipe.varnish source on it and my buildout needed the latest version. Even though I’d directed buildout to seek out such version, my cache folder already thought it was satisfied.

Solution

Remove the old version from the cache and stick the new version into the local PyPi.