[Twisted-Python] twisted-2 won't work with Fedora
![](https://secure.gravatar.com/avatar/0b7d465c9e16b93623fd6926775b91eb.jpg?s=120&d=mm&r=g)
There is a big problem with twisted on Fedora/Redhat multiarch. For example, x86_64. The problem is that Fedora puts arch-independent (.py) code into a different directory than arch-dependent code. Unfortunately, this doesn't quite work correctly with python's module search algorithm. The problem shows up when twisted-sumo is installed. Then we have: /usr/lib/python2.4/site-packages/twisted/... and /usr/lib64/python2.4/site-packages/twisted/... This won't work. I realize the problem is with python module search, but it looks like a big effort fix the code. A simpler solution would be for twisted to just avoid the problem. If twisted put core c-code into a different place, we could have: /usr/lib64/python2.4/site-packages/twisted-core That would solve the problem.
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Wed, 29 Mar 2006 09:02:12 -0500, Neal Becker <ndbecker2@gmail.com> wrote:
You could just delete the /usr/lib64 twisted package, which I am guessing is almost entirely empty. Unless you're interested in twisted.runner, none of the extension modules are actually required. Jean-Paul
![](https://secure.gravatar.com/avatar/0b7d465c9e16b93623fd6926775b91eb.jpg?s=120&d=mm&r=g)
I found that this will workaround: sudo python setup.py all install --install-lib=/usr/lib64/python2.4/site-packages
![](https://secure.gravatar.com/avatar/15fa47f2847592672210af8a25cd1f34.jpg?s=120&d=mm&r=g)
On Mar 29, 2006, at 9:02 AM, Neal Becker wrote:
In the thread on python-dev, I thought I saw a simple enough solution: On Mar 17, 2006, at 4:03 PM, Martin v. Löwis wrote:
In any case, I don't see why twisted should do anything to fix this problem, it's for either Fedora or Python to fix. James
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Wed, 29 Mar 2006 09:02:12 -0500, Neal Becker <ndbecker2@gmail.com> wrote:
You could just delete the /usr/lib64 twisted package, which I am guessing is almost entirely empty. Unless you're interested in twisted.runner, none of the extension modules are actually required. Jean-Paul
![](https://secure.gravatar.com/avatar/0b7d465c9e16b93623fd6926775b91eb.jpg?s=120&d=mm&r=g)
I found that this will workaround: sudo python setup.py all install --install-lib=/usr/lib64/python2.4/site-packages
![](https://secure.gravatar.com/avatar/15fa47f2847592672210af8a25cd1f34.jpg?s=120&d=mm&r=g)
On Mar 29, 2006, at 9:02 AM, Neal Becker wrote:
In the thread on python-dev, I thought I saw a simple enough solution: On Mar 17, 2006, at 4:03 PM, Martin v. Löwis wrote:
In any case, I don't see why twisted should do anything to fix this problem, it's for either Fedora or Python to fix. James
participants (4)
-
Itamar Shtull-Trauring
-
James Y Knight
-
Jean-Paul Calderone
-
Neal Becker