RitataLU / MethylC-analyzer

GNU General Public License v3.0
11 stars 4 forks source link

Docker image missing modules #3

Closed bayraktar1 closed 1 year ago

bayraktar1 commented 1 year ago

Hello,

I am working on a HPC so I have to use singularity instead of docker. After pulling the image I get the following error:

(singularityEnv) dogukan@mutant33:[SCREEN]:~/methylc:singularity run docker://peiyulin/methylc:V1.0
INFO:    Converting OCI blobs to SIF format
INFO:    Starting build...
INFO:    Creating SIF file...
INFO:    Converting SIF file to temporary sandbox...
Singularity> python MethylC-analyzer/scripts/MethylC.py --help
Traceback (most recent call last):
  File "/home/dogukan/methylc/MethylC-analyzer/scripts/MethylC.py", line 5, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'

It seems like pandas is not installed in the image.

beritlin commented 1 year ago

Hello bayraktar1,

Based on the traceback you provided, it appears that you are still running the code on your local system instead of within the Docker image. Please ensure that you have followed the Docker tutorial provided here: Tutorial_Docker.md. This tutorial will guide you through the steps to properly set up and run the code within the Docker image.

bayraktar1 commented 1 year ago

Hello bayraktar1,

Based on the traceback you provided, it appears that you are still running the code on your local system instead of within the Docker image. Please ensure that you have followed the Docker tutorial provided here: Tutorial_Docker.md. This tutorial will guide you through the steps to properly set up and run the code within the Docker image.

Hello,

Thank you for your response!

It seems like the code was indeed not running within the image. I had to bind my current directory to the /app directory in the image as described in the Docker tutorial.

For anyone that also works with singularity the command looks like this:

singularity run --bind $(pwd):/app docker://peiyulin/methylc:V1.0  python /MethylC-analyzer/scripts/MethylC.py -h