Seite 1 von 1
Python deprecation warning
Verfasst: 26 Sep 2013, 22:07
von SisterOfMercy
I use CentOS 6.4, with OPSI 4.0.3. Python version: 2.6.6-37.el6_4
I get this message:
Code: Alles auswählen
/usr/lib/python2.6/site-packages/ldaptor/ldapfilter.py:172: DeprecationWarning: Operator '<<' is deprecated, use '<<=' instead + Suppress(Literal(')').leaveWhitespace()))
Perhaps this is already known, and not really a big problem, but thought it would be best if it was mentioned.
If more information is needed, let me know.

Re: Python deprecation warning
Verfasst: 30 Sep 2013, 15:15
von n.wenselowski
Hello SisterOfMercy,
thanks for your report.
Where does that message appear?
It seems not to be in one of OPSIs modules but in one of the used third party modules called ldaptor.
Kind regards
N. Wenselowski
Re: Python deprecation warning
Verfasst: 30 Sep 2013, 16:42
von SisterOfMercy
It happens when I install a package:
Code: Alles auswählen
[root@opsi xp64-custom]# opsi-package-manager -i xp64-custom_1.2-2.opsi
/usr/lib/python2.6/site-packages/ldaptor/ldapfilter.py:172: DeprecationWarning: Operator '<<' is deprecated, use '<<=' instead
+ Suppress(Literal(')').leaveWhitespace()))
And when I use ./show_drivers.py
Code: Alles auswählen
[root@opsi xp64-custom]# /opt/pcbin/install/winxppro-x64/show_drivers.py virtualbox.localdomain.local
/usr/lib/python2.6/site-packages/ldaptor/ldapfilter.py:172: DeprecationWarning: Operator '<<' is deprecated, use '<<=' instead
+ Suppress(Literal(')').leaveWhitespace()))
Failed to read opsi modules file '/etc/opsi/modules': Signature not found
Additional drivers for integration byAudit found for vendor: 'innotek GmbH' model : 'VirtualBox'
Probably in a few other commands as well.
The 'failure to read opsi modules file' is because of my dispatch.conf configuration (there is no LDAP in there, btw).
Re: Python deprecation warning
Verfasst: 14 Nov 2013, 15:37
von pedro tagalungsod
hello,
I also got that error after i run the command /etc/init.d/opsiconfd restart.
Re: Python deprecation warning
Verfasst: 05 Feb 2014, 10:25
von holgerv
The deprecation warning is caused by the package "python-ldaptor" which doesn't belong to opsi but to RedHat/CentOS.
Regards
Holger
Re: Python deprecation warning
Verfasst: 05 Feb 2014, 14:00
von SisterOfMercy
holgerv hat geschrieben:The deprecation warning is caused by the package "python-ldaptor" which doesn't belong to opsi but to RedHat/CentOS.
It is in the opsi repository:
Code: Alles auswählen
yum list installed | grep ldaptor
python-ldaptor.x86_64 0.0.43-3.5 @opsi4
Re: Python deprecation warning
Verfasst: 06 Feb 2014, 12:45
von n.wenselowski
Hello,
we are aware of the deprecation warning and future versions of OPSI will not display this message.
This message does not indicate an actual problem and can be ignored.
SisterOfMercy hat geschrieben:holgerv hat geschrieben:The deprecation warning is caused by the package "python-ldaptor" which doesn't belong to opsi but to RedHat/CentOS.
It is in the opsi repository:
Code: Alles auswählen
yum list installed | grep ldaptor
python-ldaptor.x86_64 0.0.43-3.5 @opsi4
For some distributions the ldaptor package is provided by the maintainers (i.e. Debian based systems) and for others it is made available via the OPSI repository because this is a runtime dependency for OPSI. UIB does not maintain the code for ldaptor.
Kind regards
Niko