<?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 3.10.12: Exception: Unable to generate oauth token in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-3-10-12-exception-unable-to-generate-oauth/m-p/1369992#M9521</link>
    <description>&lt;P&gt;Just to add, no proxy, firewall or anything in between.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jan 2024 11:56:35 GMT</pubDate>
    <dc:creator>Stefan</dc:creator>
    <dc:date>2024-01-14T11:56:35Z</dc:date>
    <item>
      <title>Python 3.10.12: Exception: Unable to generate oauth token</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-3-10-12-exception-unable-to-generate-oauth/m-p/1369989#M9520</link>
      <description>&lt;P&gt;Good afternoon everyone,&lt;/P&gt;&lt;P&gt;I have a script running on Windows on the python version provided with ArcGIS Pro. But if I try to use the same script on my Ubuntu machine, it fails to authenticate while it creates the GIS connection:&lt;/P&gt;&lt;P&gt;Command in the script:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;import arcgis&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;gis = arcgis.GIS(username= 'xx.xxx', password= 'xxxxxxxxxxxxxxxxxxx')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Error message I get:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "/root/.local/share/virtualenvs/root-BuDEOXnJ/lib/python3.10/site-packages/arcgis/auth/_auth/_token.py", line 841, in token&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;self._init_response_type_token()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "/root/.local/share/virtualenvs/root-BuDEOXnJ/lib/python3.10/site-packages/arcgis/auth/_auth/_token.py", line 540, in _init_response_type_token&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;raise Exception("Unable to generate oauth token")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Exception: Unable to generate oauth token&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Python Version on Windows:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Python 3.9.18 [MSC v.1931 64 bit (AMD64)] :: Anaconda, Inc. on win32&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Python Version on Ubuntu:&lt;/P&gt;&lt;P&gt;Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Stefan&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;</description>
      <pubDate>Sun, 14 Jan 2024 11:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-3-10-12-exception-unable-to-generate-oauth/m-p/1369989#M9520</guid>
      <dc:creator>Stefan</dc:creator>
      <dc:date>2024-01-14T11:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3.10.12: Exception: Unable to generate oauth token</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-3-10-12-exception-unable-to-generate-oauth/m-p/1369992#M9521</link>
      <description>&lt;P&gt;Just to add, no proxy, firewall or anything in between.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 11:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-3-10-12-exception-unable-to-generate-oauth/m-p/1369992#M9521</guid>
      <dc:creator>Stefan</dc:creator>
      <dc:date>2024-01-14T11:56:35Z</dc:date>
    </item>
  </channel>
</rss>

