[Spacewalk-list] bootstrap.sh, centos 4, hashlib....
andre at vandervlies.xs4all.nl
andre at vandervlies.xs4all.nl
Tue Apr 13 19:13:49 UTC 2010
> On Fri, Apr 09, 2010 at 12:09:47PM +0200, andre at vandervlies.xs4all.nl
> wrote:
>> Hi,
>> I've recentely started with spacewalk and I'm slowly rolling...
>> I've registered some clients the 'hard way' just to get acquainted with
>> the system.
>> Trying the 'bootstrap.sh' script I stumbled over:
>> "ImportError: No module named spacewalk.common.fileutils"
>>
>> This list (and other sources) told me I was missing some stuff which I
>> installed:
>> "yum install rhn-setup yum-rhnplugin python-dmidecode \
>> spacewalk-backend-libs python-crypto"
>> However, the third time I decided to have a look at
>> 'client_config_update.py'...
>>
>> Suprised I observed the line:
>> "from spacewalk.common.fileutils import cleanupAbsPath,
>> make_temp_file"
>>
>> So, all this trouble for 'just' two functions???
>>
>> I copied them from 'spacewalk.common.fileutils' (three actually, see
>> att.)
>> and the script performs nicely....
>
> Andre,
>
> I have now replaced those functions with their tempfile and os.path
> counterparts. So once spacewalk-certs-tools-0.9.2-1 hits the nightly
> repo, this dependency will no longer be needed.
>
ThanX!
> Thank you for bringing this into our attention.
>
You're welcome!
>> also on Centos 4...
>> osad won't start because of a missing 'python-hashlib' (not for Centos
>> 4,
>> python-2.4). So I installed it from source
>> (http://code.krypto.org/python/hashlib/).
>
> I don't think we've ever released osad for CentOS 4. On RHEL 4, the
> package is in RHN Tools channel.
>
> Hope this helps,
>
It does, it does!
--
Andre van der Vlies <andre at vandervlies.xs4all.nl>
Certifiable Linux/UNIX engineer (CLUE)
Sip: (+31)878751928
Homepage: http://vandervlies.xs4all.nl/~andre
Books: http://www.lulu.com/andre14
Key fingerprint = 397C 7479 67DB 9306 23DC B423 7B58 CD5A 6EFF 5CF8
--
"Programming isn't a craft, it's an art."
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
^[^#]
--
More information about the Spacewalk-list
mailing list