Sens istnienia / zawartości /usr/bin/pdb.py w Ac które psuje np bzr

Mateusz Korniak mateusz w ant.gliwice.pl
Pon, 9 Lip 2007, 00:35:48 CEST


1. czemu pdb.py jest faktycznie /bin/sh ?
2. czemu to po prostu nie nazywa sie /usr/bin/pdb

Ta rzecz psuje każdy program w pythonie umieszczony w /usr/bin który chciałby 
zaimportować moduł pdb


Przykład:

[matkor w laptop-hp ~/tmp]$ bzr checkout sftp://foo.bar/
/usr/bin/pdby.py imported/ executed.
DEBUG: This is debug in 'doctest'
DEBUG: sys.path: 
['/usr/share/python2.4/site-packages/bzrlib/plugins/bzrtools/external', '/usr/bin', '/usr/lib/python24.zip', '/usr/share/python2.4', '/usr/share/python2.4/plat-linux2', '/usr/share/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Imaging', '/usr/lib/python2.4/site-packages/dbus', '/usr/lib/python2.4/site-packages/gst-0.10', '/usr/lib/python2.4/site-packages/gtk-2.0', '/usr/share/python2.4/site-packages']
DEBUG: pdb: <module 'pdb' from '/usr/bin/pdb.py'>
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'Pdb'

Traceback (most recent call last):
  File "/usr/share/python2.4/site-packages/bzrlib/commands.py", line 718, in 
run_bzr_catch_errors
  File "/usr/share/python2.4/site-packages/bzrlib/commands.py", line 679, in 
run_bzr
  File "/usr/share/python2.4/site-packages/bzrlib/commands.py", line 375, in 
run_argv_aliases
  File "/usr/share/python2.4/site-packages/bzrlib/builtins.py", line 942, in 
run
  File "/usr/share/python2.4/site-packages/bzrlib/branch.py", line 133, in 
open
  File "/usr/share/python2.4/site-packages/bzrlib/bzrdir.py", line 532, in 
open
  File "/usr/share/python2.4/site-packages/bzrlib/lazy_import.py", line 116, 
in __call__
  File "/usr/share/python2.4/site-packages/bzrlib/transport/__init__.py", line 
1073, in get_transport
  File "/usr/share/python2.4/site-packages/bzrlib/transport/__init__.py", line 
1131, in _try_transport_factories
  File "/usr/share/python2.4/site-packages/bzrlib/registry.py", line 61, in 
get_obj
  File "/usr/share/python2.4/site-packages/bzrlib/registry.py", line 66, in 
_do_import
  File "/usr/share/python2.4/site-packages/bzrlib/transport/sftp.py", line 
882, in ?
  File "/usr/share/python2.4/site-packages/bzrlib/tests/__init__.py", line 32, 
in ?
  File "/usr/share/python2.4/doctest.py", line 338, in ?
    class _OutputRedirectingPdb(pdb.Pdb):
AttributeError: 'module' object has no attribute 'Pdb'

bzr 0.17.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'checkout', 'sftp://foo.bar/']

** please send this report to bazaar w lists.ubuntu.com

-- 
Mateusz Korniak


Więcej informacji o liście dyskusyjnej pld-devel-pl