When I try to import one of those libs my script doesn't run and gives the following error message:
IOError: The toolbox file C:\projetos\CoberturaMassiva\ToolBoxProcessamentoCobertura//toolbox_intersecao_cobertura.pyt was not found.
If I remove the "import httplib", my code runs normally. What's wrong?
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?
I'm using Python 2.7. But I fixed this problem by chaning my environment varible "PYTHONPATH" by poiting it to Python of ArcGis.
Joshua:
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?"
What was the httplib library renamed to in python 3.x for Pro?
PEP 3108 -- Standard Library Reorganization | Python.org
Current Name | Replacement Name |
---|---|
httplib | http.client |
BaseHTTPServer | http.server [2] |
CGIHTTPServer | http.server [2] |
SimpleHTTPServer | http.server [2] |
Cookie | http.cookies |
cookielib | http.cookiejar |
[2] | (1, 2, 3) The http.server module can combine the specified modules safely as they have no naming conflicts. |