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

How to uninstall everything this "script" did? #34

Open
Delicious-Bacon opened this issue Dec 20, 2022 · 0 comments
Open

How to uninstall everything this "script" did? #34

Delicious-Bacon opened this issue Dec 20, 2022 · 0 comments

Comments

@Delicious-Bacon
Copy link

Delicious-Bacon commented Dec 20, 2022

I am working on Rocky Linux 9 and I realized too late that this was made for Ubuntu...

I was following this video: Lesson 2: Practical Deep Learning for Coders 2022, which "guided" me to install everything with fastsetup and continue to install fastchan fastai nbdev jupyter with mamba.

  1. How do I boot into desktop without doing conda config --set auto_activate_base False?

First of all, after doing everything and rebooting my PC, I could not launch my kernel’s desktop with the command startx anymore. I spent an hour looking around for a “solution” and it ended up being mamba’s base environment being activated by default. I deactivated it to be able to enter my desktop.

  1. Why is this failing?

Since it’s not recommended to install any packages into base env as the video tutorial suggests, but instead create new envs, I wanted to uninstall the fastchan fastai, fastchan nbdev and fastchan jupyter from the base env, but I am unable to uninstall fastchan jupyter because it keeps tossing errors.

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/conda/_vendor/boltons/setutils.py", line 247, in remove
        didx = self.item_index_map.pop(item)
    KeyError: PackageRecord(_hash=-2416236097303072177, name='__linux', version='5.14.0', build='0', build_number=0, channel=Channel("@"), subdir='linux-64', fn='__linux', md5='12345678901234567890123456789012', package_type='virtual_system')
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/conda/exceptions.py", line 1129, in __call__
        return func(*args, **kwargs)
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/mamba.py", line 935, in exception_converter
        raise e
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/mamba.py", line 928, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/mamba.py", line 886, in _wrapped_main
        result = do_call(parsed_args, p)
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/mamba.py", line 752, in do_call
        exit_code = remove(args, parser)
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/mamba.py", line 240, in remove
        conda_transaction = to_txn(
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/utils.py", line 436, in to_txn
        final_precs = compute_final_precs(
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/mamba/utils.py", line 371, in compute_final_precs
        final_precs.remove(i_rec)
      File "/home/sebastijan/mambaforge/lib/python3.10/site-packages/conda/_vendor/boltons/setutils.py", line 249, in remove
        raise KeyError(item)
    KeyError: PackageRecord(_hash=-2416236097303072177, name='__linux', version='5.14.0', build='0', build_number=0, channel=Channel("@"), subdir='linux-64', fn='__linux', md5='12345678901234567890123456789012', package_type='virtual_system')

`$ /home/sebastijan/mambaforge/bin/mamba uninstall -c fastchan jupyter`

  environment variables:
                 CIO_TEST=<not set>
                CONDA_EXE=/home/sebastijan/mambaforge/bin/conda
         CONDA_PYTHON_EXE=/home/sebastijan/mambaforge/bin/python
               CONDA_ROOT=/home/sebastijan/mambaforge
              CONDA_SHLVL=0
           CURL_CA_BUNDLE=<not set>
                     PATH=/home/sebastijan/mambaforge/condabin:/home/sebastijan/.local/bin:/home
                          /sebastijan/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr
                          /local/go/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>
               WINDOWPATH=1

     active environment : None
            shell level : 0
       user config file : /home/sebastijan/.condarc
 populated config files : /home/sebastijan/mambaforge/.condarc
                          /home/sebastijan/.condarc
          conda version : 22.9.0
    conda-build version : not installed
         python version : 3.10.6.final.0
       virtual packages : __cuda=12.0=0
                          __linux=5.14.0=0
                          __glibc=2.34=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/sebastijan/mambaforge  (writable)
      conda av data dir : /home/sebastijan/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/sebastijan/mambaforge/pkgs
                          /home/sebastijan/.conda/pkgs
       envs directories : /home/sebastijan/mambaforge/envs
                          /home/sebastijan/.conda/envs
               platform : linux-64
             user-agent : conda/22.9.0 requests/2.28.1 CPython/3.10.6 Linux/5.14.0-162.6.1.el9_1.0.1.x86_64 rocky/9.1 glibc/2.34
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
  1. Start anew from fresh install?

My guess is that I would do best to do a fresh install of mamba, but how to do that? I tried to uninstall it via conda uninstall mamba but conda then wants to download each package mamba had instead...

  1. Another issue

I also have missing .bashrc.local warnings whenever I open terminal now, so there's something messed up with that too. My .bashrc looks like this:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
	for rc in ~/.bashrc.d/*; do
		if [ -f "$rc" ]; then
			. "$rc"
		fi
	done
fi

unset rc

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/sebastijan/mambaforge/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/sebastijan/mambaforge/etc/profile.d/conda.sh" ]; then
        . "/home/sebastijan/mambaforge/etc/profile.d/conda.sh"
    else
        export PATH="/home/sebastijan/mambaforge/bin:$PATH"
    fi
fi
unset __conda_setup

if [ -f "/home/sebastijan/mambaforge/etc/profile.d/mamba.sh" ]; then
    . "/home/sebastijan/mambaforge/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<

source ~/.bashrc.local
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

1 participant