<?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: Issue with pydantic in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1707168#M11964</link>
    <description>&lt;P&gt;sounds like an issue with what you are using whatever MockValSer is.&lt;/P&gt;&lt;P&gt;Tech Support would be your best bet, especially since you have the correct version of pydantic installed for your version of Pro.&amp;nbsp; Perhaps other issues have been seen that are addressed in more recent versions of Pro.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2026 15:48:55 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2026-06-09T15:48:55Z</dc:date>
    <item>
      <title>Issue with pydantic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1706808#M11961</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm migrating from ArcGIS Pro 3.1 to 3.4 and updating my code from `arcgis.mapping.WebMap` to `arcgis.map.Map` accordingly.&lt;/P&gt;&lt;P&gt;**Environment:**&lt;BR /&gt;- ArcGIS Pro 3.4&lt;BR /&gt;- arcgis 2.4.0&lt;BR /&gt;- arcgis-mapping 4.30.0&lt;BR /&gt;- Python 3.11 (conda env)&lt;BR /&gt;- Windows 10&lt;/P&gt;&lt;P&gt;**The issue:**&lt;BR /&gt;When instantiating `Map(item=webmap_item)`, I get the following error:&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;TypeError: 'MockValSer' object is not an instance of 'SchemaSerializer'&lt;BR /&gt;File "...arcgis\map\map_widget.py", line 488, in _update_source&lt;BR /&gt;self._webmap_dict = self._webmap.dict()&lt;BR /&gt;File "...arcgis\map\_dataclasses\_webmap_spec.py", line 73, in dict&lt;BR /&gt;d = super().model_dump(&lt;BR /&gt;File "...pydantic\main.py", line 475, in model_dump&lt;BR /&gt;return self.__pydantic_serializer__.to_python(&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;This seems to be a conflict between `arcgis-mapping 4.30.0` and pydantic v2. I've tried multiple pydantic v2 versions (2.4.0, 2.5.0, 2.13.4) with their matching `pydantic-core` versions, reinstalling from both pip and conda-forge, but the error persists.&lt;/P&gt;&lt;P&gt;Has anyone successfully used `arcgis.map.Map` on Windows with ArcGIS Pro 3.4? If so, what exact version of pydantic are you running?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 11:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1706808#M11961</guid>
      <dc:creator>HamzaMerini</dc:creator>
      <dc:date>2026-06-08T11:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with pydantic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1706883#M11962</link>
      <description>&lt;P&gt;2.4.2 according to the package release by version document&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcpy/blob/main/docs/ArcGIS-Pro-Python-Distribution-By-Release.pdf" target="_blank"&gt;arcpy/docs/ArcGIS-Pro-Python-Distribution-By-Release.pdf at main · Esri/arcpy&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 15:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1706883#M11962</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2026-06-08T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with pydantic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1707107#M11963</link>
      <description>&lt;P&gt;I updated pydantic to 2.4.2 but still have an issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HamzaMerini_0-1781011022929.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/153619i292647C306041861/image-size/large?v=v2&amp;amp;px=999" role="button" title="HamzaMerini_0-1781011022929.png" alt="HamzaMerini_0-1781011022929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 13:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1707107#M11963</guid>
      <dc:creator>HamzaMerini</dc:creator>
      <dc:date>2026-06-09T13:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with pydantic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1707168#M11964</link>
      <description>&lt;P&gt;sounds like an issue with what you are using whatever MockValSer is.&lt;/P&gt;&lt;P&gt;Tech Support would be your best bet, especially since you have the correct version of pydantic installed for your version of Pro.&amp;nbsp; Perhaps other issues have been seen that are addressed in more recent versions of Pro.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 15:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-with-pydantic/m-p/1707168#M11964</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2026-06-09T15:48:55Z</dc:date>
    </item>
  </channel>
</rss>

