<?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: No module named 'notebook.notebookapp' in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1548237#M10762</link>
    <description>&lt;P&gt;It looks like I currently have 2.3.1 installed. When I try to upgrade I get the following error message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;pip install arcgis==2.4.0&lt;BR /&gt;ERROR: Ignored the following yanked versions: 1.8.5.post1, 1.8.5.post2&lt;BR /&gt;ERROR: Ignored the following versions that require a different python version: 2.4.0 Requires-Python &amp;lt;3.13,&amp;gt;=3.10&lt;BR /&gt;ERROR: Could not find a version that satisfies the requirement arcgis==2.4.0 (from versions: 1.3.0, 1.3.0.post1, 1.3.0.post2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.2.post1, 1.5.3, 1.6.0, 1.6.1, 1.6.1.post1, 1.6.2, 1.6.2.post1, 1.7.0, 1.7.1, 1.8.0, 1.8.0.post1, 1.8.1, 1.8.2, 1.8.3, 1.8.3.post1, 1.8.3.post2, 1.8.4, 1.8.5.post3, 1.9.0, 1.9.1, 2.0.0, 2.0.1, 2.1.0, 2.1.0.1, 2.1.0.2, 2.1.0.3, 2.1.0.4, 2.1.0.5, 2.2.0, 2.2.0.1, 2.2.0.2, 2.2.0.3, 2.2.0.4, 2.3.0, 2.3.0.1, 2.3.0.2, 2.3.0.3, 2.3.1)&lt;BR /&gt;ERROR: No matching distribution found for arcgis==2.4.0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 11 Oct 2024 23:56:56 GMT</pubDate>
    <dc:creator>RogerAsbury</dc:creator>
    <dc:date>2024-10-11T23:56:56Z</dc:date>
    <item>
      <title>No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1546640#M10747</link>
      <description>&lt;P&gt;I have, what I'm assuming is a pretty basic function, mostly pulled from an esri tutorial. However, it's running on an Azure function app in Python. The function below errors on that server with the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class=""&gt;2024-10-08T00:46:12Z [Warning] MapView class replaced with a non-functional placeholder due to the following import error:&lt;/DIV&gt;&lt;DIV class=""&gt;2024-10-08T00:46:12Z [Error] Error retrieving map: No module named 'notebook.notebookapp'&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class=""&gt;I am including the arcgis python library in the code, and I've done plenty of Python coding with it in the past, but I've never run across this error before. The code that causes this is below. Any ideas?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def GetMap():
    gis = GIS(url, user, passwd)
    try:
        map = gis.map()
        map.basemap = "arcgis-streets"
        map.center = [34.027, -118.805]
        map.zoom = 12
        return map
    except Exception as e: 
        logging.error(f"Error retrieving map: {e}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 17:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1546640#M10747</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2024-10-08T17:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1547509#M10755</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I ran your code in a new ArcGIS Notebook in Pro, and it worked fine. I'm on ArcGIS Pro 3.3.1 and ArcGIS API for Python 2.4.0. What versions of python/arcgis api for python are you working with?&lt;BR /&gt;The code if very simple and should work without problems, maybe it is the rest your code that tries to use the notebook.notebookapp module?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BijanTaheri_0-1728555581933.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116966iABA30F7585AF2518/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BijanTaheri_0-1728555581933.png" alt="BijanTaheri_0-1728555581933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 10:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1547509#M10755</guid>
      <dc:creator>BijanTaheri</dc:creator>
      <dc:date>2024-10-10T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1547843#M10759</link>
      <description>&lt;P&gt;Edit: I updated the arcgis python library and the error went away with the below code. However, I added a layer check and the notebook error came back, so still confused:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for layer in wm.layers:
    if layer.id == "Parcels_Taxroll_1278":
        results = "YEAH!"
return results &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seems to be that I'm not doing this in an ArcGIS Notebook, but trying to run from an Azure Function Application server.&lt;/P&gt;&lt;P&gt;I tried this another way, with the following code, and while it does the gis.content.get() just fine, as soon as I add the call to WebMap(), I receive the same error.&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;&lt;LI-CODE lang="python"&gt;def GetMap(pan):
    gis = GIS(url, user, passwd)
    try:
        wmItem = gis.content.get('6dbe1de76e3e4848a6d92230ec29c3b3')            
        wm = WebMap(wmItem)
    except Exception as e: 
        logging.error(f"Error retrieving map: {e}")&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 01:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1547843#M10759</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2024-10-11T01:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1547881#M10760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/528945"&gt;@RogerAsbury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you updated to ArcGIS API Version 2.4.0 the WebMap class is gone and is now Map.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;## 2.3.0 and lower
from arcgis.mapping import WebMap

## 2.4.0
from arcgis.map import Map&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This also has other implications as accessing WebMap layers has also changed with the content property. Check out the updates &lt;A href="https://developers.arcgis.com/python/latest/guide/overview24/" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 06:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1547881#M10760</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-10-11T06:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1548237#M10762</link>
      <description>&lt;P&gt;It looks like I currently have 2.3.1 installed. When I try to upgrade I get the following error message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;pip install arcgis==2.4.0&lt;BR /&gt;ERROR: Ignored the following yanked versions: 1.8.5.post1, 1.8.5.post2&lt;BR /&gt;ERROR: Ignored the following versions that require a different python version: 2.4.0 Requires-Python &amp;lt;3.13,&amp;gt;=3.10&lt;BR /&gt;ERROR: Could not find a version that satisfies the requirement arcgis==2.4.0 (from versions: 1.3.0, 1.3.0.post1, 1.3.0.post2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.2.post1, 1.5.3, 1.6.0, 1.6.1, 1.6.1.post1, 1.6.2, 1.6.2.post1, 1.7.0, 1.7.1, 1.8.0, 1.8.0.post1, 1.8.1, 1.8.2, 1.8.3, 1.8.3.post1, 1.8.3.post2, 1.8.4, 1.8.5.post3, 1.9.0, 1.9.1, 2.0.0, 2.0.1, 2.1.0, 2.1.0.1, 2.1.0.2, 2.1.0.3, 2.1.0.4, 2.1.0.5, 2.2.0, 2.2.0.1, 2.2.0.2, 2.2.0.3, 2.2.0.4, 2.3.0, 2.3.0.1, 2.3.0.2, 2.3.0.3, 2.3.1)&lt;BR /&gt;ERROR: No matching distribution found for arcgis==2.4.0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 11 Oct 2024 23:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1548237#M10762</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2024-10-11T23:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1551512#M10789</link>
      <description>&lt;P&gt;I'm gonna update this because it has now been two weeks of severe annoyance and zero real progress. I'm hoping someone more familiar with these things than myself strolls in here. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. The no matching distribution found error went away after I upgraded my local version of Python to 3.11.&lt;/P&gt;&lt;P&gt;2. However, this would then stall when the deploy from VS Code got to the section "Running pip install", eventually timing out without error.&lt;/P&gt;&lt;P&gt;3. This was solved by creating a ci/cd pipeline in Github to autodeploy on a new code push.&lt;/P&gt;&lt;P&gt;4. This seemed to properly build and deploy to the server, but the server seems to think it doesn't have a function app, per the attached image.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="funcapp-notthere.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117921i7FD4844B44D193D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="funcapp-notthere.png" alt="funcapp-notthere.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. The code is there, so I have no idea why it isn't running. Server response is a 404 error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="funcapp-code.png" style="width: 602px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117922iB310B33045E05411/image-size/large?v=v2&amp;amp;px=999" role="button" title="funcapp-code.png" alt="funcapp-code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, still no idea what's going on, or why things aren't working...&lt;/P&gt;&lt;P&gt;Edit to add - If I run it locally from VS Code, this function works as expected, for what it's worth.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 18:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1551512#M10789</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2024-10-23T18:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1551668#M10791</link>
      <description>&lt;P&gt;Soooo, after more testing today, I can say the following:&lt;/P&gt;&lt;P&gt;1. Commenting out "from utilities import report" and any associated calls to report, allows the function to be seen by the function server and run, though obviously not do much.&lt;/P&gt;&lt;P&gt;2. Adding "import requests" immediately sends it back into a 404 status, even if I don't utilize the requests library. If I do, say to make a simple call to a website, it still 404s.&lt;/P&gt;&lt;P&gt;3. These were not issues when utilizing the older version of Python and Azure V1 function app model. Though obviously the original error existed...&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 00:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1551668#M10791</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2024-10-24T00:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'notebook.notebookapp'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1552498#M10798</link>
      <description>&lt;P&gt;This is my last update on this because it's pretty clear this is no longer an ArcGIS sdk issue, and more an issue with Azure and Github CI/CD. While I no longer have the original error, the move to a more current version of Python, and the subsequent need to move to Azure's V2 function app model, still has my app broken.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you find yourself in a similar situation, you can find more information at the following links:&lt;BR /&gt;&lt;A href="https://github.com/Azure/azure-functions-python-worker/issues/627" target="_blank"&gt;Exception: ModuleNotFoundError: No module named 'requests' · Issue #627 · Azure/azure-functions-python-worker (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Azure/azure-functions-python-worker/issues/727" target="_blank"&gt;How to properly install python modules with venv using DevOps Pipeline build? Module Not Found Error · Issue #727 · Azure/azure-functions-python-worker (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Azure/azure-functions-python-worker/issues/1262" target="_blank"&gt;Azure function python v2 with external packages HTTP Trigger not visible in Azure Portal after deployment · Issue #1262 · Azure/azure-functions-python-worker (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 18:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/no-module-named-notebook-notebookapp/m-p/1552498#M10798</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2024-10-25T18:44:35Z</dc:date>
    </item>
  </channel>
</rss>

