During code execution, an error except timeoutexception is found. E:
the reasons are as follows:
This code is only available in python2 X is available, and python 3 no longer uses this method
Solution:
Switch the corresponding version to python2
Modify except Exception e:
to except Exception as e:
Read More:
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Python syntax error except exception, e: ^ syntax error: invalid syntax
- Python3.7 Capture exception error: Too broad exception clause
- Python Error: [9880] failed to execute script [How to Solve]
- Python PIP Fatal error in launcher: Unable to create process using ‘“e:\program files\programdata
- python2.7 ExcelWriter error Exception caught in workbook destructor. Explicit close() may be require
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- [Solved] CUDA failure 999: unknown error ; GPU=-351697408 ; hostname=4f5e6dff58e6 ; expr=cudaSetDevice(info_.device_id);
- Python: How to Use try exception to Display Abnormal Error Information
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- Ubuntu22.04 OpenHarmony Execute hb set Error [How to Solve]
- Python Error: pip install mysql-connector-python failed
- Docker run xxx,E Time Elapsed: 0:00:00.000180
- [Solved] Selenium error: staleelementreferenceexception exception
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- [Solved] Pytest Error: E ModuleNotFoundError: No module named ‘common
- [Solved] Pyinstaller packaged exe error: “failed to execute script XXX”