Bug 16303 - univention-get-winprinters findet python samba modul nicht
Summary: univention-get-winprinters findet python samba modul nicht
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: Samba
Version: UCS 2.3
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 2.3
Assignee: Arvid Requate
QA Contact: Felix Botner
URL:
Keywords:
Depends on:
Blocks: 14414
  Show dependency treegraph
 
Reported: 2009-11-10 11:59 CET by Felix Botner
Modified: 2009-12-21 08:46 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2009-11-10 11:59:27 CET
Die Scripte aus univention-winprinters beginnen mit

#!/usr/bin/python2.4

verwenden also python 2.4. Das Samba Modul aus dem Paket python-samba legt das Modul aber unter 2.5 ab.

-> dpkg -L python-samba
/.
/usr
/usr/lib
/usr/lib/python2.5
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/samba
/usr/lib/python2.5/site-packages/samba/spoolss.so
/usr/share
/usr/share/doc
/usr/share/doc/python-samba
/usr/share/doc/python-samba/copyright
/usr/share/doc/python-samba/examples
/usr/share/doc/python-samba/examples/spoolss
/usr/share/doc/python-samba/examples/spoolss/changeid.py
/usr/share/doc/python-samba/examples/spoolss/enumprinters.py
/usr/share/doc/python-samba/examples/spoolss/psec.py
/usr/share/doc/python-samba/examples/tdbpack
/usr/share/doc/python-samba/examples/tdbpack/tdbtimetrial.py
/usr/share/doc/python-samba/examples/tdbpack/oldtdbutil.py.gz
/usr/share/doc/python-samba/examples/tdbpack/test_tdbpack.py.gz
/usr/share/doc/python-samba/NEWS.Debian.gz
/usr/share/doc/python-samba/README.build.gz
/usr/share/doc/python-samba/changelog.Debian.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/python-samba
/usr/share/pyshared
/usr/share/pyshared/samba
/usr/share/pyshared/samba/__init__.py
/usr/share/pyshared/samba/printerdata.py
/usr/share/pyshared/Samba_Python_Extensions-0.1.egg-info
/usr/share/pyshared-data
/usr/share/pyshared-data/python-samba

und es gibt einen Traceback

Traceback (most recent call last):
  File "/usr/bin/univention-get-winprinters", line 37, in ?
    import samba.spoolss
ImportError: No module named samba.spoolss
Comment 1 Arvid Requate univentionstaff 2009-11-10 19:12:57 CET
Im python-samba Paket wurde XB-Python-Version auf 2.4 gesetzt und alle vorkommenden python-shebangs auf /usr/bin/python2.4 geändert. Zusätzlich wurden die Build-Dependcies auf python2.4 und python2.4-dev geändert.

Das Python Binding liegt jetzt im richtige Pfad:
/usr/lib/python2.4/site-packages/samba/spoolss.so
Comment 2 Felix Botner univentionstaff 2009-11-11 08:53:51 CET
OK,

-> dpkg -L python-samba

/.
/usr
/usr/lib
/usr/lib/python2.4
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/samba
/usr/lib/python2.4/site-packages/samba/spoolss.so
/usr/share
/usr/share/pyshared-data
/usr/share/pyshared-data/python-samba
/usr/share/doc

...

Changelog Eintrag nicht notwendig.
Comment 3 Stefan Gohmann univentionstaff 2009-12-21 08:46:42 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".