Hi Again:
Perhaps you could provide evidence of your example? I tried it out
but didn't have any success. Clearly I am doing something incorrect.
Here is my example trying what you recommended:
ouray@...$ export
JYTHONPATH=/usr/lib/pymodules/python2.7/suds/
ouray@...$ jython
Jython 2.2.1 on java1.6.0_24
Type "copyright", "credits" or "license" for more information.
>>> from suds import *
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: no module named suds
>>> from client import *
Traceback (innermost last):
File "<console>", line 1, in ?
File "/usr/lib/pymodules/python2.7/suds/client.py", line 64
@classmethod
^
SyntaxError: Lexical error at line 64, column 5. Encountered: "@"
(64), after : ""
Any suggestions.
Cheers,
Ouray
On Wed, Jul 13, 2011 at 6:12 PM, Brandon Pedersen <bpedman@...> wrote:
> I didn't have to make any fixes. All I did was download the suds
> tarball and I actually didn't install it using setup.py, I just
> extracted the tarball and just added the python-suds-0.4 directory to
> my JYTHONPATH environment variable..
>
> On Wed, Jul 13, 2011 at 3:08 PM, Ouray Viney <ouray@...> wrote:
>> Hi:
>>
>> It is entirely possible, but I am relatively new to this sort of
>> development. Could you possibly provide instructions on how you fixed
>> this?
>>
>> Greatly appreciated.
>>
>> On Wed, Jul 13, 2011 at 1:55 PM, Brandon Pedersen <bpedman@...> wrote:
>>> I actually use suds with Jython without any problems....you sure this
>>> isn't just a path problem?
>>>
>>> On Thu, Jul 7, 2011 at 5:01 PM, Ouray Viney <ouray@...> wrote:
>>>> actually, was just doing some research on the topic again... and found
>>>> a site that talks about compiling all the java stubs into a jar and
>>>> add that to your project workspace.
>>>>
>>>> http://www.fishandcross.com/blog/?p=503
>>>>
>>>> I was just trying to stay away from the Java stubs. Prefer "reading
>>>> wsdl at runtime" approach that "suds" takes.
>>>>
>>>> Cheers,
>>>>
>>>> Ouray
>>>>
>>>> On Thu, Jul 7, 2011 at 6:46 PM, Ouray Viney <ouray@...> wrote:
>>>>> Hi Pierre:
>>>>>
>>>>> I appreciate your feedback. The only reason I didn't want to choose
>>>>> Java initially was because a lot of the examples that I found made us
>>>>> of generate Java stub files, which I was hoping to avoid.
>>>>>
>>>>> I appreciate your examples, which I will certainly try when time
>>>>> permits. Much appreciated!
>>>>>
>>>>> Any suggetions?
>>>>>
>>>>> Kind Rgds,
>>>>>
>>>>> Ouray
>>>>>
>>>>> On Thu, Jul 7, 2011 at 6:19 PM, Pierre Thibault
>>>>> <pierre.thibault1@...> wrote:
>>>>>> 2011/7/7 Ouray Viney <ouray@...>
>>>>>>>
>>>>>>> Do you have any ideas how to add the suds packages to the sys.path in
>>>>>>> Jython?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Ouray
>>>>>>>
>>>>>>
>>>>>> The problem is really Python C extension that cannot be used. Here is one
>>>>>> way to fix it:
>>>>>>
>>>>>> - Use JNI to create a Java interface for the native code.
>>>>>> - Patch the Python using the C extension to rely on the interface you
>>>>>> created in the previous step. I give an example on how this can be done in
>>>>>> Python at http://pierrethibault.posterous.com/tag/aop.
>>>>>>
>>>>>> This is a lot of work but I see no reason why it wouldn’t work.
>>>>>>
>>>>>> Why not use a Java library from Jython instead?
>>>>>> --
>>>>>>
>>>>>>
>>>>>> A+
>>>>>>
>>>>>> -------------
>>>>>> Pierre
>>>>>> My blog and profile (http://pierrethibault.posterous.com)
>>>>>> YouTube page (http://www.youtube.com/user/tubetib)
>>>>>> Twitter (http://twitter.com/pierreth2)
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> All of the data generated in your IT infrastructure is seriously valuable.
>>>>>> Why? It contains a definitive record of application performance, security
>>>>>> threats, fraudulent activity, and more. Splunk takes this data and makes
>>>>>> sense of it. IT sense. And common sense.
>>>>>> http://p.sf.net/sfu/splunk-d2d-c2
>>>>>> _______________________________________________
>>>>>> Jython-users mailing list
>>>>>> Jython-users@...
>>>>>> https://lists.sourceforge.net/lists/listinfo/jython-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ouray Viney
>>>>> http://www.viney.ca
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ouray Viney
>>>> http://www.viney.ca
>>>>
>>>> ------------------------------------------------------------------------------
>>>> All of the data generated in your IT infrastructure is seriously valuable.
>>>> Why? It contains a definitive record of application performance, security
>>>> threats, fraudulent activity, and more. Splunk takes this data and makes
>>>> sense of it. IT sense. And common sense.
>>>> http://p.sf.net/sfu/splunk-d2d-c2
>>>> _______________________________________________
>>>> Jython-users mailing list
>>>> Jython-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/jython-users
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> AppSumo Presents a FREE Video for the SourceForge Community by Eric
>>> Ries, the creator of the Lean Startup Methodology on "Lean Startup
>>> Secrets Revealed." This video shows you how to validate your ideas,
>>> optimize your ideas and identify your business strategy.
>>> http://p.sf.net/sfu/appsumosfdev2dev
>>> _______________________________________________
>>> Jython-users mailing list
>>> Jython-users@...
>>> https://lists.sourceforge.net/lists/listinfo/jython-users
>>>
>>
>>
>>
>> --
>> Ouray Viney
>> http://www.viney.ca
>>
>
--
Ouray Viney
http://www.viney.ca
|