ubaldot / vim-conda-activate

Activate Conda environments in Vim.
https://www.vim.org/scripts/script.php?script_id=6074
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

Error during installation #11

Closed hmars-t closed 10 months ago

hmars-t commented 10 months ago

I tried to install the plugin under MacVim using vundle and unfortunately I always get the following error message during the installation process

~ > Python path configuration:
  PYTHONHOME = '/Users/testuser/miniforge3'
  PYTHONPATH = (not set)
  program name = 'python3'
  isolated = 0
  environment = 1
  user site = 1
  safe_path = 0
  import site = 1
  is in build tree = 0
  stdlib dir = '/Users/testuser/miniforge3/lib/python3.11'
  sys._base_executable = '/opt/homebrew/Cellar/macvim/9.0.1897/MacVim.app/Contents/MacOS/Vim'
  sys.base_prefix = '/Users/testuser/miniforge3'
  sys.base_exec_prefix = '/Users/testuser/miniforge3'
  sys.platlibdir = 'lib'
  sys.executable = '/opt/homebrew/Cellar/macvim/9.0.1897/MacVim.app/Contents/MacOS/Vim'
  sys.prefix = '/Users/testuser/miniforge3'
  sys.exec_prefix = '/Users/testuser/miniforge3'
  sys.path = [
    '/Users/testuser/miniforge3/lib/python311.zip',
    '/Users/testuser/miniforge3/lib/python3.11',
    '/Users/testuser/miniforge3/lib/python3.11/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 0x00000001de3a1ec0 (most recent call first):
  <no Python frame>

The paths to the Conda installation are actually correct and I have already tested a fresh installation of Conda, unfortunately without success.

ubaldot commented 10 months ago

Do you get 1 in response to :echo has('python3')and Hello World in response to :python3 print('Hello World') before installing vim-conda-activate? You could also try one of the solutions proposed here. Let me know! :)