fabiogra / moseca

A Streamilt web app for music source separation & karaoke
https://fabiogra-moseca.hf.space
MIT License
251 stars 25 forks source link

Docker installation fails #7

Closed nekiee13 closed 9 months ago

nekiee13 commented 1 year ago

Original code failed.

Tried to add a yt-dlp at line 8. No change apt-get install -y ffmpeg jq curl yt-dlp && \

Tried to copy scripts - no change COPY scripts/prepare_samples.sh /prepare_samples.sh COPY scripts/inference.py /inference.py

Tried modify executable RUN chmod +x prepare_samples.sh RUN ls -l / RUN sh -x ./prepare_samples.sh

This is error description I get all the time:

=> ERROR [stage-0 15/16] RUN sh -x ./prepare_samples.sh 0.5s

[stage-0 15/16] RUN sh -x ./prepare_samples.sh:

0 0.504 + echo Starting prepare_samples.sh...

0 0.504 Starting prepare_samples.sh...

0 0.504 + cat /run/secrets/PREPARE_SAMPLES

0 0.505 cat: /run/secrets/PREPARE_SAMPLES: No such file or directory

0 0.505 + export PREPARE_SAMPLES=

0 0.505 +

: not foundprepare_samples.sh: 5:

0 0.505 ./prepare_samples.sh: 18: Syntax error: word unexpected (expecting "do")


Dockerfile:36

34 | RUN chmod +x prepare_samples.sh 35 | RUN ls -l / 36 | >>> RUN sh -x ./prepare_samples.sh 37 | 38 |

ERROR: failed to solve: process "/bin/sh -c sh -x ./prepare_samples.sh" did not complete successfully: exit code: 2

fabiogra commented 1 year ago

Hey @nekiee13, did you pull the repo in Windows OS?

nekiee13 commented 1 year ago

Hi, i git cloned repo.

On Fri, Sep 22, 2023 at 10:55 AM Fabio Grasso @.***> wrote:

Hey @nekiee13 https://github.com/nekiee13, did you pull the repo in Windows OS?

— Reply to this email directly, view it on GitHub https://github.com/fabiogra/moseca/issues/7#issuecomment-1731060304, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB2KT6LL63JSOP7ZBM7WJ4LX3VG7DANCNFSM6AAAAAA4SN3ETM . You are receiving this because you were mentioned.Message ID: @.***>

nekiee13 commented 1 year ago

I work under win11. Got docker installed, nVidia 4070 drivers and nvcc active I know that nVidia got to be separatly added to docke (dont know how to do it), cpp Toolkit, ms desktop Toolkit, cpp compiler and debugger also separately. I really think a got everything covered, but I'm not programmer and just can't get it to work. I don't understand why script don't see script, cause they are there. I tried to copy them in main directory, but didn't succeed. When thinking now, maybe I should have used .\ instead of ./... will try that, but I don't know..

On Fri, 22 Sept 2023, 10:55 Fabio Grasso, @.***> wrote:

Hey @nekiee13 https://github.com/nekiee13, did you pull the repo in Windows OS?

— Reply to this email directly, view it on GitHub https://github.com/fabiogra/moseca/issues/7#issuecomment-1731060304, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB2KT6LL63JSOP7ZBM7WJ4LX3VG7DANCNFSM6AAAAAA4SN3ETM . You are receiving this because you were mentioned.Message ID: @.***>

fabiogra commented 11 months ago

If you cloned the repo on a Windows machine, it might have converted the line endings in the shell script files. You could try to convert them back to UNIX format by running dos2unix prepare_samples.sh

You could also try to add this line in the Dockerfile (before RUN chmod +x /prepare_samples.sh):

RUN dos2unix /prepare_samples.sh

Let me know if that worked :)

nekiee13 commented 11 months ago

Ok, will try that. I'm on the road so, some time next week.... thank you for helping me.

On Mon, 16 Oct 2023, 10:00 Fabio Grasso, @.***> wrote:

If you cloned the repo on a Windows machine, it might have converted the line endings in the shell script files. You could try to convert them back to UNIX format by running dos2unix prepare_samples.sh

You could also try to add this line in the Dockerfile (before RUN chmod +x /prepare_samples.sh):

RUN dos2unix /prepare_samples.sh

Let me know if that worked :)

— Reply to this email directly, view it on GitHub https://github.com/fabiogra/moseca/issues/7#issuecomment-1763936919, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB2KT6NMI7Z6T3MRRPCIP6DX7TSTNAVCNFSM6AAAAAA4SN3ETOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTHEZTMOJRHE . You are receiving this because you were mentioned.Message ID: @.***>

kevinlinxc commented 9 months ago

I had a different issue where the .sh file was not found, but dos2unix also solved it, just thought I'd post about it here: image

Maybe make a note to run that command on Windows?