[Twisted-Python] 64bit Installation Problems

I am trying to install Twisted2.5.0 and have been having some problems. When I run the main setup.py, TwistedCore is installed into /usr/lib64/python23/ while everything else (conch, lore, mail, names, news, runner, web and words) is installed into /ur/lib/python23. So now when I try to import anything outside of core (like Web) I get: exceptions.ImportError: No module named web Is there a way to force TwistedCore to build and install as 32bit or force everything else to install as 64bit? Thanks, Tim System Info: CentOS 4.4 x86_64 Python 2.3.4 Zope Interface 3.3.0

Tim Flink wrote:
I am trying to install Twisted2.5.0 and have been having some problems. When I run the main setup.py, TwistedCore is installed into /usr/lib64/python23/ while everything else (conch, lore, mail, names, news, runner, web and words) is installed into /ur/lib/python23.
So now when I try to import anything outside of core (like Web) I get: exceptions.ImportError: No module named web
Is there a way to force TwistedCore to build and install as 32bit or force everything else to install as 64bit?
It's recommended to install twisted separate from the python tree and just put it on the PYTHONPATH. Also it's a good thing to keep a custom python installation that's known to work with the specific version of twisted to prevent the package-manager of the distro to make incompatible changes (dunno what CentOS does, though). Apart from that, you could put /usr/lib/python23/(site-packages) on the PYTHONPATH, or copy the stuff to the other location. AFAIK this has nothing to do with 32/64bit but just where the installer copies the packages by default, If you want a 32bit version, you'll need a chroot with a separate system. Johann

On 07:14 am, johann.borck@densedata.com wrote:
Tim Flink wrote:
I am trying to install Twisted2.5.0 and have been having some problems. When I run the main setup.py, TwistedCore is installed into /usr/lib64/python23/ while everything else (conch, lore, mail, names, news, runner, web and words) is installed into /ur/lib/python23.
It's recommended to install twisted separate from the python tree and just put it on the PYTHONPATH.
This is what I do for Twisted *development*, but for deployment, it is suggested to build packages for your OS and have them managed by your package manager. The issue Tim is describing makes it sound like it would be difficult to build those packages for 64bit centOS. It sounds like this is simply a bug in either Twisted or distutils. I've had similar issues in the past, but I rarely use 64bit OSes so I assumed they were personal misconfigurations. Tim, if you could track down this issue further and report a bug in our tracker (if it's a Twisted issue) I'd be much obliged. You may discover it's a bug in Python which has been fixed in a version later than 2.3, in which case you are likely out of luck - you might just have to upgrade to a more recent Python version.

*grumble* *grumble* I responded to this same thread on buildbot-devel yesterday. <http://sourceforge.net/mailarchive/forum.php? thread_name=4613203A.1040500%40mail.mew.co.jp&forum_name=buildbot- devel> Please don't post the same topic separately to multiple lists. On Apr 4, 2007, at 3:34 AM, glyph@divmod.com wrote:
This is what I do for Twisted *development*, but for deployment, it is suggested to build packages for your OS and have them managed by your package manager. The issue Tim is describing makes it sound like it would be difficult to build those packages for 64bit centOS.
It sounds like this is simply a bug in either Twisted or distutils. I've had similar issues in the past, but I rarely use 64bit OSes so I assumed they were personal misconfigurations. Tim, if you could track down this issue further and report a bug in our tracker (if it's a Twisted issue) I'd be much obliged.
You may discover it's a bug in Python which has been fixed in a version later than 2.3, in which case you are likely out of luck - you might just have to upgrade to a more recent Python version.
http://mail.python.org/pipermail/python-dev/2006-March/062462.html http://mail.python.org/pipermail/python-dev/2006-March/062548.html Apparently there's disagreement between how RedHat installs Python on x86_64 and how the Python people designed it to be installed. Hopefully one of them will bend eventually; until then I just install all of the twisted stuff into the arch-dependent directory. (This has the unfortunate disadvantage that you need to rebuild .rpms like python-twisted-web on each architecture, even though they contain no architecture-specific code. For that reason I hope RedHat's way wins out.) I have source RPMs that do this at <http://rosalyn.dyn.slamb.org/yum/ centos4/SRPMS/>, should anyone be interested. I gave quick build instructions in the buildbot-devel thread linked above. -- Scott Lamb <http://www.slamb.org/>
participants (4)
-
glyph@divmod.com
-
Johann Borck
-
Scott Lamb
-
Tim Flink