<?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>question Re: Nifi 2.0.0 M1 Installation error with python in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/382161#M244507</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Oh, I successfully managed to integrate and run NiFi 2.0 with Python on Windows using the method you suggested. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jan 2024 13:52:51 GMT</pubDate>
    <dc:creator>Heeya8876</dc:creator>
    <dc:date>2024-01-13T13:52:51Z</dc:date>
    <item>
      <title>Nifi 2.0.0 M1 Installation error with python</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381430#M244312</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to install Nifi 2.0.0 M1 on Ubuntu 20.04. I downloaded Nifi from the official website and removed all HTTPS-related configurations. When I run Nifi with Python disabled, it works fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I enable Python, the following error occurs, and I'm not sure how to fix it. &lt;span class="lia-unicode-emoji" title=":worried_face:"&gt;😟&lt;/span&gt; Does anyone have any knowledge or experience with this? (Python 3.10 is installed.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Heeya8876_3-1703827210177.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39310i15047707CA9CF58E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Heeya8876_3-1703827210177.png" alt="Heeya8876_3-1703827210177.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Heeya8876_2-1703827194050.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39309iDFD35F1442C9BEB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Heeya8876_2-1703827194050.png" alt="Heeya8876_2-1703827194050.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Heeya8876_1-1703827185934.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39308iAE43B036198582A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Heeya8876_1-1703827185934.png" alt="Heeya8876_1-1703827185934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Heeya8876_0-1703827176410.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39307i814A607523596E72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Heeya8876_0-1703827176410.png" alt="Heeya8876_0-1703827176410.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 05:20:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381430#M244312</guid>
      <dc:creator>Heeya8876</dc:creator>
      <dc:date>2023-12-29T05:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 2.0.0 M1 Installation error with python</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381451#M244320</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108523"&gt;@Heeya8876&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into the same situation , what worked for me is changing the setting in the&lt;/P&gt;&lt;P&gt;nifi.properties&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;nifi.python.command=pythons&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;nifi.python.command=python&lt;/P&gt;&lt;P&gt;Also make sure the python venv package is installed on your machine :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;python&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;m&lt;/SPAN&gt; &lt;SPAN class="n"&gt;venv&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 13:42:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381451#M244320</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-12-29T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 2.0.0 M1 Installation error with python</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381465#M244327</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108523"&gt;@Heeya8876&lt;/a&gt;&amp;nbsp;, both&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;and I have recently gone through the adventures of getting 2.0.0-M1 to run with the Python extension enabled.&amp;nbsp; Here are some findings so far on the Linux side of things.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Java 21 is required (any platform)&lt;/LI&gt;&lt;LI&gt;Python 3.9+ (any platform) is required (I believe&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;, correct me if I'm wrong, said Python 3.12 did NOT work, but we both got 3.11 to run)&lt;/LI&gt;&lt;LI&gt;If it's installed, make sure it's the default set with "&lt;STRONG&gt;sudo update-alternatives java&lt;/STRONG&gt;"&lt;/LI&gt;&lt;LI&gt;Make sure your environment has JAVA_HOME defined with the path for Java 21&lt;/LI&gt;&lt;LI&gt;Make sure Python3.9+ is the default prior to running NiFi with "&lt;STRONG&gt;sudo update-alternatives --config python3&lt;/STRONG&gt;"&lt;/LI&gt;&lt;LI&gt;Executing python3 --version should show whichever version you set as your default and it should be 3.9~3.11&lt;/LI&gt;&lt;LI&gt;You can see what version was copied by NiFi in the directory "&lt;STRONG&gt;./work/python/controller/bin/python3 --version&lt;/STRONG&gt;"&lt;/LI&gt;&lt;LI&gt;If this is showing anything &amp;lt;3.9 then delete the work folder, follow the steps above, and try again.&lt;/LI&gt;&lt;LI&gt;If you build a processor from scratch the Developer guide says to use this for your __init__&lt;BR /&gt;&lt;PRE&gt;def __init__(self, **kwargs):
        super().__init__(**kwargs)&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;You'll get an error...replace super().__init__(**kwargs) with &lt;STRONG&gt;pass&lt;/STRONG&gt; like the examples that come with the install.&lt;/LI&gt;&lt;LI&gt;Changes to your Python extensions are not immediate....NiFi polls the directory periodically to detect changes, download dependencies, and load the updated processors. Sometimes I had to restart NiFi to get it to detect my changes if my previous code update made it really unhappy.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;./logs/nifi-python.log&lt;/STRONG&gt; will be your friend for Python extension related issues&lt;/LI&gt;&lt;LI&gt;If your Python extension has dependencies and it fails to download them you can see the command it attempted in nifi-python.log; I manually ran the commands in the logs and it downloaded the modules into the correct place and worked...perhaps there's a timeout for module downloads? (just a guess since the module had a ton of large dependencies)&lt;/LI&gt;&lt;LI&gt;I don't think I saw it in the Developer's Guide but did notice while building a custom&amp;nbsp;FlowFileTransform Python extension, the "content" data returned with the&amp;nbsp; FlowFileTransformResult should be a string or byte array.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;has additional insight on getting it to start up on Windows&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 17:39:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381465#M244327</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-12-29T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 2.0.0 M1 Installation error with python</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381774#M244402</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108523"&gt;@Heeya8876&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 01:36:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381774#M244402</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-01-09T01:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 2.0.0 M1 Installation error with python</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/382160#M244506</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! I followed the instructions you provided, and the problem has been resolved. Thank you so much for your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 13:51:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/382160#M244506</guid>
      <dc:creator>Heeya8876</dc:creator>
      <dc:date>2024-01-13T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 2.0.0 M1 Installation error with python</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/382161#M244507</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Oh, I successfully managed to integrate and run NiFi 2.0 with Python on Windows using the method you suggested. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 13:52:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/382161#M244507</guid>
      <dc:creator>Heeya8876</dc:creator>
      <dc:date>2024-01-13T13:52:51Z</dc:date>
    </item>
  </channel>
</rss>

