<?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: Python tasks ran from a code repository throws an error in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247354#M528</link>
    <description>&lt;P&gt;Running on 5.4.5-2.&lt;/P&gt;
&lt;P&gt;Tks,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 17:22:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2022-05-19T17:22:11Z</dc:date>
    <item>
      <title>Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247352#M526</link>
      <description>&lt;P&gt;I have python task script  that I run as a local task it runs fine, when I check it into to a repo and create a task and source it from the repo, it throws this error:&lt;BR /&gt;
Error Executing Python Task morpheus-request-gitlab - Cannot get property ‘absolutePath’ on null object&lt;/P&gt;
&lt;P&gt;The task is simple.&lt;BR /&gt;
import requests&lt;BR /&gt;
x = requests.get(‘&lt;A href="https://www.microsoft.com" rel="noopener nofollow ugc"&gt;https://www.microsoft.com&lt;/A&gt;’)&lt;BR /&gt;
print(x.status_code)&lt;/P&gt;
&lt;P&gt;In the python task I ADDITIONAL PACKAGES  requests  added&lt;/P&gt;
&lt;P&gt;Is there a reason why a python task would not work through a repo and does work via a local sourced task??&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247352#M526</guid>
      <dc:creator />
      <dc:date>2022-05-19T14:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247353#M527</link>
      <description>&lt;P&gt;It is not a bad path to the repo.  In that I am able to see the code in the Provisioning&amp;gt;Code &amp;gt;Repository and&lt;BR /&gt;
if I click on the Name hyperlink for the python repo integrated task it displays the code in the summary.&lt;/P&gt;
&lt;P&gt;But, alas it was throwing git errors in the morpheus logfile when I executed the task.  So i renamed the code to something else in the git repo, created a new python task in morpheus sourced the new filename from the git repo and it works now.  I also turned on git caching on the git integration.  Your git integration…the error it was throwing was not indicative of a git error, thanks for the hint.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247353#M527</guid>
      <dc:creator />
      <dc:date>2022-05-19T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247354#M528</link>
      <description>&lt;P&gt;Running on 5.4.5-2.&lt;/P&gt;
&lt;P&gt;Tks,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 17:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247354#M528</guid>
      <dc:creator />
      <dc:date>2022-05-19T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247355#M529</link>
      <description>&lt;P&gt;Chris,&lt;BR /&gt;
No, not the path but the repos directory actually it checks each repo with a git status,  if it is clean then I do nothing to it,  if git status returns an error then I back up a directory and remove the git repo directory that gave the error.&lt;/P&gt;
&lt;P&gt;Sorry the job runs every 15 mins not 5 mins.&lt;/P&gt;
&lt;P&gt;Tks,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 17:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247355#M529</guid>
      <dc:creator />
      <dc:date>2022-05-19T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247356#M530</link>
      <description>&lt;P&gt;Hmmm. Curious if there was a bad cache.  Instead of renaming, clearing the directory cache(s) at &lt;CODE style="background : #f0f1f2;"&gt;/var/opt/morpheus/morpheus-ui/repo/git/&lt;/CODE&gt; may help in the future.&lt;/P&gt;
&lt;P&gt;Quick question, what version of Morpheus are you currently on and which did you most recently come from?  We did recently move the execution path for Python to running on the local front end nodes, rather than the shared NFS space in HA environments to help with public cloud performances.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247356#M530</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-05-19T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247357#M531</link>
      <description>&lt;P&gt;You have a manual job to purge that path?  Shouldn’t be required to have anything like that and most likely would cause conflicts with the files.  Also, defeats the git cache checkbox &lt;IMG src="https://emoji.discourse-cdn.com/twitter/wink.png?v=12" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 16:02:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247357#M531</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-05-19T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247358#M532</link>
      <description>&lt;P&gt;I have a job running that does that every 5 mins.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:27:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247358#M532</guid>
      <dc:creator />
      <dc:date>2022-05-19T15:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247359#M533</link>
      <description>&lt;P&gt;Chris, yep tried deleting the directory first before I resorted to recreating in a different name.  Yes saw that the python virtualenv is running from morpheus-local now.  In a HA env, it changed the Task execution time from 55 seconds on average to 6 - 8 seconds. HA common filesystem in this case is AWS EFS filesystem. Good stuff!&lt;BR /&gt;
Tks,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 16:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247359#M533</guid>
      <dc:creator />
      <dc:date>2022-05-20T16:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python tasks ran from a code repository throws an error</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247360#M534</link>
      <description>&lt;P&gt;What does your filepath and repo look like? Sounds like a bad path to the file itself.  Should be something like:&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150041i500F7A710E909120/image-size/large?v=v2&amp;amp;px=2000" role="button" title="8d1989335abe5b049e39fa78e27eeee6a393c68e.png" alt="8d1989335abe5b049e39fa78e27eeee6a393c68e.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:32:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/python-tasks-ran-from-a-code-repository-throws-an-error/m-p/7247360#M534</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-05-19T14:32:17Z</dc:date>
    </item>
  </channel>
</rss>

