0011ai / deailab

Decentralised AI Jupyter Lab Extension
MIT License
2 stars 1 forks source link

Unable to add custome Image #12

Closed jvd001 closed 9 months ago

jvd001 commented 11 months ago

By adding the image ubuntu:latest I got the message

3:24:55 PM Adding ubuntu:latest image

3:24:55 PM Failed to add Image ubuntu:latest: list index out of range

What is going wrong or what do I need to do to add Custome Images

TX, Jaco

trungleduc commented 11 months ago

Hi, do you have the ifps desktop app running?

JvD007 commented 11 months ago

No, I'm running ipfs and bacalhau as a daemon and running it in a private setup on Linux servers

jvd001 commented 10 months ago

We have installed everything on a clean server, with IPFS Desktop 0.31 and running. but, we have still the same problem.

What can be the problem? Are the log files we can check etc

0011ai commented 10 months ago

Are you able to run a simple hello world python code with the normal python docker image?

JvD007 commented 10 months ago

Yes, that works fine. It's only adding custom image

I'm running this in Jupyter and works also fine

import pprint

from bacalhau_sdk.api import submit from bacalhau_sdk.config import get_client_id from bacalhau_apiclient.models.storage_spec import StorageSpec from bacalhau_apiclient.models.spec import Spec from bacalhau_apiclient.models.job_spec_language import JobSpecLanguage from bacalhau_apiclient.models.job_spec_docker import JobSpecDocker from bacalhau_apiclient.models.publisher_spec import PublisherSpec from bacalhau_apiclient.models.deal import Deal

data = dict( APIVersion='V1beta1', ClientID=get_client_id(), Spec=Spec( engine="Docker", publisher_spec=PublisherSpec(type="IPFS"), docker=JobSpecDocker( image="ubuntu:18.04", entrypoint=["echo", "Hello World new Ubuntu image!"], ), language=JobSpecLanguage(job_context=None), wasm=None, resources=None, timeout=1800, outputs=[ StorageSpec( storage_source="IPFS", name="outputs", path="/outputs", ) ], deal=Deal(concurrency=1), do_not_track=False, ), )


From: Noughties Ones - 0011.ai @.> Sent: Tuesday, November 7, 2023 3:57 PM To: 0011ai/deailab @.> Cc: Jaco van Dijk - Dell Technologies @.>; Comment @.> Subject: Re: [0011ai/deailab] Unable to add custome Image (Issue #12)

Are you able to run a simple hello world python code with the normal python docker image?

— Reply to this email directly, view it on GitHubhttps://github.com/0011ai/deailab/issues/12#issuecomment-1798774776, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALMDENWRQ2XRB2H2MCLHM3TYDJD4NAVCNFSM6AAAAAA5XWHEYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJYG43TINZXGY. You are receiving this because you commented.Message ID: @.***>

0011ai commented 9 months ago

I can reproduce it. Will check what is wrong.

0011ai commented 9 months ago

There were two issues. One: Ubuntu:latest does not have python3 installed so we cannot use it. I added a check that throws an error if this happens so you know why the image cannot be added. Two: There was another bug due to bacalhau introducing a new state "New" before "InProgress" which deairequest was not checking for. You need to use version 0.0.19 of deairequest. V0.1.11 of deailab should have reference the new version of deairequest.

0011ai commented 9 months ago

Hopefully this clarifies things.