-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnboundLocalError: local variable 'DISTRO_NAME' referenced before assignment #11662
Comments
Edit:
Solved It By: By declaring the variable outside the loop. Just add the line : DISTRO_NAME = None on Line 159 and indent it in line with the if above it (Outside it) devs can close this issue if the solution seems right |
I had exactly the same issue with exactly the same os, great to find a working solution! |
I too had the same error: Thanks a lot !
|
Please see #11635 (comment) |
tnx i't work with me by elementary os too |
Thank you very much @AnmolMajithia |
That is not the case, I am using VS Code just fine. @RicFraga |
I wrote a beginner friendly guide here. |
This fix does not work on Manjaro 19.0.2 GNOME edition. Adding |
I fixed my problem by putting this command into terminal: |
Fixed my problem on zorin os Thanks mate. |
Thanks I fixed the issue by add the line |
Hey guys, had a similar issue,
simply fixed my issue by adding
to line 167 in column 9 works fine now, I assume if you are on a debian based distribution it will work by putting in 'debian' instead but can't guarantee. |
Which build and version of Anaconda Navigator do you have? |
in my case its working, i have also sucked with same error in kali linux but after updating anaconda-navigator, its working,thank you. |
I'm going to close this as I believe it is fixed in the latest version of Anaconda-Navigator. |
I too had the same error: UnboundLocalError: local variable 'DISTRO_NAME' referenced before assignmentfrom a new Anaconda3-2020.02-Linux-x86_64 installation on Linux Mint 19.02 which got solved with the tips from @AnmolMajithia Thanks a lot ! def _application_data(self):
|
The solution posted by @AnmolMajithia Worked for me on Linux Mint 19.3!! |
Thanks... it worked for me! |
Hello!! |
If you add the line "DISTRO_NAME = None" and it gives you an indentation error, you should just sort that line with spaces. Do not use the TAB key. And ready! The problem is solved. You can also try the command "conda update anaconda-navigator". These two things solved the problem for me on Arch Linux. |
Thanks a lot. |
The currently downloadable full installer (Anaconda3-2020.02) still doesn't contain a fix. But I've noticed that it'll get fixed if you update anaconda with After updating, the file mentioned by OP will contain the following added lines at the position suggested by the OP:
|
Thanks ! |
awesome buddy !!!!!! |
Updating the anaconda navigator will resolve the issue. You can use the following command..
Hope this helps. |
Thank you very much! Trying to install Anaconda in Kali Linux. This fixed the issue. |
Thank you ! now it's working fine. |
Thanks. It worked for me too. |
Thanks man, I apply it and after that all is ok. |
It works, thanks a lot. |
IT works fine.....Thanks a LOT |
This seems to be the better solution, since the error is clearly a bug. In the updated version, the devs have fixed it (and maybe other things which we did not encounter at first run). 'conda update' worked seamlessly for me too. I am sceptical about editing code without understanding the final consequences. the DISTRO_NAME var might also be a global which was not populated due to factors other than the missing declaration. |
Thanks a lot @AnmolMajithia |
I had to add "DISTRO_NAME = None" in line 159 of the vscode.py file:
Good luck to you all! |
I try it in Manjaro of linux which tell me the same problem. It works very well. Thank you very much! |
I changed DISTRO_NAME = None or ubuntu |
This worked perfectly for me. Thanks a mill |
go to path /anaconda3//lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py
|
This work for me!! Thanks!!!! |
Actual Behavior
Opening anaconda navigator gives error and the opening splash gets stucks and doesn't load any further.
Expected Behavior
Anaconda navigator should open
Steps to Reproduce
After freshly installing Anaconda 3.7 and running anaconda-navigator on Linux Mint 19.3 i was faced with the error (give in the title)
Anaconda or Miniconda version:
Anaconda3-2020.02-Linux-x86_x64.sh
Operating System:
Linux Mint 19.3
conda info
conda list --show-channel-urls
The text was updated successfully, but these errors were encountered: