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.
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhyamIgettin
gImportErrorsforTwistedsubpackagesonmy64bitinstallationofRedHatFedoraCen
tOS
thanks
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
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, [email protected] 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
or
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.
Jean-Paul
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python