Traceback (most recent call last): File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "ICP.py", line 132, in run self.workType1() File "ICP.py", line 47, in workType1 if not dt.QueryCode(codeAndRow[0]): File "C:\Users\lyg\Desktop\icpTools\Ahao_ToolsForThis.py", line 382, in QueryCode self.browser.refresh() File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 831, in refresh self.execute(Command.REFRESH) File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found (Session info: chrome=114.0.5735.110)
时间: 2023-07-21 22:55:39 浏览: 72
这是一个 Python 的错误追踪(Traceback),看起来是一个多线程应用中的一个线程出现了异常。具体来说,是在 `ICP.py` 的第 132 行代码出现了问题。在 `workType1` 方法中,程序判断了一个条件,但是出现了一个 `NoSuchWindowException` 错误,提示目标窗口已经关闭。这个错误通常是由于网页加载失败或者浏览器出现问题导致的。建议检查网络连接是否正常,检查代码中是否有关闭浏览器窗口的操作,以及检查浏览器是否正常运行。
相关问题
Traceback (most recent call last): File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "ICP.py", line 132, in run self.workType1() File "ICP.py", line 47, in workType1 if not dt.QueryCode(codeAndRow[0]): File "C:\Users\lyg\Desktop\icpTools\Ahao_ToolsForThis.py", line 382, in QueryCode self.browser.refresh() File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 831, in refresh self.execute(Command.REFRESH) File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\lyg\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 299.994 (Session info: chrome=114.0.5735.110)
这是一个 Python 报错信息,显示在执行线程时出现了一个超时异常(timeout exception)。具体来说,是在使用 Selenium 进行 Web 自动化测试时,刷新页面(refresh)操作超时,可能是因为浏览器或网络的问题导致页面无法在规定时间内加载完成。建议检查网络连接和浏览器是否正常,并适当调整刷新等操作的等待时间。
C:\Users\GW00321286\.conda\envs\python_39\python.exe E:\code-study\coda\test.py Traceback (most recent call last): File "E:\code-study\coda\test.py", line 13, in <module> c = gpd.GeoSeries(hits) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\geopandas\geoseries.py", line 208, in __init__ s = pd.Series(data, index=index, name=name, **kwargs) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\pandas\core\series.py", line 454, in __init__ data = com.maybe_iterable_to_list(data) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\pandas\core\common.py", line 308, in maybe_iterable_to_list return list(obj) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\shapely\prepared.py", line 32, in contains return self.context.contains(other) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\shapely\geometry\base.py", line 658, in contains return _maybe_unpack(shapely.contains(self, other)) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\shapely\decorators.py", line 77, in wrapped return func(*args, **kwargs) File "C:\Users\GW00321286\.conda\envs\python_39\lib\site-packages\shapely\predicates.py", line 540, in contains return lib.contains(a, b, **kwargs) TypeError: One of the arguments is of incorrect type. Please provide only Geometry objects.
根据你提供的信息,这是一个 Python 报错信息,其中指出了发生错误的位置在 test.py 文件的第 13 行。错误是由于在 GeoPandas 库的 GeoSeries 对象中传入了错误的参数类型导致的。具体来说,错误信息指出传入了一个非几何对象作为参数,而 GeoSeries 对象只能接受几何对象作为参数。建议检查代码,确保在 GeoSeries 对象中只传入几何对象。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)