<?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: Error to import module in python using TOS in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377711#M139522</link>
    <description>&lt;P&gt;#1 The one i run in terminal succeed is because i put the python module script using the same dir. however, in Talend studio i think its using the diff dir as in terminal, where the dir in TOS is:&lt;/P&gt;&lt;P&gt;&lt;B&gt;/data/Talend-7.3.1/jobserver/agent/TalendJobServersFiles/repository/filepath_20220124_173021_mM8rA/jobname/subfilepath/jobname_0_1/resources/.  &lt;/B&gt;so Im not so sure how should i run the python script for module or how should I pass the module to the spark job script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#2 that solution doesnt work as it can simply install using pip install unidecode. However, mine is using python script. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 09:37:05 GMT</pubDate>
    <dc:creator>WSyahirah21</dc:creator>
    <dc:date>2022-01-24T09:37:05Z</dc:date>
    <item>
      <title>Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377706#M139517</link>
      <description>&lt;P&gt;Im currently trying to run a spark job where the job will use a module that is imported from a python script. This job works when I run it in terminal as I run the spark job in the same directory where the python script (for library) is stored. &lt;/P&gt;&lt;P&gt;However, when I tried to run the spark job in TOS, it returns this error:&lt;/P&gt;&lt;P&gt;&lt;I&gt;from filename import full_ingestion&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;ImportError: No module named filename &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I assumed that the talend cant found the library, so I used tLibraryLoad to import the new library to TOS and set it up as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2udtAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140818i312BF2A43E69A8EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2udtAAB.png" alt="0695b00000N2udtAAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In tLibraryLoad_1 : &lt;/P&gt;&lt;P&gt;basic setting : &lt;A href="http://filename.py" alt="http://filename.py" target="_blank"&gt;filename.py&lt;/A&gt; (this is the library script I wrote in python)&lt;/P&gt;&lt;P&gt;advanced setting : import full_ingestion (full_ingestion is a function in &lt;A href="http://filename.py" alt="http://filename.py" target="_blank"&gt;filename.py&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;In tSystem component:&lt;/P&gt;&lt;P&gt;-&amp;gt; In spark job script , put &lt;B&gt;import full_ingestion&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;However, I received this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2ufuAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156660i28AA10349DBFD524/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2ufuAAB.png" alt="0695b00000N2ufuAAB.png" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;Am i do a correct way to import a library created in python script to the spark job in TOS. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377706#M139517</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2024-11-15T23:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377707#M139518</link>
      <description>&lt;P&gt;HI, i think tLibraryLoad is for java library, if you want to execute pyton script you surely have to use tSystem component and use a cmd to run the script in the tSystemComponent. Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377707#M139518</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-24T08:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377708#M139519</link>
      <description>&lt;P&gt;Do u know how is it possible for me to use python module and import it into a script? Im currently using tSystemComponent to run the python script but it requires me to import the python module first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;exp:&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;from python_filename import anylibrary&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377708#M139519</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-01-24T08:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377709#M139520</link>
      <description>&lt;P&gt;you have to reproduce the command you use when you say 'This job works when I run it in terminal as I run the spark job in the same directory where the python script (for library) is stored'.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377709#M139520</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-24T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377710#M139521</link>
      <description>&lt;P&gt;I also found this workaround maybe it can help you :&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/42344399/error-executing-python-script-file-through-talend-tsystem" alt="https://stackoverflow.com/questions/42344399/error-executing-python-script-file-through-talend-tsystem" target="_blank"&gt;https://stackoverflow.com/questions/42344399/error-executing-python-script-file-through-talend-tsystem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe you don't have to install it in this specific folder but just in the plugin folder&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377710#M139521</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-24T08:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377711#M139522</link>
      <description>&lt;P&gt;#1 The one i run in terminal succeed is because i put the python module script using the same dir. however, in Talend studio i think its using the diff dir as in terminal, where the dir in TOS is:&lt;/P&gt;&lt;P&gt;&lt;B&gt;/data/Talend-7.3.1/jobserver/agent/TalendJobServersFiles/repository/filepath_20220124_173021_mM8rA/jobname/subfilepath/jobname_0_1/resources/.  &lt;/B&gt;so Im not so sure how should i run the python script for module or how should I pass the module to the spark job script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#2 that solution doesnt work as it can simply install using pip install unidecode. However, mine is using python script. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 09:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377711#M139522</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-01-24T09:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377712#M139523</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I have a csv File&lt;/P&gt;&lt;P&gt;name; FirstName ; numero;adresse&lt;/P&gt;&lt;P&gt;1 a;b;12,xx&lt;/P&gt;&lt;P&gt;2 c;b;13;yy&lt;/P&gt;&lt;P&gt;3 x;y;47;zz&lt;/P&gt;&lt;P&gt;4 e;r;45;tt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want identify the doublon row by FirstName( here row number 1 and 2 firstName =b )&lt;/P&gt;&lt;P&gt;and i want to update the csv file to add new column "status" NotUnique like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;name; FirstName ; numero;adresse;status&lt;/P&gt;&lt;P&gt;1 a;b;12,xx;NotUnique&lt;/P&gt;&lt;P&gt;2 c;b;13;yy;NotUnique&lt;/P&gt;&lt;P&gt;3 x;y;47;zz;unique&lt;/P&gt;&lt;P&gt;4 e;r;45;tt;unique&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can some one help me&lt;/P&gt;&lt;P&gt;Thank you very mutch in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 18:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377712#M139523</guid>
      <dc:creator>ddduser1643959971</dc:creator>
      <dc:date>2022-02-12T18:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error to import module in python using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377713#M139524</link>
      <description>&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;I am trying to run python script in TAC,&lt;/P&gt;&lt;P&gt;I am getting this error.Please help me out .It is very critical for me.&lt;/P&gt;&lt;P&gt;Traceback (most recent call last): &lt;/P&gt;&lt;P&gt; File "C:\Users\Talenderuser1\Desktop\Talend\python\LuLu_Client_machine.py", line 1, in &amp;lt;module&amp;gt; &lt;/P&gt;&lt;P&gt; from bs4 import BeautifulSoup &lt;/P&gt;&lt;P&gt; ModuleNotFoundError: No module named 'bs4' &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Your responce is very valuable to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 09:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-to-import-module-in-python-using-TOS/m-p/2377713#M139524</guid>
      <dc:creator>NNekkanti1658462243</dc:creator>
      <dc:date>2022-08-31T09:51:45Z</dc:date>
    </item>
  </channel>
</rss>

