Traceback (most recent call last): File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "D:\02-study\python\lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "D:\02-study\python\lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "D:\02-study\python\lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "D:\02-study\python\lib\http\client.py", line 1037, in _send_output self.send(msg) File "D:\02-study\python\lib\http\client.py", line 975, in send self.connect() File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\connection.py", line 205, in connect conn = self._new_conn() File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001CC3180D4B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\02-study\python_scripts\load\venv\lib\site-packages\requests\adapters.py", line 489, in send resp = conn.urlopen( File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen retries = retries.increment( File "D:\02-study\python_scripts\load\venv\lib\site-packages\urllib3\util\retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='uem-uat.yun.hihonor.com', port=80): Max retries exceeded with url: /uem-gateway/analytics-metrics/services/user-access-detail/access-list/1/10?t=1679290718262 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001CC3180D4B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\02-study\python_scripts\load\script\code_validate.py", line 61, in <module> res = q.query(role_code='China_Area#Country Representative') File "D:\02-study\python_scripts\load\script\code_validate.py", line 54, in query res = self.sess.request('post', url=url_pro, headers=header, json=json) File "D:\02-study\python_scripts\load\venv\lib\site-packages\requests\sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "D:\02-study\python_scripts\load\venv\lib\site-packages\requests\sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "D:\02-study\python_scripts\load\venv\lib\site-packages\requests\adapters.py", line 565, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='uem-uat.yun.hihonor.com', port=80): Max retries exceeded with url: /uem-gateway/analytics-metrics/services/user-access-detail/access-list/1/10?t=1679290718262 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001CC3180D4B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
时间: 2023-06-02 22:03:20 浏览: 191
该错误信息显示在进行HTTP连接时发生错误。具体来说,发生了getaddrinfo失败的异常,导致建立新连接的过程失败。该异常发生在尝试进行对一个为'uem-uat.yun.hihonor.com'主机的80端口的HTTP连接时。该连接尝试在 '/uem-gateway/analytics-metrics/services/user-access-detail/access-list/1/10?t=1679290718262' 路径上获取访问列表。最终,该错误信息的发生导致代码验证进程无法完成。
相关问题
Traceback (most recent call last): File "D:\02-study\python_scripts\load\hive_con.py", line 24, in <module> conn = hive.Connection(host='=10.88.192.8', port=24002, username='hive2') File "D:\02-study\python_scripts\load\venv\lib\site-packages\pyhive\hive.py", line 203, in __init__ import sasl ModuleNotFoundError: No module named 'sasl'
看起来你遇到了一个名为 "sasl" 的模块缺失的错误。这个模块是 PyHive 在连接 Hive 时所需的依赖之一。
你可以尝试通过以下命令安装 "sasl" 模块:
```
pip install sasl
```
如果你使用的是 Windows 操作系统,请确保你已经安装了 Visual C++ 14.0 或更高版本的构建工具。
如果安装 "sasl" 模块后仍然遇到问题,你可以尝试安装 "pure-sasl" 模块:
```
pip install pure-sasl
```
如果以上方法都无法解决问题,你可以尝试使用 Anaconda 环境,它会自动处理依赖关系。首先安装 Anaconda,然后创建一个新的虚拟环境,并在环境中安装 PyHive。
希望这些方法能够帮助你解决问题。如果你还有其他疑问,请随时提问。
解释下F:\python_projects\venv\Scripts\python.exe F:\result\eye_first_move_to_objects_time.py Traceback (most recent call last): File "F:\result\eye_first_move_to_objects_time.py", line 73, in <module> coordinate_x = float(fix_record[row_index][5].value) ValueError: could not convert string to float: '.' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "F:\python_projects\venv\lib\site-packages\openpyxl\worksheet\_writer.py", line 32, in _openpyxl_shutdown os.remove(path) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\\Users\\dell\\AppData\\Local\\Temp\\openpyxl.byyckh9l' Exception ignored in: <generator object WorksheetWriter.get_stream at 0x000001FBA5104820> Traceback (most recent call last): File "F:\python_projects\venv\lib\site-packages\openpyxl\worksheet\_writer.py", line 300, in get_stream File "src\lxml\serializer.pxi", line 1834, in lxml.etree._FileWriterElement.__exit__ File "src\lxml\serializer.pxi", line 1570, in lxml.etree._IncrementalFileWriter._write_end_element lxml.etree.LxmlSyntaxError: inconsistent exit action in context manager Exception ignored in: <generator object WriteOnlyWorksheet._write_rows at 0x000001FBA5104270> Traceback (most recent call last): File "F:\python_projects\venv\lib\site-packages\openpyxl\worksheet\_write_only.py", line 75, in _write_rows File "src\lxml\serializer.pxi", line 1834, in lxml.etree._FileWriterElement.__exit__ File "src\lxml\serializer.pxi", line 1568, in lxml.etree._IncrementalFileWriter._write_end_element lxml.etree.LxmlSyntaxError: not in an element Process finished with exit code 1
这是一个 Python 程序运行时出现的错误信息。其中,第一行是命令行窗口中输入的 Python 程序执行命令,指定了 Python 解释器和要执行的 Python 文件的路径。接下来是一个 traceback,它展示了程序运行时的错误信息。在这个例子中,程序在第 73 行尝试将一个字符串转换为浮点数,但该字符串是一个点,无法转换。此外,在 traceback 中还显示了一些在程序结束时出现的异常,这些异常通常与文件操作有关。在这个例子中,程序试图删除一个文件,但该文件正在被另一个程序使用,因此无法删除。最后两行 traceback 是与 lxml 库相关的异常,这些异常可能与程序中使用的 Excel 文件有关。
阅读全文