Problem w/ satprep_install_custominfos.py
Closed this issue · 10 comments
I get "No handlers could be found for logger "satprep". I'm running python 2.6.6, and would appreciate any help you could supply.
Hi manderso7!
Can you tell me which Linux distribution you're using? I'd like to troubleshoot this issue.
Which script throws this error message? satprep_snapshot.py
, satprep_install_custominfos.py
or satprep_diff.py
?
Sorry I didn't include earlier. It's centos 6.5 and I was running the satprep _install_custominfos.py. Thanks!
On Nov 12, 2014, at 3:48 AM, Christian Stankowic notifications@github.com wrote:
Hi manderso7!
Can you tell me which Linux distribution you're using? I'd like to troubleshoot this issue.
Which script throws this error message? satprep_snapshot.py, satprep_install_custominfos.py or satprep_diff.py?—
Reply to this email directly or view it on GitHub.
Hi!
I just had tests on some CentOS 6.5 machines and also an fresh installation - it worked for me.
Are you using the most recent version of the satprep toolkit? Try re-downloading the master.zip.
Could you also provide the output of the following commands:
$ rpm -qa|egrep "^python-"
$ python -V
Best regards!
Downloaded onto a new centos 6.5 box, completely updated it, but have the same error
[manderson@pfcspacewalk satprep-master]$ sudo ./satprep_install_custominfos.py
Username: manderson
Password:
No handlers could be found for logger "satprep"
And then running the commands you gave me earlier:
[manderson@pfcspacewalk satprep-master]$ rpm -qa|egrep "^python-"
python-hwdata-1.7.3-1.el6.noarch
python-markdown-2.0.1-3.1.el6.noarch
python-pycurl-7.19.0-8.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
python-2.6.6-52.el6.x86_64
python-six-1.7.3-1.el6.centos.noarch
python-devel-2.6.6-52.el6.x86_64
python-krbV-1.0.90-3.el6.x86_64
python-pygments-1.1.1-1.el6.noarch
python-ethtool-0.6-5.el6.x86_64
python-crypto-2.0.1-22.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
python-lxml-2.2.3-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
python-iniparse-0.3.1-2.1.el6.noarch
python-deltarpm-3.5-0.5.20090913git.el6.x86_64
python-dmidecode-3.10.13-3.el6_4.x86_64
python-libs-2.6.6-52.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
python-psycopg2-2.0.14-2.el6.x86_64
python-kerberos-1.1-7.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
python-sssdconfig-1.11.6-30.el6.noarch
python-gudev-147.1-4.el6_0.1.x86_64
python-nss-0.13-1.el6.x86_64
python-urlgrabber-3.9.1-9.el6.noarch
python-nose-0.10.4-3.1.el6.noarch
python-simplejson-2.0.9-3.1.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
python-chardet-2.0.1-1.el6.centos.noarch
python-gzipstream-1.10.2-1.el6.noarch
python-debian-0.1.21-10.el6.noarch
python-netaddr-0.7.5-4.el6.noarch
python-cheetah-2.4.1-1.el6.x86_64
[manderson@pfcspacewalk satprep-master]$
and
[manderson@pfcspacewalk satprep-master]$ python -V
Python 2.6.6
Thanks for any help you can provide.
Ah, this box is
[manderson@pfcspacewalk satprep-master]$ cat /etc/centos-release
CentOS release 6.6 (Final)
Hi manderso7,
thank you for the feedback. I was able to reproduce and fix this issue. Using the -d
parameter would have enabled the debug mode which was working correctly.
I fixed the issue in commits 67b4944 and 52d8a13 and checked successfully on a freshly installed CentOS 6.6 machine.
Is this also working for you?
Sorry, now I get this error:
$> ./satprep_install_custominfos.py
Traceback (most recent call last):
File "./satprep_install_custominfos.py", line 18, in <module>
from satprep_shared import check_if_api_is_supported, get_credentials
File "/home/manderson/satprep/satprep_shared.py", line 9, in <module>
import requests
ImportError: No module named requests
Hi manderso7,
your installation is missing the Python module requests
:
# yum install python-requests
Thanks for the hint, I will add it in the wiki/installation page.
That did it, thanks for the help!
You're welcome - thanks for your feedback! 👍