What's the output of this:
Code: Alles auswählen
yum list installed | grep python
Code: Alles auswählen
yum list installed | grep python
Code: Alles auswählen
rpm --nodeps -e python-Twisted
yum upgrade -v --skip-broken
yum install python-Twisted
yum upgrade -v
Code: Alles auswählen
import OPSI
show_drivers.py from the 64-bit windows 7 package, 4.0.6.1-3n.wenselowski hat geschrieben:Eigentlich haben wir einen Fallback für Argparse. Kannst du mir sagen wo ein Problem auftrat
Code: Alles auswählen
# /var/lib/opsi/depot/win7-x64/show_drivers.py opsitest64.domain.local
Traceback (most recent call last):
File "/var/lib/opsi/depot/win7-x64/show_drivers.py", line 48, in <module>
import OPSI.Util.argparse as argparse
ImportError: No module named argparse
Code: Alles auswählen
$ python -c "import OPSI.Util._argparse"
Code: Alles auswählen
import OPSI
Nope, this gives the same result. First I removed python-argparse.n.wenselowski hat geschrieben:running an 4.0.6 or older?
If on 4.0.6: does this work?Code: Alles auswählen
$ python -c "import OPSI.Util._argparse"
Code: Alles auswählen
Removed:
python-argparse.noarch 0:1.2.1-2.1.el6
# /var/lib/opsi/depot/win7-x64-nlite/show_drivers.py w7install2.domain.local
Traceback (most recent call last):
File "/var/lib/opsi/depot/win7-x64-nlite/show_drivers.py", line 48, in <module>
import OPSI.Util.argparse as argparse
ImportError: No module named argparse
# python -c "import OPSI.Util._argparse"
# /var/lib/opsi/depot/win7-x64-nlite/show_drivers.py w7install2.domain.local
Traceback (most recent call last):
File "/var/lib/opsi/depot/win7-x64-nlite/show_drivers.py", line 48, in <module>
import OPSI.Util.argparse as argparse
ImportError: No module named argparse
Code: Alles auswählen
# yum list installed | grep opsi
duplicity.x86_64 0.6.24-9.1 @opsi4
librsync.x86_64 0.9.7-176.3 @opsi4
opsi-atftp.x86_64 0.7.dfsg-12.1 @opsi4
opsi-configed.noarch 4.0.6.3.5.1-2.1 @opsi4
opsi-depotserver.noarch 4.0.6.4-2.1 @opsi4
opsi-linux-bootimage.noarch 20160111-1.1 @opsi4
opsi-utils.noarch 4.0.6.9-1.1 @opsi4
opsiconfd.noarch 4.0.6.11-2.1 @opsi4
opsipxeconfd.noarch 4.0.4.1-2.1 @opsi4
opsipxeconfd.noarch 4.0.4.1-2.2 @opsi4
opsipxeconfd.noarch 4.0.5.5-2.1 @opsi4
python-GnuPG-Interface.x86_64 0.3.2-4.6 @opsi4
python-SQLAlchemy.i686 0.7.7-32.3 @opsi4
python-SQLAlchemy.x86_64 0.7.7-32.3 @opsi4
python-Twisted.x86_64 12.0.0-24.3 @opsi4
python-crypto.x86_64 2.1.0-5.2 @opsi4
python-ldaptor.x86_64 0.0.43-16.2 @opsi4
python-lockfile.noarch 0.9.1-1.1 @opsi4
python-opsi.noarch 4.0.6.34-1.1 @opsi4
python-pam.x86_64 0.5.0-76.2 @opsi4
python-pexpect.noarch 3.3-10.1 @opsi4
python-pyparsing.noarch 2.0.3-5.2 @opsi4
python-serial.noarch 2.4-11.5 @opsi4
python-simplejson.x86_64 2.0.9-11.2 @opsi4
zsync.x86_64 0.6.2-4.3 @opsi4
Code: Alles auswählen
import OPSI