<?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: Problem importing urllib/urllib and httplib in arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138679#M10847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Python 2.7. But I fixed this problem by chaning my environment varible "PYTHONPATH" by poiting it to Python of ArcGis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 15:46:32 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-10-30T15:46:32Z</dc:date>
    <item>
      <title>Problem importing urllib/urllib and httplib in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138677#M10845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to import one of those libs my script doesn't run and gives the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;IOError: The toolbox file C:\projetos\CoberturaMassiva\ToolBoxProcessamentoCobertura//toolbox_intersecao_cobertura.pyt was not found.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I remove the "import httplib", my code runs normally. What's wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 12:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138677#M10845</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-10-30T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing urllib/urllib and httplib in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138678#M10846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the httplib module was renamed in Python 3, are you working with Python 2.x in ArcMap or Python 3.x in ArcGIS Pro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 13:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138678#M10846</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-10-30T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing urllib/urllib and httplib in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138679#M10847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Python 2.7. But I fixed this problem by chaning my environment varible "PYTHONPATH" by poiting it to Python of ArcGis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138679#M10847</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-10-30T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing urllib/urllib and httplib in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138680#M10848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Joshua:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You said: "Since the httplib module was renamed in Python 3, are you working with Python 2.x in ArcMap or Python 3.x in ArcGIS Pro?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;What was the&amp;nbsp;httplib library renamed to in python 3.x for Pro?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 16:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138680#M10848</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2020-05-18T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem importing urllib/urllib and httplib in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138681#M10849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.python.org/dev/peps/pep-3108/#http-package" title="https://www.python.org/dev/peps/pep-3108/#http-package"&gt;PEP 3108 -- Standard Library Reorganization | Python.org&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;H3 style="box-sizing: border-box; margin: 1.75em 0px 0.4375em; padding: 0px; border: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-weight: normal; font-stretch: inherit; font-size: 1.3125em; line-height: inherit; font-family: SourceSansProRegular, Arial, sans-serif; vertical-align: baseline; color: #222222; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f9f9f9; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id63" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;http package&lt;/A&gt;&lt;/H3&gt;&lt;TABLE border="1" style="box-sizing: border-box; margin: 0px 0px 1.3125em; padding: 0px; border: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-weight: 400; font-stretch: inherit; font-size: 15px; line-height: 1.875; font-family: SourceSansProRegular, Arial, sans-serif; vertical-align: baseline; width: 784px; border-collapse: collapse; border-spacing: 0px; color: #444444; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f9f9f9; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;THEAD style="box-sizing: border-box; margin: 0px; padding: 0px; border-width: 0px 0px 1px; border-image: initial; font: inherit; vertical-align: baseline; border-color: initial initial #dddddd initial; border-style: initial initial solid initial;" valign="bottom"&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f6f6f6;"&gt;&lt;TH class="" style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: top; text-align: left; background-color: #f0f0f0;"&gt;Current Name&lt;/TH&gt;&lt;TH class="" style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: top; text-align: left; background-color: #f0f0f0; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;Replacement Name&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline;" valign="top"&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f6f6f6;"&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left;"&gt;httplib&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;http.client&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f0f0f0;"&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left;"&gt;BaseHTTPServer&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;http.server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id24" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;[2]&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f6f6f6;"&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left;"&gt;CGIHTTPServer&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;http.server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id24" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;[2]&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f0f0f0;"&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left;"&gt;SimpleHTTPServer&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;http.server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id24" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;[2]&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f6f6f6;"&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left;"&gt;Cookie&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;http.cookies&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f0f0f0;"&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left;"&gt;cookielib&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;http.cookiejar&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE frame="void" id="id24" rules="none" style="box-sizing: border-box; margin: 0px 0px 1.3125em; padding: 0px; border: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-weight: 400; font-stretch: inherit; font-size: 15px; line-height: 1.875; font-family: SourceSansProRegular, Arial, sans-serif; vertical-align: baseline; width: 784px; border-collapse: collapse; border-spacing: 0px; color: #444444; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f9f9f9; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;TBODY style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline;" valign="top"&gt;&lt;TR style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font: inherit; vertical-align: baseline; background-color: #f6f6f6;"&gt;&lt;TD class="" style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: none; border-image: initial; font: inherit; vertical-align: top; text-align: left; width: 4em;"&gt;[2]&lt;/TD&gt;&lt;TD style="box-sizing: border-box; margin: 0px; padding: 0.25em 0.5em 0.2em; border-width: 0px 0px 0px 2px; border-image: initial; font: inherit; vertical-align: top; text-align: left; border-color: initial initial initial #ffffff; border-style: initial initial initial solid;"&gt;&lt;EM style="box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: SourceSansProItalic, Arial, sans-serif; vertical-align: baseline;"&gt;(&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id21" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;1&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id22" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;2&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://www.python.org/dev/peps/pep-3108/#id23" style="box-sizing: border-box; color: #3776ab; text-decoration: none; -webkit-tap-highlight-color: #1e2933; border-bottom: 1px solid #ffdf76; display: inline;"&gt;3&lt;/A&gt;)&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;TT class="" style="box-sizing: border-box;"&gt;http.server&lt;/TT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;module can combine the specified modules safely as they have no naming conflicts.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 17:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-importing-urllib-urllib-and-httplib-in/m-p/138681#M10849</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-18T17:26:57Z</dc:date>
    </item>
  </channel>
</rss>

