Skip to content
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

"Exit code: 1" in anaconda navigator after reinstalling #12735

Open
thonpy opened this issue Nov 27, 2021 · 41 comments
Open

"Exit code: 1" in anaconda navigator after reinstalling #12735

thonpy opened this issue Nov 27, 2021 · 41 comments

Comments

@thonpy
Copy link

thonpy commented Nov 27, 2021

Actual Behavior

After reinstalling Anaconda, I get the error message "Exit code: 1" when I start apps using the Anaconda Navigator. e.g. "jupyter notebook" or "CMD.exe"

Screenshot
https://drive.google.com/file/d/13vnAL-XMFrny-dSF4yFqmeiWEf052ylS/view?usp=sharing

When I use the CMD (base) via Env. or start from the windows start bar, it works. Jupyter Notebook (Anaconda3) also runs when I start it directly from the start bar.

I only get the error message in the Anaconda navigator. I uninstalled Visual Studio. Still does not work.

THX

Anaconda or Miniconda version:

Anaconda Navigator 2.1.1

Operating System:

WINDOWS 10

conda info
PASTE OUTPUT HERE:

     active environment : base
    active env location : C:\Users\xx\anaconda3
            shell level : 1
       user config file : C:\Users\xx\.condarc
 populated config files : C:\Users\xx\.condarc
          conda version : 4.10.3
    conda-build version : 3.21.6
         python version : 3.9.7.final.0
       virtual packages : __cuda=11.5=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Users\xx\anaconda3  (writable)
      conda av data dir : C:\Users\xx\anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\jxxoerg\anaconda3\pkgs
                          C:\Users\xx\.conda\pkgs
                          C:\Users\xx\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\xx\anaconda3\envs
                          C:\Users\xx\.conda\envs
                          C:\Users\xx\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Windows/10 Windows/10.0.19042
          administrator : True
             netrc file : C:\Users\xx/.netrc
           offline mode : False

</details>

