question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vim:E344: Can't find directory "C:\Program Files\Python37\libs" in cdpath

See original GitHub issue
  • vim or neovim?
    • [x ] vim
    • neovim
  • Output of vim --version or nvim --version:
  • Output of :echo has("python"):
  • Output of :echo has("python3"):
  • Output of :echo &pythondll(only vim, not neovim):
  • Output of :echo &pythonthreedll(only vim, not neovim):
  • Output of :py print(sys.version):
  • Output of :py3 print(sys.version):
  • Output of :echo g:Lf_Debug_Cmd:
  • Output of :echo g:Lf_FilesFromCache:
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • [ x] Etc.
  • Configurations related to LeaderF in vimrc:

Describe your question, feature request, or bug.

using the vim in git bash of windows when open the file found, Error detected while processing function leaderf#Any#start[4]…leaderf#LfPy: line 1: Traceback (most recent call last): File “<string>”, line 1, in <module> File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\anyExpl.py”, line 805, in start the_args.start(arguments, *args, **kwargs) File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\anyExpl.py”, line 737, in _default_action manager.startExplorer(win_pos[2:], *args, **kwargs) File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\fileExpl.py”, line 808, in startExplorer super(FileExplManager, self).startExplorer(win_pos, *args, **kwargs) File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\manager.py”, line 2083, in startExplorer self.input() File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\manager.py”, line 62, in deco func(self, *args, **kwargs) File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\manager.py”, line 2418, in input if self.accept() is None: File “c:\Users\ebinhua.vim\plugged\LeaderF\autoload\leaderf\python\leaderf\manager.py”, line 1753, in accept chdir(cwd) vim.error: Vim:E344: Can’t find directory “C:\Program Files\Python37\libs” in cdpath Error detected while processing function leaderf#Any#start: line 4: E171: Missing :endif

Steps to reproduce

Actual behaviour

Expected behaviour

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Yggdrootcommented, Aug 22, 2020

@ApolloTang yours is https://github.com/Yggdroot/LeaderF/issues/616
, it is a different issue.

0reactions
ebinhuacommented, Aug 24, 2020

I think it is because I using the vim in Msys2, but the python is installed in Windows. and I setting this set pythonthreedll=/c/Program\ Files/Python37/lib/python3.dll. which can trigger the python in leaderf , but the python is work in windows, so the path is in windows format, and cause the problem.

I installed the python in Msys2,by “pacman -S python“. and remain the default setting of pythonthreedll in vim, then the problem fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cdpath can't find directory which has space. #277 - GitHub
Describe the bug Got error when use Vim open file which is located at directory that has space in directory name.
Read more >
Cmake can't find python37.dll on Windows 10, but file path is ...
I am working on a Windows 10 machine 64-bit installation with python 3.7.9 installed (not under Anaconda) in the typical "Program Files" ...
Read more >
Cannot find what exports CDPATH - Super User
I would search /etc and my home directory for any file the name of which resembles profile or bash and xargs grep those...
Read more >
cd is not a program - Sebastian Jambor's blog
If we execute cat some-dir/some-file , the shell first tries to find the absolute path to cat using the PATH variable; usually, it...
Read more >
What is an "alternative directory name" in CDPATH for the cd ...
The search path for the cd command. This is a colon-separated list of directories in which the shell looks for destination directories specified ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found