[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 04:27:09 EST 2012


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.

 

 

 

[root at trhtlangley38 sylkserver]# ll
/usr/lib64/python2.6/site-packages/twisted/plugins/

total 124

-rw------- 1 root root  979 Jan  3  2008 cred_anonymous.py

-rw------- 1 root root 1451 Nov 13 18:02 cred_anonymous.pyc

-rw------- 1 root root 1837 Jan  3  2008 cred_file.py

-rw------- 1 root root 2222 Nov 13 18:02 cred_file.pyc

-rw------- 1 root root 2352 Jan  3  2008 cred_memory.py

-rw------- 1 root root 2673 Nov 13 18:02 cred_memory.pyc

-rw------- 1 root root 3804 Jan  3  2008 cred_unix.py

-rw------- 1 root root 4387 Nov 13 18:02 cred_unix.pyc

-rwx------ 1 root root 5868 Nov 13 13:42 dropin.cache

-rw------- 1 root root  549 Jul 29  2008 __init__.py

-rw------- 1 root root  533 Nov 13 18:02 __init__.pyc

-rw------- 1 root root  239 Apr  8  2008 twisted_ftp.py

-rw------- 1 root root  341 Nov 13 18:02 twisted_ftp.pyc

-rw------- 1 root root  270 Apr  8  2008 twisted_inet.py

-rw------- 1 root root  373 Nov 13 18:02 twisted_inet.pyc

-rw------- 1 root root  290 Apr  8  2008 twisted_manhole.py

-rw------- 1 root root  396 Nov 13 18:02 twisted_manhole.pyc

-rw------- 1 root root  285 Apr  8  2008 twisted_portforward.py

-rw------- 1 root root  395 Nov 13 18:02 twisted_portforward.pyc

-rw------- 1 root root 1417 Dec 23  2006 twisted_qtstub.py

-rw------- 1 root root 1996 Nov 13 18:02 twisted_qtstub.pyc

-rw------- 1 root root 1420 Nov 15  2006 twisted_reactors.py

-rw------- 1 root root 1645 Nov 13 18:02 twisted_reactors.pyc

-rw------- 1 root root  257 Apr  8  2008 twisted_socks.py

-rw------- 1 root root  361 Nov 13 18:02 twisted_socks.pyc

-rw------- 1 root root  298 Apr  8  2008 twisted_telnet.py

-rw------- 1 root root  403 Nov 13 18:02 twisted_telnet.pyc

-rw------- 1 root root 2034 Dec 25  2009 twisted_trial.py

-rw------- 1 root root 1876 Nov 13 18:02 twisted_trial.pyc

 

[root at trhtlangley38 sylkserver]# ll
/usr/lib/python2.6/site-packages/twisted/plugins/

total 16

-rw------- 1 root root  257 Apr  8  2008 twisted_names.py

-rw------- 1 root root  359 Nov 15 10:30 twisted_names.pyc

-rw------- 1 root root 1175 Nov  2  2008 twisted_words.py

-rw------- 1 root root 1973 Nov 15 10:29 twisted_words.pyc

[root at trhtlangley38 sylkserver]#

 

 

 

[root at example ]# python

Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14)

[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import twisted

>>> print twisted.__file__

/usr/lib64/python2.6/site-packages/twisted/__init__.pyc

>>> import twisted.names

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ImportError: No module named names

>>> 

 

 

I tried --prefix options to install method but i cannot pass the
problem. Does anyone know how to fix the problem and why the names
module is not installed under twisted-core library path.  

 

 

 

OS: RHEL 6.2

 

 

 

Thanks 

 

[1] http://twistedmatrix.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20121115/26ed0be8/attachment.htm 


More information about the Twisted-Python mailing list