Muffinresearch Labs by Stuart Colville

Fixing setuptools “TypeError: swig_sources()” error | Comments (0)

Posted in Code on 8th March 2009, 11:44 pm by Stuart

I was trying to update to a newer version of Jinja2 on osx to meet Zine dependencies and I got the following error:

Traceback (most recent call last):
[…snip…]
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py", line 77, in swig_sources
    sources = _build_ext.swig_sources(self, sources) or sources
TypeError: swig_sources() takes exactly 3 arguments (2 given)

From the traceback it became clear that I was using an old version of setuptools.

Running:

$ locate /bin/easy_install
/usr/bin/easy_install
/usr/bin/easy_install-2.5
/usr/local/bin/easy_install
/usr/local/bin/easy_install-2.5

Showed I should be using /usr/local/bin/easy_install; so:
sudo mv /usr/bin/easy_install /usr/bin/easy_install.old

Resolved the problem.

Post Tools

Comments: Add yours







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Using Loggerhead with mod_wsgi|(0)

Here’s a post I wrote over on the Project Fondue Blog about our use of Loggerhead with mod_wsgi under Apache. Loggerhead is the rather nice branch viewer for bazaar branches as used on Launchpad.net.

If you’re not already subscribed to the Project Fondue blog feed then I can recommend it, as there should be some interesting posts coming out of there in the coming months (yes I’m unashamedly biased!).

Ubuntu: Turn off changing workspace with mouse wheel|(1)

I found the changing with the workspace with the mouse wheel really annoying. To disable it go to System => Preferences => CompizConfig (available if the compizconfig-settings-manager package is installed) and uncheck “Viewport Switcher” which is under the “Desktop” heading.

Photos on Flickr

© Copyright 2004-10 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.688s.