Python deprecation warning

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Python deprecation warning

Beitrag 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. 8-)
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Python deprecation warning

Beitrag 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

Code: Alles auswählen

import OPSI
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Python deprecation warning

Beitrag 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).
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
pedro tagalungsod
Beiträge: 1
Registriert: 14 Nov 2013, 15:35

Re: Python deprecation warning

Beitrag von pedro tagalungsod »

hello,

I also got that error after i run the command /etc/init.d/opsiconfd restart.
holgerv
Beiträge: 288
Registriert: 20 Aug 2012, 09:35

Re: Python deprecation warning

Beitrag von holgerv »

The deprecation warning is caused by the package "python-ldaptor" which doesn't belong to opsi but to RedHat/CentOS.

Regards


Holger
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Python deprecation warning

Beitrag 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
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Python deprecation warning

Beitrag 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

Code: Alles auswählen

import OPSI
Antworten