1. When using RF automation, python suddenly reports the following error. It has occurred once before. It is suspected that the file is damaged due to an exception in the RF framework. The previous solution was to reinstall python and rf
D:\python27\Scripts>python
Traceback (most recent call last):
File "D:\python27\lib\site.py", line 62, in <module>
import os
File "D:\python27\lib\os.py", line 63, in <module>
import ntpath as path
File "D:\python27\lib\ntpath.py", line 15, in <module>
from genericpath import _unicode
ImportError: cannot import name _unicode
If anyone has encountered it, please help me find out how to deal with it!
I searched for a long time but couldn’t find a solution, so I finally deleted it and reinstalled it.
Note here when reinstalling: