Fjuiwara: Oh, ctypes is a new feature in Python 2.5 and later. So the code won't work with Python 2.4. You'll probably need to wait until Python 2.6 bindings are added to Solrais before this will work. Or, if you want, there is a SFEpython-ctypes.spec file in spec-files-extra that adds ctypes support to Python 2.4.
Brian > Brian Cameron-san wrote (02/13/09 04:50 AM): >> Note we do not yet ship all the Python bindings modules yet with >> Python 2.6 on Solaris, so you probably should run with Python 2.4 >> for now. >> >> For example: >> >> % /usr/bin/python2.6 a.py >> >> Just specify /usr/bin/python instead of /usr/bin/python2.6. > > If I run python2.4, another error is reported. > > # mv /usr/lib/python2.6/vendor-packages/libproxy.py \ > /usr/lib/python2.4/vendor-packages/. > > % /usr/bin/python2.4 a.py > Traceback (most recent call last): > File "a.py", line 3, in ? > import libproxy > File "/usr/lib/python2.4/vendor-packages/libproxy.py", line 22, in ? > import ctypes > ImportError: No module named ctypes > > > fujiwara > >> >> Brian >> >>> I don't know python, but this seems to be a bug of python. >>> ctypes.util.find_library() can not find libraries under /usr/bin. >>> >>> Now only libsoup 2.25.5 uses libproxy. >>> >>> Regards, >>> >>> Ke >>> >>> Takao Fujiwara - Tokyo S/W Center ??: >>>> Ke Wang-san wrote (02/12/09 01:27 PM): >>>>> libproxy is going to be integrated into Solaris. >>>>> >>>>> Could you please help me to do G11N evaluation on it? >>>> >>>> Thanks for your notification. >>>> The evaluation will be finished in two weeks. >>>> >>>> I don't know what libproxy can do. >>>> I tried the example python code: >>>> http://code.google.com/p/libproxy/wiki/HowTo >>>> >>>> % /usr/bin/python2.6 a.py >>>> Traceback (most recent call last): >>>> File "a.py", line 3, in <module> >>>> import libproxy >>>> File "/usr/lib/python2.6/vendor-packages/libproxy.py", line 38, in >>>> <module> >>>> raise ImportError, "Unable to import libproxy!?!?" >>>> ImportError: Unable to import libproxy!?!? >>>> >>>> >>>> Are there something wrong? >>>> Does any application use /usr/lib/libproxy/0.2.3/plugins/gnome.so ? >>>> >>>> Thanks, >>>> fujiwara >>>> >>>>> >>>>> The spec file is spec-files/SUNWlibproxy.spec >>>>> >>>>> Thanks, >>>>> >>>>> Ke >>>>> >>>>> _______________________________________________ >>>>> desktop-discuss mailing list >>>>> desktop-discuss at opensolaris.org >>>>> >>>> >>> >>> _______________________________________________ >>> desktop-discuss mailing list >>> desktop-discuss at opensolaris.org >> >> >
