[Zope-dev] TIP: Must enable 'new' for FreeBSD Python 1.5.2 port to install PythonMethods

Tom Neff tneff@bigfoot.com
Fri, 18 Feb 2000 15:37:18 -0500


I thought I would pass this on to the assembled geniuses since I just found
it out.

FreeBSD 3.3 stable, running Zope for a while, Python 1.5.2 built long ago,
everything working fine.  Decided to install the PythonMethods product -- it
comes up broken.  The error came in zbytecodehacks/opbases.py, line 1:

	import struct,dis,new

because there was no module 'new'.  It turns out that in the FreeBSD port of
Python 1.5.2 (/usr/ports/lang/python), the Modules/Setup file is substituted
with one that turns off Tommy Burnette's 'newmodule'.  I have no idea why
this should be, or why they didn't make whatever changes they needed as a
Patch rather than an absolute overwrite of the file, but however it
happened, you need to turn it back on in Modules/Setup and then remake and
reinstall. Once I did that, PythonMethods comes up fine and other products
(like BannerFolder-0.3) that rely on it, install as well.