<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] Python code - tJython in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373591#M136299</link>
    <description>&lt;PRE&gt;x = input()&lt;BR /&gt;y = input()&lt;BR /&gt;print x/y&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Feb 2013 12:01:22 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-02-05T12:01:22Z</dc:date>
    <item>
      <title>[resolved] Python code - tJython</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373587#M136295</link>
      <description>Hi, &lt;BR /&gt;I am trying to implement a piece of code written in Python in to Talend(TOS). I found a component for this reason tJython but the main point is to interpret the python code to Jython. And the fact is that I am new to Jython. Can someone kindly help me with implementing the code?&lt;BR /&gt;&lt;BR /&gt;this is the Python code:&lt;BR /&gt;&lt;PRE&gt;import csv&lt;BR /&gt;from itertools import izip&lt;BR /&gt;a = izip(*csv.reader(open("input.csv", "rb")))&lt;BR /&gt;csv.writer(open("output.csv", "wb")).writerows(a)&lt;/PRE&gt;&lt;BR /&gt;The code is to transpose a csv file from column to row.&lt;BR /&gt;Your help is much appreciated.&lt;BR /&gt;Pouya</description>
      <pubDate>Sat, 16 Nov 2024 12:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373587#M136295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Python code - tJython</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373588#M136296</link>
      <description>Hi Pouya,&lt;BR /&gt;Did you try the code above?  If you did and it didn't work, what was the error you received?&lt;BR /&gt;I have not used Jython, but my understanding is that Jython syntax is identical to Python except for using some java specific libraries as collections; it just allows Python to run through the JVM.&lt;BR /&gt;This is probably a good reference to get started.&lt;BR /&gt;&lt;A href="http://www.jython.org/jythonbook/en/1.0/" rel="nofollow noopener noreferrer"&gt;http://www.jython.org/jythonbook/en/1.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Ben</description>
      <pubDate>Thu, 17 May 2012 21:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373588#M136296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T21:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Python code - tJython</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373589#M136297</link>
      <description>Hi Ben, &lt;BR /&gt;Many thanks for your response.&lt;BR /&gt;I created a job so that it emails me when an exception is thrown. And this is the error message I am getting "org.python.core.PyException:null" .&lt;BR /&gt;I believe the above code which is a pure Python code must be interpreted for JVM. And that's where Jython comes in which I am not that knowledgeable about.&lt;BR /&gt;Thanks for the reference you sent. I will have a look. But in case if the above error code is familiar for you I appreciate your help.&lt;BR /&gt;Cheers&lt;BR /&gt;Pouya</description>
      <pubDate>Fri, 18 May 2012 13:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373589#M136297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T13:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Python code - tJython</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373590#M136298</link>
      <description>I'm a Python n00b, but I think this means you are trying to import the Java class org.python.core.PyException into Jython.  Try adding the class to the classpath variables.  &lt;BR /&gt;Windows &amp;gt; Preference &amp;gt; Java &amp;gt; Buildpath &amp;gt; Classpath Variables</description>
      <pubDate>Fri, 18 May 2012 16:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373590#M136298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T16:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Python code - tJython</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373591#M136299</link>
      <description>&lt;PRE&gt;x = input()&lt;BR /&gt;y = input()&lt;BR /&gt;print x/y&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2013 12:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Python-code-tJython/m-p/2373591#M136299</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-02-05T12:01:22Z</dc:date>
    </item>
  </channel>
</rss>

