[Pythonmac-SIG] Installing Twisted-1.3.0

Bob Ippolito bob at redivi.com
Tue Dec 21 23:38:18 CET 2004


On Dec 21, 2004, at 5:22 PM, Erik van Blokland wrote:

> this question might be more appropriate for a twisted forum. But 
> before I throw myself to the wild animals, perhaps someone on this 
> list has a clue for me.
>
> I'm attempting to install Twisted-1.3.0 on a G4 powerbook. I have 
> installed the same version of twisted on a different G4 with OSX 
> Server, and on another machine - plain OSX, all works fine. Now I want 
> to include a 12" powerbook in the happy family, but it won't compile. 
> As far as I can tell the pythons are all the same version, plain Apple 
> 2.3. OSX 10.3.5.
>
> Python version:
> Python 2.3 (#1, Sep 13 2003, 00:49:11)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
>
> Now then, installing Twisted-1.3.0 gives me this error. ~This is the 
> shorter version, without all the copying. It's done that.
>
> [eBook:/code/Twisted-1.3.0] erik% sudo python setup.py build
-
> building 'twisted.spread.cBanana' extension
> gcc -Wl,-F. -Wl,-F. -bundle -framework Python 
> build/temp.darwin-7.7.0-Power_Macintosh-2.3/twisted/spread/cBanana.o 
> -o 
> build/lib.darwin-7.7.0-Power_Macintosh-2.3/twisted/spread/cBanana.so
> ld: can't locate file for: -lbundle1.o
> error: command 'gcc' failed with exit status 1

That is quite a strange error, but cBanana is not required nor even 
enabled by default these days.  This is harmless.

> after that twisted imports in python, but not much else -- twisted.web 
> fails. Just for luck I tried the upgrade to 10.3.7 didn't make any 
> difference.

What's much more important to see is *how* twisted.web fails.  The 
cBanana stuff is totally harmless, though it sounds like Xcode might 
not be installed correctly if you're getting strange compile errors 
like that?

Did you remember to python setup.py install?  build won't install 
anything.

FWIW, Twisted should run without ANY C extensions or ANY compilation.  
You can just point sys.path to /code/Twisted-1.3.0 and it will have a 
working twisted package.

Also, the cfreactor in 1.3.0 is broken for PyObjC 1.1 and later, so 
maybe you should be trying Twisted 2.0-SVN instead..

-bob



More information about the Pythonmac-SIG mailing list