I have already installed pipwin through pip,I run “pipwin refresh”,and then an error occurred:
AttributeError: ‘NoneType’ object has no attribute ‘string’
I don’t know what should I do.
enter image description here
The full log is below:
Traceback (most recent call last):
File "C:UsersASUSAppDataLocalProgramsPythonPython310librunpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:UsersASUSAppDataLocalProgramsPythonPython310librunpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:UsersASUSAppDataLocalProgramsPythonPython310Scriptspipwin.exe__main__.py", line 7, in <module>
File "C:UsersASUSAppDataLocalProgramsPythonPython310libsite-packagespipwincommand.py", line 81, in main
pipwin.refresh()
File "C:UsersASUSAppDataLocalProgramsPythonPython310libsite-packagespipwinpipwin.py", line 327, in refresh
PipwinCache(refresh=True)
File "C:UsersASUSAppDataLocalProgramsPythonPython310libsite-packagespipwinpipwin.py", line 210, in __init__
self.data = build_cache()
File "C:UsersASUSAppDataLocalProgramsPythonPython310libsite-packagespipwinpipwin.py", line 103, in build_cache
dl_function = re.search(r"function dl.*}", soup.find("script").string).group(0)
AttributeError: 'NoneType' object has no attribute 'string'
I have tried to reinstall for several times,but it’s still not working,I hope that the bug can be solved.
New contributor
AirSakura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2