Running a Linux command for "Ubuntu on Windows" with WSL from a python script
1
0
Entering edit mode
3.0 years ago
langziv ▴ 70

Hello.
I'm using the command

Popen(['wsl', '/tmp/docker-desktop-root/mnt/host/c/Users/user/ensembl-vep/vep\n'], stderr=STDOUT).stdout

from a python script to run a Linux program "ensembl-vep". Unlike when I run the command in "Ubuntu on Windows", when I run it from the python script I get the following error message:

env: can't execute 'perl': No such file or directory.

I couldn't find relevant information about that issue.
Does anyone have an idea what I should do?

Thanks.

ensembl-vep windows-subsystem-for-linux wsl python ubuntu • 1.3k views
ADD COMMENT
0
Entering edit mode
3.0 years ago
mb • 0

The script vep is trying to find perl by:

 #!/usr/bin/env/ perl 

The error is telling you it cannot find it.

I would suggest to have this tool installed locally and not try to run it from WSL. From what I remember in newer versions of WSL you won't even have direct access to files of linux subsystem from outside and it's all bundled in a single image-like object.

ADD COMMENT

Login before adding your answer.

Traffic: 2316 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6