conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
6.14k stars 318 forks source link

Lots of sys variables pointing to miniforge after uninstalling it #386

Open JavierLopezT opened 1 year ago

JavierLopezT commented 1 year ago

Hello. I have followed all the instructions in this repo for uninstalling it (plus restarting my Mac) and now, when I try to run poetry install I get this error:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/Users/javier/Library/Application Support/pypoetry/venv/bin/python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/Users/javier/Library/Application Support/pypoetry/venv/bin/python'
  sys.base_prefix = '/opt/homebrew/Caskroom/miniforge/base'
  sys.base_exec_prefix = '/opt/homebrew/Caskroom/miniforge/base'
  sys.platlibdir = 'lib'
  sys.executable = '/Users/javier/Library/Application Support/pypoetry/venv/bin/python'
  sys.prefix = '/opt/homebrew/Caskroom/miniforge/base'
  sys.exec_prefix = '/opt/homebrew/Caskroom/miniforge/base'
  sys.path = [
    '/opt/homebrew/Caskroom/miniforge/base/lib/python310.zip',
    '/opt/homebrew/Caskroom/miniforge/base/lib/python3.10',
    '/opt/homebrew/Caskroom/miniforge/base/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0000000207926500 (most recent call first):
  <no Python frame>

As you can see, there still a lot of sys. variables that are trying to use miniforge. Is there any way to get rid of all of them at once? I guess I could start looking at the defaults for each one and search where I can modify them, but that is not ideal

Thanks

hmaarrfk commented 1 year ago

I'm not sure how you "uninstalled" things. For miniforge, it is about removing the directory.

That said, you installed it through homebrew. You should likely post to them to ask this question.

In either case, whoever can help will need your shell configuration files.

.zshrc or something similar.

jakirkham commented 1 year ago

That said, you installed it through homebrew. You should likely post to them to ask this question.

Wonder if this should be captured in the README, issue template, or similar