0

snaphu path error

I was trying to open the snaphu.conf file using python

process=subprocess.Popen(snaphu_args, cwd=str(temp_path),shell=True)

But error saying The system cannot find the file specified appears in the above line. Is there a way to rectify this?

Devi
  • 1
  • Have you `snaphu` installed in your machine? Doesn't look like. – Miguel Cardoso Dec 23 '22 at 03:56
  • Yes it is installed. There's no issue in accessing snaphu directly through cygwin . But the error comes when i try to go to its path using my python code. – Devi Dec 23 '22 at 04:58
  • Looks like you are running a command shell. `bash -c ` does not set up the usual cygwin paths, so the shared libraries referenced by `snaphu.exe` cannot be found. I always run a mintty terminal with the bash shell when I am using cygwin apps. Considering adding the `-l` option to the bash command. – Doug Henderson Dec 23 '22 at 20:30

0 Answers0