##### `conda list --show-channel-urls`
<!-- Paste the output of 'conda list --show-channel-urls' between the two sets of backticks (```) below -->

<details>

PASTE OUTPUT HERE:

@hu-stefan
Copy link

I face the exact same issue.

@gorrymc
Copy link

gorrymc commented Dec 2, 2021

Same problem here. Try this

registry editor (regedit) and go to
Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor

delete autorun

fixed both cmd.exe and anaconda navigator launching

@hu-stefan
Copy link

sadly there is no key to delete :/

Screenshot 2021-12-03 105444

@gorrymc
Copy link

gorrymc commented Dec 3, 2021

After over a week trying to solve this I concluded that the cmd.exe failure to start is most likely the problem for Anaconda Navigator not launching anything on line (Jupyter, Spyder, RStudio failed) but console and cmd open). Do a web search for
"Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor". There are several
comments with the same problem and different solutions. There is also
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

I DID NOT DO ANYTHING WITH THIS REGISTRY KEY
since I had the "command processor/autorun" file. If you can, check this out. It is up to your skills to see if it will work.

@elahe-badali
Copy link

Having same issue, Fixed by @gorrymc solution. thank you.

@papewade
Copy link

papewade commented Jan 4, 2022

Hello,

I have the same problem but like @hu-stefan , I cannot find the folder Command Processor . Do you have any other solution? thank

@papewade
Copy link

papewade commented Jan 5, 2022

Hi @elahe-badali

I found the file. Thank you. now I ask what should I delete?

image

@elahe-badali
Copy link

@papewade
You should delete Autorun file. but as i see there is no file with this name. I had a file with a icon like "(Default)" and named "Autorun". After i deleted it, the apps lunch with no error.

@gorrymc
Copy link

gorrymc commented Jan 5, 2022

Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

Check each key and see if the autorun is turned off (turned off means remove any value and leave BLANK)

Try this.
CURRENT_USER worked for me and enabled cmd to open and Anaconda to start.

@JohannesBm
Copy link

For me deleting autorun worked. Ty a lot! @elahe-badali

@QuentinDrvll
Copy link

QuentinDrvll commented Jan 12, 2022

@gorrymc
I have exactky the same problem as @thonpy and on the 2 keys I do not have an autorun file to delete...
Must exist another way !

image

@AzamGhesmati
Copy link

hello folks
I have same issue, but there is no autorun in the mentioned path, is there another solution?

@mukesssh
Copy link

Hello everyone
I have the same issue
And interesting enough I have only default file in the key
the other key too doesn't have autorun file

error

@taboosha11
Copy link

Hello Everyone,
I am also facing the same issue.
There is no autorun file.
Now what to do?

HELP PLEASE

WhatsApp Image 2022-02-21 at 1 36 22 PM

@carlosrmz16
Copy link

carlosrmz16 commented Feb 25, 2022

Hi Everyone, I faced the Exit code: 1, and looked on the registry for autorun in these two locations unsuccessfully.

  • Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

I finally solved adding C:\Windows\system32 to the system variables Path

@rsg-iik
Copy link

rsg-iik commented Feb 28, 2022

Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
For me deleting autorun worked as well

Thank you @[gorrymc]

@yao-1115
Copy link

Same problem here. Try this

registry editor (regedit) and go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor

delete autorun

fixed both cmd.exe and anaconda navigator launching

@yao-1115
Copy link

nice one thankyou very much

@hipiyaya
Copy link

Thanks. Exit code:1 is finally fixed. I did not have the autorun with Command, but an error with C:\Windows\system32 in the environment path. ...

@BAIZ1D
Copy link

BAIZ1D commented Apr 8, 2022

FOR THOSE WHO CANT FIND THE 'Command Processor' and cant delete the autorun and/or don't have autorun

FOLLOW THESE INSTRUCTIONS BELOW

  1. From the Desktop right-click My Computer and click Properties. If you don't have a My Computer icon on your desktop, click Start, right-click the My Computer option in the Start menu, and select Properties.
  2. In the System Properties window, click the Advanced tab.
  3. In the Advanced section, click the Environment Variables button below.
  4. In the Environment Variables window, highlight the PATH variable in the System Variable section and click the Edit button. Add the following line there-

C:\Windows\System32

and move it to the top of the list by the Move Up button on the side and press okay.
5. Similarly, in the Environment Variables window, highlight the Path variable in the User Variables section and click the Edit button. Add the following line there-

C:\Windows\System32

and press okay.
6. Finally restart your computer.

Hopefully, it'd work cheers

@HT725
Copy link

HT725 commented Apr 9, 2022

@BAIZ1D
It worked.
Thanks a lot !

@mukesssh
Copy link

Adding C:\Windows\system32 to system path variables worked for me too.
Some users have already commented above but I didn't knew how to add new value in path variable. Then finally learned from a Youtube video that adding a semicolon on the existing value will open a new window and then you can add a new value in path variable.

@SunnyChan0301
Copy link

SunnyChan0301 commented May 7, 2022

@BAIZ1D

Your method work for me, thanks a lot!

@Sand0931
Copy link

I don't have Command processor and in the workstation properties, there is no Advanced tab

@hamedfakhrtaha
Copy link

FOR THOSE WHO CANT FIND THE 'Command Processor' and cant delete the autorun and/or don't have autorun

FOLLOW THESE INSTRUCTIONS BELOW

  1. From the Desktop right-click My Computer and click Properties. If you don't have a My Computer icon on your desktop, click Start, right-click the My Computer option in the Start menu, and select Properties.
  2. In the System Properties window, click the Advanced tab.
  3. In the Advanced section, click the Environment Variables button below.
  4. In the Environment Variables window, highlight the PATH variable in the System Variable section and click the Edit button. Add the following line there-

C:\Windows\System32

and move it to the top of the list by the Move Up button on the side and press okay. 5. Similarly, in the Environment Variables window, highlight the Path variable in the User Variables section and click the Edit button. Add the following line there-

C:\Windows\System32

and press okay. 6. Finally restart your computer.

Hopefully, it'd work cheers

Thanks a lot. It worked

@ShahzilGul
Copy link

Adding C:\Windows\system32 to system path variables worked for me.
Thank you, guys! :)

For those who are unable to find autorun, just go in Registry Editor then press "ctrl + f" and enter autorun. You'll find it really easily :)

@ghost
Copy link

ghost commented Jun 23, 2022

C:\Windows\system32

It worked,
Thanks for the Information, more power to you

@Obaid-Ullah
Copy link

I've faced same issue and resolved by setting environment variables, link is attached, you may checkout for solution.
https://github.com/Obaid-Ullah/Data-Analysis.git

@orgyofseduction
Copy link

@BAIZ1D It worked for me thanks!

@bzhphilou78
Copy link

Having same issue, Fixed by @gorrymc solution. Thank you.

@kennywang112
Copy link

It work for me too, thanks @BAIZ1D !

@Srinath1-hub
Copy link

Hello,
I have same issue, tried installing ,unistalling and checked with command processor autorun file too but no progress.
updating the anaconda path in environment varibales didnot work.

updating the C:\Windows\System32 in path varibales worked for me thankyou

@SaikrishnaVarikunta
Copy link

FOR THOSE WHO CANT FIND THE 'Command Processor' and cant delete the autorun and/or don't have autorun

FOLLOW THESE INSTRUCTIONS BELOW

  1. From the Desktop right-click My Computer and click Properties. If you don't have a My Computer icon on your desktop, click Start, right-click the My Computer option in the Start menu, and select Properties.
  2. In the System Properties window, click the Advanced tab.
  3. In the Advanced section, click the Environment Variables button below.
  4. In the Environment Variables window, highlight the PATH variable in the System Variable section and click the Edit button. Add the following line there-

C:\Windows\System32

and move it to the top of the list by the Move Up button on the side and press okay. 5. Similarly, in the Environment Variables window, highlight the Path variable in the User Variables section and click the Edit button. Add the following line there-

C:\Windows\System32

and press okay. 6. Finally restart your computer.

Hopefully, it'd work cheers


This is awesome :)
The issue of "Exit Code : 1" is solved for me even without opening the Registry Editor and find something and delete it...
This way is useful to me
May this helpful to some one trust this approch.

Just Edit the Path Variable in "User and System Variables" and in each of them just add "New" and type "C:\Windows\System32"

@rogicka
Copy link

rogicka commented Aug 22, 2022

Adding C:\Windows\system32 to system path variables worked for me too. Some users have already commented above but I didn't knew how to add new value in path variable. Then finally learned from a Youtube video that adding a semicolon on the existing value will open a new window and then you can add a new value in path variable.

Thankyou, great info!

@zuoshiyuan
Copy link

FOR THOSE WHO CANT FIND THE 'Command Processor' and cant delete the autorun and/or don't have autorun
FOLLOW THESE INSTRUCTIONS BELOW

  1. From the Desktop right-click My Computer and click Properties. If you don't have a My Computer icon on your desktop, click Start, right-click the My Computer option in the Start menu, and select Properties.
  2. In the System Properties window, click the Advanced tab.
  3. In the Advanced section, click the Environment Variables button below.
  4. In the Environment Variables window, highlight the PATH variable in the System Variable section and click the Edit button. Add the following line there-

C:\Windows\System32
and move it to the top of the list by the Move Up button on the side and press okay. 5. Similarly, in the Environment Variables window, highlight the Path variable in the User Variables section and click the Edit button. Add the following line there-
C:\Windows\System32
and press okay. 6. Finally restart your computer.
Hopefully, it'd work cheers

Thanks a lot. It worked
ITS USEFUL!!!
THANKS A LOT!!!

@nikita4512
Copy link

If you are unable to find autorun file. then just add C:\Windows\System32 as a path into your Environment Variables.

@HwangGeonYun
Copy link

HwangGeonYun commented Jan 8, 2023

If you are unable to find autorun file. then just add C:\Windows\System32 as a path into your Environment Variable
I solved this problem, Thanks!!

@mshabazi68
Copy link

I've faced same issue and resolved by setting environment variables, link is attached, you may checkout for solution. https://github.com/Obaid-Ullah/Data-Analysis.git

Link is not working !

@Obaid-Ullah
Copy link

I've faced same issue and resolved by setting environment variables, link is attached, you may checkout for solution. https://github.com/Obaid-Ullah/Data-Analysis.git

Link is not working !

https://github.com/Obaid-Ullah/dataSci/tree/master/error_EC1
you may check through this link....

@alireza6180
Copy link

alireza6180 commented Feb 3, 2023

FOR THOSE WHO CANT FIND THE 'Command Processor' and cant delete the autorun and/or don't have autorun

FOLLOW THESE INSTRUCTIONS BELOW

  1. From the Desktop right-click My Computer and click Properties. If you don't have a My Computer icon on your desktop, click Start, right-click the My Computer option in the Start menu, and select Properties.
  2. In the System Properties window, click the Advanced tab.
  3. In the Advanced section, click the Environment Variables button below.
  4. In the Environment Variables window, highlight the PATH variable in the System Variable section and click the Edit button. Add the following line there-

C:\Windows\System32

and move it to the top of the list by the Move Up button on the side and press okay. 5. Similarly, in the Environment Variables window, highlight the Path variable in the User Variables section and click the Edit button. Add the following line there-

C:\Windows\System32

and press okay. 6. Finally restart your computer.

Hopefully, it'd work cheers

It solved my problem.
Thanks a lot :)

@dsantana77
Copy link

dsantana77 commented Apr 12, 2024

I Just want to put simplier.
Enter in your powershell or Cmd - write "regedit" - you´ll enter in Registry Editor - then you´ll follow this path: "Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor" - delete the 'autorun'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests