nanoporetech / medaka

Sequence correction provided by ONT Research
https://nanoporetech.com
Other
391 stars 73 forks source link

Medaka_consensus python command not found error message #481

Closed LEGMCGILL closed 3 months ago

LEGMCGILL commented 6 months ago

Describe the bug I am trying to do self polishing of my nanopore data, however, I am encountering python: command not found error message, although python is installed, I have python3 and python3.8 apparently. I have tried a couple of options including moving the medaka_consensus to my path, I also tried moving python to my path. Find the following picture with the error message that I am getting: Some things I have tried with no changes is updating from medaka 1.11.2 to medaka 1.11.3 Logging No relevant logging messages.

Environment (if you do not have a GPU, write No GPU):

There is no GPU in the instance I am currently working on, I dont have a Nvidia driver, nor CUDA or cuDNN installed.

Additional context Find the picture of my screen with the commands as well as the error messages I am receiving.

Best,

Laura. image

cjw85 commented 6 months ago

On Ubuntu20.04 the default setup is that the Python interpreter is available only through explicit use of the python3 command, not python. There is a system package python-is-python3 that can be installed in order to make python refer to python3. This can be installed with:

sudo apt install python-is-python3

We also recommend using a virtual environment to install medaka. For this on Ubuntu 20.04 you will first need to install the system package:

sudo apt install python3-virtualenv

as the Ubuntu maintainers choose not to include the Python virtualenv component as part of their Python distribution.

To install medaka then run:

python3 -m venv medaka --prompt "(medaka) "
. medaka/bin/activate
pip install --upgrade pip
pip install medaka

(similar to those commands in the README). Whenever you wish to run medaka you will always need to activate the virtual environment with:

. medaka/bin/activate

We recommend the use of virtual environments to maintain isolation between different software installations.

LEGMCGILL commented 6 months ago

Thank you so much,

This instructions where really helpful to sort the initial error message. I also installed all of the libraries and packages needed to run along medaka. At the moment of running the analysis it starts correctly the process, and it keeps on displaying the process being done but at the end it finally displays a message saying that medaka consensus failed to run.

See attached picture.

image I also noticed that some files where generated even with this error message but I am assuming they are still incomplete? Are they the usual output one is supposed to observe or are they all complete regardless of the message I received.

Thanks for your valuable feedback.

image

Laura.

cjw85 commented 6 months ago

The Killed message suggests that the operating system stopped the program whilst it was running. Why it did this I canny say.

cjw85 commented 3 months ago

Closing on the assumption this issue was resolved.