PySyft icon indicating copy to clipboard operation
PySyft copied to clipboard

01-data-scientist-submit-code.ipynb have some problem

Open amostsai opened this issue 1 year ago • 2 comments

Where?

01-data-scientist-submit-code.ipynb

What?

  1. Executing "new_project.create_code_request(obj=mnist_3_linear_layers, client=ds_client)" results in "SyftError: The code to be submitted (name and content) already exists."
  2. Executing "project = new_project.start()" results in "Creating default worker image with tag='local-dev' Building default worker image with tag=local-dev Setting up worker poolname=default-pool workers=0 image_uid=e56eaccabde64b5ab89db5c92cb29113 in_memory=True Default worker pool error. Invalid number of workers: 0."

Is there any missing code in this example program?

Additional Context

Ubuntu 23.10 python 3.11.6 syft 0.8.7b7

amostsai avatar May 04 '24 11:05 amostsai

image

amostsai avatar May 04 '24 11:05 amostsai

Hi @amostsai, thanks a lot for reporting the issue! Would you mind sharing your notebook so we can replicate the issue?

IrinaMBejan avatar May 13 '24 10:05 IrinaMBejan

@amostsai the Orchestra constructor takes params that allow you to specify additional settings:

node = sy.orchestra.launch(
  ...,
  create_producer=True,
  n_consumers=1
)

Are you able to share the code you created so we can understand the issue more?

It looks like its saying you have submitted your code already (which is fine, it just means you need to have it approved and then use it), and the second issue is that if you start a python server without consumers it won't do any of the background work.

madhavajay avatar May 21 '24 04:05 madhavajay

I will close this for now as there has been no response @amostsai if you can supply the steps you took I can re-open the issue and address it.

madhavajay avatar May 30 '24 02:05 madhavajay