By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,050 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,050 IT Pros & Developers. It's quick & easy.

Problem installing cElementTree on Python 2.5

P: n/a
I have just installed Python 2.5 on Mac OS X 10.4.8 on an iBook (PPC) from
the dmg. Now I tried to install cElementTree -1.0.5-20 from source (no egg
available in cheeseshop) and got the following compilation error:

gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3 -DXML_STATIC -DHAVE_MEMMOVE=1
-DXML_NS=1 -DXML_DTD=1 -DBYTEORDER=4321 -DXML_CONTEXT_BYTES=1024 -Iexpat
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c
cElementTree.c -o build/temp.macosx-10.3-fat-2.5/cElementTree.o
gcc: cannot specify -o with -c or -S and multiple compilations
error: command 'gcc' failed with exit status 1

Does anybody know how to solve this? As I don't need the universal binary I
tried to strip the -arch i386 from the command above but that didn't help.
I also removed the -c, but then the install failed in the next step.

Has anybody succesfully installed cElementTree on this combination?
--
Piet van Oostrum <pi**@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: pi**@vanoostrum.org
Jan 10 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Piet van Oostrum wrote:
I have just installed Python 2.5 on Mac OS X 10.4.8 on an iBook (PPC) from
the dmg. Now I tried to install cElementTree -1.0.5-20 from source (no egg
available in cheeseshop) and got the following compilation error:
python2.5 ships with cElementTree:

import xml.etree.cElementTree

cheers,
-Mike

Jan 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.