[Twisted-Python] FW: No module names "twisted.names" due to confuse twisted-core library folder

Anil KARADAG akaradag at NETAS.com.tr
Thu Nov 15 07:17:55 EST 2012

Hi Jean,

Thanks for reply. I passed the problem with the below approach;

Why am I getting ImportErrors for Twisted subpackages on my 64bit
installation of RedHat/Fedora/CentOS?
  Red Hat and derived Linux distributions arrange to have certain Python
libraries installed in /usr/lib/ and 
  other parts installed in /usr/lib64/. 
  This is problematic for Twisted, since it results in some of Twisted
being installed in one directory and the rest installed in another. 
  Python will load a package from only one directory. 
  You can override this default behavior when you install Twisted by
supplying the --install-lib parameter when running Twisted's setup.py.



-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of
exarkun at twistedmatrix.com
Sent: Thursday, November 15, 2012 1:53 PM
To: Twisted general discussion
Subject: Re: [Twisted-Python] FW: No module names "twisted.names" due to
confuse twisted-core library folder

On 09:27 am, akaradag at netas.com.tr wrote:
>Hi all,
>I have a problem about twisted-core library location. I downloaded and
>installed twisted-10.2-core(TwistedCore-10.2.0.tar.bz2) and
>names(TwistedNames-10.2.0.tar.bz2) from source code[1]. But python does
>not find "names" plugin. Because twisted-core has been installed under
>/usr/lib64/ but names is under /usr/lib/ defaultly.

This is due to a bug in the local distutils configuration of your Linux 
distribution which causes it to select incorrect installation targets 
and does not let you override these choices.  You should report the bug 
to them.

Meanwhile, you can solve the problem by:

  1) Use the platform-supplied packages of Twisted instead of installing

your own version from source


  2) Install Twisted instead of Twisted Core and Twisted Names

These are both good ideas anyway, disregarding your current particular 
installation problem.  If possible, do them both.


Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list