Anaconda3, which was originally installed, suddenly couldn’t be started today. It got stuck in the loading application interface. It was forced to uninstall and reinstall. The situation is the same. Errors are reported as follows:
C:\Users\ljw>anaconda-navigator
2021-09-08 22:24:45,500 - ERROR download_api._get_url:417
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 499, in setup
self.post_setup(conda_data=conda_data)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 536, in post_setup
self.tab_home.setup(conda_data)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\tabs\home.py", line 169, in setup
self.set_applications(applications, packages)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\tabs\home.py", line 204, in set_applications
apps = self.api.process_apps(applications, prefix=self.current_prefix)
File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 903, in process_apps
versions=[vsdata.get('productVersion')],
AttributeError: 'str' object has no attribute 'get'
^C
C:\Users\ljw>anaconda-navigator
2021-09-08 22:45:03,049 - ERROR download_api._get_url:417
Expecting value: line 1 column 1 (char 0)
The reason is the same as the connection analysis above, mainly because the vscode address obtained by self._VSCODE_ENDPOINT in vscode_application_data() is wrong ( https://vscode-update.azurewebsites.net/api/update/win32-x64/stable/version ). As a result of the visit, the correct address is: https://update.code.visualstudio.com/api/update/win32-x64/stable/version
Solution: in Anaconda_ Search in api.py
VSCODE_ENDPOINT = (
'https://vscode-update.azurewebsites.net/api/update'
'/{}/stable/version'.format(VSCODE_SUBDIR)
)
Change the link to:
VSCODE_ENDPOINT = (
'https://update.code.visualstudio.com/api/update'
'/{}/stable/version'.format(VSCODE_SUBDIR)
)
Save the file and restart Anaconda navigator to solve the problem
Read More:
- Using postman Test Django Interface error: RuntimeError:You called this URL via POST,but the URL doesn‘t end in a slash
- Failed to establish a new connection: [winerror 10048] in the requests thread pool, the interface is called circularly to get the datagram error
- import statsmodels.api as sm Error: ImportError: DLL load failed while importing _arpack: The specified program could not be found.
- Install PyTorch in Anaconda environment
- [Solved] Python Project Error: django.core.exceptions.ImproperlyConfigured: WSGI application ‘WebTool.wsgi.application
- [Solved] RuntimeError: No application found. Either work inside a view function or push an application contex
- onnx error: ImportError: /home/dy/anaconda3/envs/torch/lib/python3.6/site-packages/onnx…
- How to Solve Error handling after upgrade pip of Anaconda
- Django uses Mysql to report an error loading MySQL DB module: no module named ‘mysqldb’
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie
- Import win32API; importerror: DLL load failed: the specified program was not found
- [Solved] Flask Application Context Error: RuntimeError: Working outside of application context.
- Python Error: ImportError: cannot import name ‘logsumexp’ from ‘scipy.misc’(Anaconda3\lib\site-packages\scipy\misc)
- [Solved] RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)
- [Solved] HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/saved_model
- [Solved] ERROR: URL ‘s3://‘ is supported but requires these missing dependencies: [‘s3fs‘]. To install dvc wi
- [Solved] Conda install Error: An HTTP error occurred when trying to retrieve this URL. HTTP errors are often…
- linux ubuntu pip search Fault: <Fault -32500: “RuntimeError: PyPI‘s XMLRPC API is currently disab
- Python + Requests +Excel+Jenkins interface automation
- [Solved] Anaconda create env error: ResolvePackageNotFound