<?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 warn() missing 1 required keyword-only argument: 'stacklevel' in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/warn-missing-1-required-keyword-only-argument/m-p/1502834#M10314</link>
    <description>&lt;P&gt;Gentlefolk,&lt;/P&gt;&lt;P&gt;I'm attempting to use the ArcGIS API for Python to generate a map for a project. After unsuccessfully attempting to assemble the proper combination of libraries and Python versions, I decided to attempt to spin up the &lt;A title="Docker" href="https://developers.arcgis.com/python/guide/docker/" target="_blank" rel="noopener"&gt;Docker container&lt;/A&gt;. When I attempt to launch the Docker instance, it crashes thusly:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;~~&lt;/P&gt;&lt;P&gt;2024-07-08 19:52:51 Entered start.sh with args: jupyter notebook&lt;BR /&gt;2024-07-08 19:52:51 Running hooks in: /usr/local/bin/start-notebook.d as uid: 1000 gid: 100&lt;BR /&gt;2024-07-08 19:52:51 Done running hooks in: /usr/local/bin/start-notebook.d&lt;BR /&gt;2024-07-08 19:52:51 Running hooks in: /usr/local/bin/before-notebook.d as uid: 1000 gid: 100&lt;BR /&gt;2024-07-08 19:52:51 Done running hooks in: /usr/local/bin/before-notebook.d&lt;BR /&gt;2024-07-08 19:52:51 Executing the command: jupyter notebook&lt;BR /&gt;2024-07-08 19:52:53 Traceback (most recent call last):&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/notebook/traittypes.py", line 235, in _resolve_classes&lt;BR /&gt;2024-07-08 19:52:53 klass = self._resolve_string(klass)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 2025, in _resolve_string&lt;BR /&gt;2024-07-08 19:52:53 return import_item(string)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/utils/importstring.py", line 31, in import_item&lt;BR /&gt;2024-07-08 19:52:53 module = __import__(package, fromlist=[obj])&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 ModuleNotFoundError: No module named 'jupyter_server.contents'&lt;BR /&gt;2024-07-08 19:52:53&lt;BR /&gt;2024-07-08 19:52:53 During handling of the above exception, another exception occurred:&lt;BR /&gt;2024-07-08 19:52:53&lt;BR /&gt;2024-07-08 19:52:53 Traceback (most recent call last):&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/bin/jupyter-notebook", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;2024-07-08 19:52:53 sys.exit(main())&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/jupyter_core/application.py", line 280, in launch_instance&lt;BR /&gt;2024-07-08 19:52:53 super().launch_instance(argv=argv, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/config/application.py", line 1051, in launch_instance&lt;BR /&gt;2024-07-08 19:52:53 app = cls.instance(**kwargs)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/config/configurable.py", line 575, in instance&lt;BR /&gt;2024-07-08 19:52:53 inst = cls(*args, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 1311, in __new__&lt;BR /&gt;2024-07-08 19:52:53 inst.setup_instance(*args, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 1354, in setup_instance&lt;BR /&gt;2024-07-08 19:52:53 super(HasTraits, self).setup_instance(*args, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 1330, in setup_instance&lt;BR /&gt;2024-07-08 19:52:53 init(self)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/notebook/traittypes.py", line 226, in instance_init&lt;BR /&gt;2024-07-08 19:52:53 self._resolve_classes()&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/notebook/traittypes.py", line 238, in _resolve_classes&lt;BR /&gt;2024-07-08 19:52:53 warn(f"{klass} is not importable. Is it installed?", ImportWarning)&lt;BR /&gt;2024-07-08 19:52:53 TypeError: warn() missing 1 required keyword-only argument: 'stacklevel'&lt;/P&gt;&lt;P class="lia-align-center"&gt;~~&lt;/P&gt;&lt;P&gt;It appears to me to be a problem with Jupyter Notebook. I'm familiar with updating libraries in Python, but I beg your forgiveness for bring a relative beginner with Docker.&lt;/P&gt;&lt;P&gt;I attempted to launch the selfsame Docker package on another machine, with the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to successfully launch the version 2.2.0-python3.9, but with that version I have a &lt;A href="https://community.esri.com/t5/python-questions/arcgis-python-export-map-to-html-is-blank/td-p/1280483" target="_self"&gt;different problem&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate greatly any guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 01:01:50 GMT</pubDate>
    <dc:creator>Beached_Buoy</dc:creator>
    <dc:date>2024-07-09T01:01:50Z</dc:date>
    <item>
      <title>warn() missing 1 required keyword-only argument: 'stacklevel'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/warn-missing-1-required-keyword-only-argument/m-p/1502834#M10314</link>
      <description>&lt;P&gt;Gentlefolk,&lt;/P&gt;&lt;P&gt;I'm attempting to use the ArcGIS API for Python to generate a map for a project. After unsuccessfully attempting to assemble the proper combination of libraries and Python versions, I decided to attempt to spin up the &lt;A title="Docker" href="https://developers.arcgis.com/python/guide/docker/" target="_blank" rel="noopener"&gt;Docker container&lt;/A&gt;. When I attempt to launch the Docker instance, it crashes thusly:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;~~&lt;/P&gt;&lt;P&gt;2024-07-08 19:52:51 Entered start.sh with args: jupyter notebook&lt;BR /&gt;2024-07-08 19:52:51 Running hooks in: /usr/local/bin/start-notebook.d as uid: 1000 gid: 100&lt;BR /&gt;2024-07-08 19:52:51 Done running hooks in: /usr/local/bin/start-notebook.d&lt;BR /&gt;2024-07-08 19:52:51 Running hooks in: /usr/local/bin/before-notebook.d as uid: 1000 gid: 100&lt;BR /&gt;2024-07-08 19:52:51 Done running hooks in: /usr/local/bin/before-notebook.d&lt;BR /&gt;2024-07-08 19:52:51 Executing the command: jupyter notebook&lt;BR /&gt;2024-07-08 19:52:53 Traceback (most recent call last):&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/notebook/traittypes.py", line 235, in _resolve_classes&lt;BR /&gt;2024-07-08 19:52:53 klass = self._resolve_string(klass)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 2025, in _resolve_string&lt;BR /&gt;2024-07-08 19:52:53 return import_item(string)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/utils/importstring.py", line 31, in import_item&lt;BR /&gt;2024-07-08 19:52:53 module = __import__(package, fromlist=[obj])&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 ModuleNotFoundError: No module named 'jupyter_server.contents'&lt;BR /&gt;2024-07-08 19:52:53&lt;BR /&gt;2024-07-08 19:52:53 During handling of the above exception, another exception occurred:&lt;BR /&gt;2024-07-08 19:52:53&lt;BR /&gt;2024-07-08 19:52:53 Traceback (most recent call last):&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/bin/jupyter-notebook", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;2024-07-08 19:52:53 sys.exit(main())&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/jupyter_core/application.py", line 280, in launch_instance&lt;BR /&gt;2024-07-08 19:52:53 super().launch_instance(argv=argv, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/config/application.py", line 1051, in launch_instance&lt;BR /&gt;2024-07-08 19:52:53 app = cls.instance(**kwargs)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/config/configurable.py", line 575, in instance&lt;BR /&gt;2024-07-08 19:52:53 inst = cls(*args, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 ^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 1311, in __new__&lt;BR /&gt;2024-07-08 19:52:53 inst.setup_instance(*args, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 1354, in setup_instance&lt;BR /&gt;2024-07-08 19:52:53 super(HasTraits, self).setup_instance(*args, **kwargs)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/traitlets/traitlets.py", line 1330, in setup_instance&lt;BR /&gt;2024-07-08 19:52:53 init(self)&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/notebook/traittypes.py", line 226, in instance_init&lt;BR /&gt;2024-07-08 19:52:53 self._resolve_classes()&lt;BR /&gt;2024-07-08 19:52:53 File "/opt/conda/lib/python3.11/site-packages/notebook/traittypes.py", line 238, in _resolve_classes&lt;BR /&gt;2024-07-08 19:52:53 warn(f"{klass} is not importable. Is it installed?", ImportWarning)&lt;BR /&gt;2024-07-08 19:52:53 TypeError: warn() missing 1 required keyword-only argument: 'stacklevel'&lt;/P&gt;&lt;P class="lia-align-center"&gt;~~&lt;/P&gt;&lt;P&gt;It appears to me to be a problem with Jupyter Notebook. I'm familiar with updating libraries in Python, but I beg your forgiveness for bring a relative beginner with Docker.&lt;/P&gt;&lt;P&gt;I attempted to launch the selfsame Docker package on another machine, with the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to successfully launch the version 2.2.0-python3.9, but with that version I have a &lt;A href="https://community.esri.com/t5/python-questions/arcgis-python-export-map-to-html-is-blank/td-p/1280483" target="_self"&gt;different problem&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate greatly any guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 01:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/warn-missing-1-required-keyword-only-argument/m-p/1502834#M10314</guid>
      <dc:creator>Beached_Buoy</dc:creator>
      <dc:date>2024-07-09T01:01:50Z</dc:date>
    </item>
  </channel>
</rss>

