<?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: Getting errors while following Microsoft Databricks Best-Practices for DevOps Integration in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/getting-errors-while-following-microsoft-databricks-best/m-p/26242#M18350</link>
    <description>&lt;P&gt;Closing the loop on this in case anyone gets stuck in the same situation. You can see in the images that the transforms_test.py shows a different icon then the testdata.csv. This is because it was saved as a juypter notebook not a .py file. When the script runs it's trying to access the file but breaks because it can't use the notebook. Re-creating the file as a .py fixed the issue. &lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 18:09:38 GMT</pubDate>
    <dc:creator>Chris_Shehu</dc:creator>
    <dc:date>2022-10-24T18:09:38Z</dc:date>
    <item>
      <title>Getting errors while following Microsoft Databricks Best-Practices for DevOps Integration</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-errors-while-following-microsoft-databricks-best/m-p/26241#M18349</link>
      <description>&lt;P&gt;I'm currently trying to follow the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/best-practices" alt="https://learn.microsoft.com/en-us/azure/databricks/notebooks/best-practices" target="_blank"&gt;Software engineering best practices for notebooks - Azure Databricks&lt;/A&gt; guide but I keep running into the following during step 4.5: Run the test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================= test session starts ==============================&lt;/P&gt;&lt;P&gt;platform linux -- Python 3.9.5, pytest-7.1.2, pluggy-1.0.0&lt;/P&gt;&lt;P&gt;rootdir: /Workspace/Repos/CHNW/Development&lt;/P&gt;&lt;P&gt;collected 0 items / 1 error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==================================== ERRORS ====================================&lt;/P&gt;&lt;P&gt;__________________ ERROR collecting tests/transforms_test.py ___________________&lt;/P&gt;&lt;P&gt;/usr/lib/python3.9/importlib/__init__.py:127: in import_module&lt;/P&gt;&lt;P&gt;    return _bootstrap._gcd_import(name[level:], package, level)&lt;/P&gt;&lt;P&gt;&amp;lt;frozen importlib._bootstrap&amp;gt;:1030: in _gcd_import&lt;/P&gt;&lt;P&gt;    ???&lt;/P&gt;&lt;P&gt;&amp;lt;frozen importlib._bootstrap&amp;gt;:1007: in _find_and_load&lt;/P&gt;&lt;P&gt;    ???&lt;/P&gt;&lt;P&gt;&amp;lt;frozen importlib._bootstrap&amp;gt;:986: in _find_and_load_unlocked&lt;/P&gt;&lt;P&gt;    ???&lt;/P&gt;&lt;P&gt;&amp;lt;frozen importlib._bootstrap&amp;gt;:680: in _load_unlocked&lt;/P&gt;&lt;P&gt;    ???&lt;/P&gt;&lt;P&gt;/local_disk0/.ephemeral_nfs/envs/pythonEnv-d47fc3aa-b110-485d-9084-2b0093f9502e/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:159: in exec_module&lt;/P&gt;&lt;P&gt;    source_stat, co = _rewrite_test(fn, self.config)&lt;/P&gt;&lt;P&gt;/local_disk0/.ephemeral_nfs/envs/pythonEnv-d47fc3aa-b110-485d-9084-2b0093f9502e/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:357: in _rewrite_test&lt;/P&gt;&lt;P&gt;    source = fn.read_bytes()&lt;/P&gt;&lt;P&gt;/usr/lib/python3.9/pathlib.py:1249: in read_bytes&lt;/P&gt;&lt;P&gt;    with self.open(mode='rb') as f:&lt;/P&gt;&lt;P&gt;/usr/lib/python3.9/pathlib.py:1242: in open&lt;/P&gt;&lt;P&gt;    return io.open(self, mode, buffering, encoding, errors, newline,&lt;/P&gt;&lt;P&gt;/usr/lib/python3.9/pathlib.py:1110: in _opener&lt;/P&gt;&lt;P&gt;    return self._accessor.open(self, flags, mode)&lt;/P&gt;&lt;P&gt;E   OSError: [Errno 95] Operation not supported: '/Workspace/Repos/CHNW/Development/tests/transforms_test.py'&lt;/P&gt;&lt;P&gt;=========================== short test summary info ============================&lt;/P&gt;&lt;P&gt;ERROR tests/transforms_test.py - OSError: [Errno 95] Operation not supported:...&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;=============================== 1 error in 1.19s ===============================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running a 11+ cluster for this process and have confirmed multiple times that my setup matches the setup in the documentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1336i96417124E45A2633/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1330i062C1E8CAD8B91D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1325iECF3E6476F51F5A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1337i81CC0BE2733E9B66/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1327i4047A012245AF411/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;I'm not sure what I'm missing as this is mostly copy/paste&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 13:17:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-errors-while-following-microsoft-databricks-best/m-p/26241#M18349</guid>
      <dc:creator>Chris_Shehu</dc:creator>
      <dc:date>2022-10-21T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting errors while following Microsoft Databricks Best-Practices for DevOps Integration</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-errors-while-following-microsoft-databricks-best/m-p/26242#M18350</link>
      <description>&lt;P&gt;Closing the loop on this in case anyone gets stuck in the same situation. You can see in the images that the transforms_test.py shows a different icon then the testdata.csv. This is because it was saved as a juypter notebook not a .py file. When the script runs it's trying to access the file but breaks because it can't use the notebook. Re-creating the file as a .py fixed the issue. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 18:09:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-errors-while-following-microsoft-databricks-best/m-p/26242#M18350</guid>
      <dc:creator>Chris_Shehu</dc:creator>
      <dc:date>2022-10-24T18:09:38Z</dc:date>
    </item>
  </channel>
</rss>

