<html><head><base href="x-msg://421/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try this:<div>export PATH=/opt/redhat/rhn/solaris/bin:/opt/redhat/rhn/solaris/usr/bin:/opt/redhat/rhn/solaris/usr/sbin:$PATH</div><div><br></div><div>I was having the same issue because the scripts were calling the native python. Once I put the redhat directories first in my path, it worked fine.</div><div>I put this in a file that I source only when I'm going to work with rhn on solaris.</div><div><br></div><div>--Abe<br><div><div>On Oct 6, 2010, at 12:30 PM, <<a href="mailto:spopov@sympatico.ca">spopov@sympatico.ca</a>> <<a href="mailto:spopov@sympatico.ca">spopov@sympatico.ca</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">Hi<br> <br>I've installed the spacewalk client on Solaris 10, but attempts to register to the spacewalk server fail.  Hopefully someone will tell me what very small thing I have to do to make this work. Here are the details<span class="Apple-converted-space"> </span><br> <br>1 a)The error registering the Solaris10 client<br># rhnreg_ks --force --serverUrl=http://myspacewalkserver/XMLRPC --activationkey=1-TestKey<br>Traceback (most recent call last):<br>  File "/opt/redhat/rhn/solaris/usr/sbin/rhnreg_ks", line 28, in ?<br>    from rhn.client.translate import _<br>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/__init__.py", line 11, in ?<br>    import rpclib<br>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/rpclib.py", line 14, in ?<br>    import transports<br>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/transports.py", line 24, in ?<br>    import connections<br>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/connections.py", line 14, in ?<br>    import SSL<br>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/SSL.py", line 15, in ?<br>    from OpenSSL import SSL, crypto<br>  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/OpenSSL/__init__.py", line 11, in ?<br>    import rand, crypto, SSL, tsafe<br>ImportError: ld.so.1: python: fatal: relocation error: file /opt/redhat/rhn/solaris/lib/python2.4/site-packages/OpenSSL/crypto.so: symbol PyUnicodeUCS4_Decode: referenced symbol not found<br><br>1 a)Just for reference this registration works from my RHEL5 client<br>#rhnreg_ks --force --serverUrl=http://myspacewalkserver/XMLRPC --activationkey=1-TestKey<br>This system is not subscribed to any channels.<br>RHN channel support will be disabled.<br>[<br> <br>2)The effective path for the registration session<br>#echo $PATH<br>/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/samba/sbin:/usr/local/samba/bin:/usr/ccs/bin:/opt/redhat/rhn/solaris/bin:/opt/redhat/rhn/solaris/usr/bin:/opt/redhat/rhn/solaris/usr/sbin<br> <br>3)The effective library paths<br>#crle -c /var/ld/ld.config<br>Configuration file [version 4]: /var/ld/ld.config<br>  Default Library Path (ELF):   /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib:/opt/redhat/rhn/solaris/lib<br>  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)<br>Command line:<br>  crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib:/opt/redhat/rhn/solaris/lib<br> <br>4)Supporting packages installed<br>#pkginfo SUNWzlib SUNWgccruntime<br>system      SUNWgccruntime GCC Runtime libraries<br>system      SUNWzlib       The Zip compression library<br># pkginfo |grep -i openssl<br>utility     RHATpossl                        pyOpenSSL 0.6<br>application SMCossl                          openssl<br>system      SUNWopenssl-commands             OpenSSL Commands (Usr)<br>system      SUNWopenssl-include              OpenSSL Header Files<br>system      SUNWopenssl-libraries            OpenSSL Libraries (Usr)<br>system      SUNWopenssl-man                  OpenSSL Manual Pages<br>system      SUNWopensslr                     OpenSSL (Root)<br> <br>5)Spacewalk packages<span class="Apple-converted-space"> </span><a href="mailto:installedroot@winfrasol1">i</a><br>#pkginfo|grep RHAT<br>utility     RHATpossl                        pyOpenSSL 0.6<br>utility     RHATpythn                        python 2.4.1<br>utility     RHATrcfg                         rhncfg 5.1.0<br>utility     RHATrcfga                        rhncfg-actions 5.1.0<br>utility     RHATrcfgc                        rhncfg-client 5.1.0<br>utility     RHATrcfgm                        rhncfg-management 5.1.0<br>utility     RHATrhnc                         rhnclient 5.1.0<br>utility     RHATrhnl                         rhnlib 1.8<br>utility     RHATrpush                        rhnpush 5.1.1<br>utility     RHATsmart                        smartpm 5.1.1<br><br>6)The server<br> uname  -a<br>SunOS myservername 5.10 Generic_142901-10 i86pc i386 i86pc<br><br><span><ATT00001..txt></span></div></span></blockquote></div><br></div></body></html>