<?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: Newest version of dbx-workspace always returns NoneType in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/123487#M47020</link>
    <description>&lt;P&gt;It seems your issue is in getting the AAD token. You are using an SPN to authenticate. You can try to update the azure packages too.&lt;/P&gt;&lt;P&gt;azure-identity&amp;gt;=1.21.0&lt;BR /&gt;azure-core&amp;gt;=1.32.0&lt;BR /&gt;azure-mgmt-core&amp;gt;=1.6.0&lt;BR /&gt;databricks-sdk&amp;gt;=0.57.0&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2025 15:32:46 GMT</pubDate>
    <dc:creator>nayan_wylde</dc:creator>
    <dc:date>2025-07-01T15:32:46Z</dc:date>
    <item>
      <title>Newest version of dbx-workspace always returns NoneType</title>
      <link>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/122960#M46908</link>
      <description>&lt;P&gt;I just updated the `databricks-sdk` library to the newest version on PyPi, and for some reason, I am almost always getting this error:&lt;BR /&gt;&lt;BR /&gt;File "/home/site/wwwroot/.python_packages/lib/site-packages/databricks/sdk/credentials_provider.py", line 283, in token_source_for aad_endpoint = cfg.arm_environment.active_directory_endpoint AttributeError: 'NoneType' object has no attribute 'active_directory_endpoint'It happens within this function, and I've checked: no value is null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code that causes this issue&lt;BR /&gt;&lt;BR /&gt;self.client = WorkspaceClient( host=dbx_workspace, azure_workspace_resource_id=resource, azure_tenant_id=tenant_id, azure_client_id=client_id, azure_client_secret=client_secret, )&lt;BR /&gt;&lt;BR /&gt;Is it because of my requirements.txt? Is there a mismatch because it seemed to have worked before?&lt;/P&gt;&lt;P&gt;azure-functions==1.21.*&lt;BR /&gt;cffi==1.17.1&lt;BR /&gt;azure-servicebus&amp;lt;=7.14.1&lt;BR /&gt;azure-storage-queue==12.12.0&lt;BR /&gt;azure-mgmt-core&amp;gt;=1.5.0&lt;BR /&gt;invoke==2.2.0&lt;BR /&gt;black==25.1.0&lt;BR /&gt;flake8==7.1.2&lt;BR /&gt;pytest-cov==6.0.0&lt;BR /&gt;environs&lt;BR /&gt;regex==2024.11.6&lt;BR /&gt;requests==2.32.3&lt;BR /&gt;azure-keyvault-secrets&amp;lt;5.0.0,&amp;gt;=4.3.0&lt;BR /&gt;azure-identity==1.20.0&lt;BR /&gt;azure-mgmt-resource==23.3.0&lt;BR /&gt;azure-mgmt-datafactory==9.1.0&lt;BR /&gt;azure-core&amp;gt;=1.30.0&lt;BR /&gt;azure-common==1.1.28&lt;BR /&gt;kayday==2.2.6&lt;BR /&gt;jsonmerge==1.9.2&lt;BR /&gt;opencensus-ext-azure==1.1.14&lt;BR /&gt;tzlocal&amp;gt;=5.3&lt;BR /&gt;python-dateutil&amp;gt;=2.9.0&lt;BR /&gt;pika==1.3.2&lt;BR /&gt;protobuf==6.30.*&lt;BR /&gt;msal&amp;gt;=1.30.0&lt;BR /&gt;databricks-sdk&amp;gt;=0.57.0&lt;BR /&gt;psycopg2-binary==2.9.10&lt;BR /&gt;urllib3==2.3.0&lt;BR /&gt;cryptography==43.0.3 # pin to avoid breaking changes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 14:04:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/122960#M46908</guid>
      <dc:creator>pjruhnke</dc:creator>
      <dc:date>2025-06-26T14:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Newest version of dbx-workspace always returns NoneType</title>
      <link>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/123451#M47012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/172200"&gt;@pjruhnke&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't think this problem is related to your requirements.txt. I've created fresh python virtual environment using your requirements file and I in my case everything worked as expected.&lt;BR /&gt;Maybe try to once again, but this time create new virtual envirionment?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:53:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/123451#M47012</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-01T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Newest version of dbx-workspace always returns NoneType</title>
      <link>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/123487#M47020</link>
      <description>&lt;P&gt;It seems your issue is in getting the AAD token. You are using an SPN to authenticate. You can try to update the azure packages too.&lt;/P&gt;&lt;P&gt;azure-identity&amp;gt;=1.21.0&lt;BR /&gt;azure-core&amp;gt;=1.32.0&lt;BR /&gt;azure-mgmt-core&amp;gt;=1.6.0&lt;BR /&gt;databricks-sdk&amp;gt;=0.57.0&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 15:32:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/newest-version-of-dbx-workspace-always-returns-nonetype/m-p/123487#M47020</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-07-01T15:32:46Z</dc:date>
    </item>
  </channel>
</rss>

