Univention Bugzilla – Bug 31320
UCS 3 Python Module nur für Python 2.6 bauen
Last modified: 2014-05-07 15:25:39 CEST
Der folgenden Fehler ist noch einmal auf einer 3.1-Instanz aufgefallen: ==================== Vorbereitung zum Ersetzen von univention-management-console-module-setup 6.0.76-15.459.201303221437 (durch .../univention-management-console-module-setup_6.1.76-12.460.201303251119_all.deb) ... Reloading Univention Management Console Server. done. Ersatz für univention-management-console-module-setup wird entpackt ... Vorbereitung zum Ersetzen von univention-system-setup 6.0.76-15.459.201303221437 (durch .../univention-system-setup_6.1.76-12.460.201303251119_all.deb) ... Ersatz für univention-system-setup wird entpackt ... Trigger für python-support werden verarbeitet ... Compiling /usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py ... File "/usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py", line 59 return map(lambda x:x if x!= oldValue else newValue,l) ^ SyntaxError: invalid syntax Trigger für univention-config werden verarbeitet ... ==================== +++ This bug was initially created as a clone of Bug #26852 +++ Bei einer Migration von Samba 3 auf Samba 4 sind die folgenden Meldungen aufgefallen: Trigger für python-support werden verarbeitet ... Compiling /usr/lib/pymodules/python2.4/univention/admin/uldap.py ... File "/usr/lib/pymodules/python2.4/univention/admin/uldap.py", line 257 except TypeError as e: ^ SyntaxError: invalid syntax /usr/lib/pymodules/python2.5/univention/admin/uldap.py:257: Warning: 'as' will become a reserved keyword in Python 2.6 Compiling /usr/lib/pymodules/python2.5/univention/admin/uldap.py ... File "/usr/lib/pymodules/python2.5/univention/admin/uldap.py", line 257 except TypeError as e: ^ SyntaxError: invalid syntax Wir sollten die Module nur für die aktuelle Python Version, derzeit Python 2.6 bauen.
Ebenfalls bei einem Kunden aufgefallen.
Again on update to UCS 3.2.
It appeared many times (s4connector!) in an update after 3.1-1-errata196 and once in the upgrade to UCS 3.2 : --- Trigger für python-support werden verarbeitet ... Compiling /usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py ... File "/usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py", line 59 return map(lambda x:x if x!= oldValue else newValue,l) ^ SyntaxError: invalid syntax ---
Should be fixed with the next connector update.
The S4 connector python modules are only built for Python 2.6. Fixed: r49234 YAML: r49235
Ok: * /usr/share/python-support/python-univention-connector-s4.public now specifies pyversions=2.6 * The postinst calls update-python-modules * Advisory Ok.
http://errata.univention.de/ucs/3.2/107.html