Package: apport
Version: 2.2.3-1
Severity: normal

In [4]: import apport
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call
last)
/home/rrs/Community/Packaging/apport/<ipython-input-4-dea47fa195fb> in
<module>()
----> 1 import apport

/home/rrs/Community/Packaging/apport/apport/__init__.py in <module>()
----> 1 from apport.report import Report
      2 
      3 from apport.packaging_impl import impl as packaging
      4 
      5 Report  # pyflakes

/home/rrs/Community/Packaging/apport/apport/report.py in <module>()
     28 import problem_report
     29 import apport
---> 30 import apport.fileutils
     31 from apport.packaging_impl import impl as packaging
     32 

/home/rrs/Community/Packaging/apport/apport/fileutils.py in <module>()          
                                                                               
     21 from problem_report import ProblemReport                                
                                                                               
     22                                                                         
                                                                               
---> 23 from apport.packaging_impl import impl as packaging                     
                                                                               
     24                                                                         
                                                                               
     25 report_dir = os.environ.get('APPORT_REPORT_DIR', '/var/crash')          
                                                                               
                                                                                
                                                                               
ImportError: No module named packaging_impl


The setup file mentions about conditional installation. 

# try to auto-setup packaging_impl
if len(sys.argv) >= 2 and sys.argv[1] != 'sdist' and not
os.path.exists('apport/packaging_impl.py'):
    if os.path.exists('/etc/apt/sources.list'):
        print('Installing apt/dpkg packaging backend.')
        shutil.copy('backends/packaging-apt-dpkg.py',
'apport/packaging_impl.py')
    elif os.path.exists('/usr/bin/rpm'):
        print('Installing RPM packaging backend.')
        shutil.copy('backends/packaging_rpm.py',
'apport/packaging_impl.py')
    else:
        print('Could not determine system package manager. Copy
appropriate backends/packaging* to apport/packaging_impl.py')
        sys.exit(1)


AI: Check with Martin

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apport depends on:
ii  gir1.2-glib-2.0  1.32.1-1
ii  lsb-base         4.1+Debian7
ii  python           2.7.3~rc2-1
ii  python-apport    2.2.3-1
ii  python-gi        3.2.2-1
pn  sysv-rc          <none>

Versions of packages apport recommends:
pn  apport-symptoms  <none>

Versions of packages apport suggests:
ii  apport-gtk  2.2.3-1
ii  apport-kde  2.2.3-1

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to