twisted.protocols.telnet is deprecated.

Bug #154494 reported by Carl Karsten
46
This bug affects 6 people
Affects Status Importance Assigned to Milestone
apt-proxy (Debian)
Fix Released
Unknown
apt-proxy (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: apt-proxy

Not a bug, yet.

2007/10/19 12:19 -0500 [-] Log opened.
2007/10/19 12:19 -0500 [-] twistd 2.5.0 (/usr/bin/python 2.5.1) starting up
2007/10/19 12:19 -0500 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2007/10/19 12:19 -0500 [-] Loading /usr/sbin/apt-proxy...
2007/10/19 12:19 -0500 [-] /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.

Revision history for this message
Christian Holland (mail-cholland) wrote :

confirmed.

As workaround set in /etc/apt-proxy/apt-proxy-v2.conf:
port = 9998

I dont know, if it conflict with other services.
Adapt your /etc/apt/sources.list:
deb http://localhost:9998/ubuntu/ gutsy main restricted universe multiverse

And restart apt-proxy:
/etc/init.d/apt-proxy restart

Revision history for this message
Carl Karsten (carlfk) wrote :

The above comment (confirmed, workaround...port = 9998...) does not seem to apply to this issue (twisted.protocols.telnet is deprecated) Wondering if this workaround is for some other bug?

In looking for how this might apply, I have more to report about this bug. looking at the code, it isn't obvious what to do. it seems twisted module code is causing it:
 python2.5/site-packages/twisted/manhole/telnet.py:8 = from twisted.protocols import telnet

which comes from File "/usr/sbin/apt-proxy", line 16,
            from twisted.manhole.telnet import ShellFactory

looking at /usr/sbin/apt-proxy, ShellFactory gets used at 52 - 64.

from #twisted: (12:39:42 AM) dreid: CarlFK: but the answer is that internet.TCPServer is an IService like the one returned by makeService in twisted.conch.manhole_tap

Which I think means reaplace 52 - 64, with something using makeService.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in apt-proxy:
status: New → Incomplete
Revision history for this message
Carl Karsten (carlfk) wrote :

yes. but the config now hides it:

$ sudo apt-get install apt-proxy
...

juser@averatec:/var/log$ cat apt-proxy.log
2008-11-01 15:15:03-0500 [-] Log opened.
2008-11-01 15:15:03-0500 [-] twistd 8.1.0 (/usr/bin/python 2.5.2) starting up
2008-11-01 15:15:03-0500 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008-11-01 15:15:03-0500 [-] Changing process name to apt-proxy
2008-11-01 15:15:03-0500 [-] Log opened.
2008-11-01 15:15:03-0500 [-] twistd 8.1.0 (/usr/sbin/apt-proxy 2.5.2) starting up
2008-11-01 15:15:03-0500 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008-11-01 15:15:03-0500 [-] apt_proxy.apt_proxy.Factory starting on 9999
2008-11-01 15:15:03-0500 [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x9e3f52c>
2008-11-01 15:15:03-0500 [-] set uid/gid 106/65534

juser@averatec:/var/log$ grep port /etc/apt-proxy/apt-proxy-v2.conf
;; Server port to listen on
port = 9999
;telnet_port = 9998

enable Debugging remote python console:

juser@averatec:/var/log$ grep port /etc/apt-proxy/apt-proxy-v2.conf
;; Server port to listen on
port = 9999
telnet_port = 9998

/etc/init.d/apt-proxy restart
 * Stopping apt-proxy [ OK ]
 * Starting apt-proxy /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
/usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None

Revision history for this message
Carl Karsten (carlfk) wrote :

not sure why this was marked incomplete.

Changed in apt-proxy:
status: Incomplete → Confirmed
Revision history for this message
naderra (naderra) wrote :

same ...

# /etc/init.d/apt-proxy start
 * Starting apt-proxy/usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
/usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None

AIGA

Changed in apt-proxy (Debian):
status: Unknown → New
Revision history for this message
Ro (robert-markula) wrote :

Bug is still present in Lucid 10.04:

<snip>
root@lucid:~# /etc/init.d/apt-proxy restart
 * Stopping apt-proxy [ OK ]
 * Starting apt-proxy /usr/lib/python2.6/dist-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
/usr/lib/python2.6/dist-packages/twisted/manhole/telnet.py:8: DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
  from twisted.protocols import telnet
None
</snip>

Nothing serious, but a bit annoying since it clutters up the logs...

Changed in apt-proxy (Debian):
status: New → Fix Released
Revision history for this message
Kemel Zaidan aka Legendario (kemelzaidan) wrote :

I confirm the bug under lucid too.

Revision history for this message
Gert van Dijk (gertvdijk) wrote :

Debian has removed the package from unstable due to this bug and alternatives are available. This package is not available in Ubuntu releases after Lucid.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576821

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.