HewlettPackard / swarm-learning

A simplified library for decentralized, privacy preserving machine learning
Apache License 2.0
328 stars 100 forks source link

ERROR: Invalid requirement: 'swarmlearning==client': Expected end or semicolon (after name and no valid version specifier) #249

Closed PNg-HA closed 2 months ago

PNg-HA commented 2 months ago

Issue description

SN1: ./scripts/bin/run-sn -d --rm --name=sn1 \ --network=host-1-net --host-ip=${HOST_1_IP} \ --sentinel --sn-p2p-port=${SN_P2P_PORT} \ --sn-api-port=${SN_API_PORT} \ --key=workspace/mnist/cert/sn-1-key.pem \ --cert=workspace/mnist/cert/sn-1-cert.pem \ --capath=workspace/mnist/cert/ca/capath \ --apls-ip=${APLS_IP}

SN2: ./scripts/bin/run-sn -d --rm --name=sn2 \ --network=host-2-net --host-ip=${HOST_2_IP} \ --sentinel-ip=${SN_1_IP} --sn-p2p-port=${SN_P2P_PORT} \ --sn-api-port=${SN_API_PORT} --key=workspace/mnist/cert/sn-2-key.pem \ --cert=workspace/mnist/cert/sn-2-cert.pem \ --capath=workspace/mnist/cert/ca/capath \ --apls-ip=${APLS_IP}

SWOP1: ./scripts/bin/run-swop -d --name=swop1 --network=host-1-net \ --sn-ip=${SN_1_IP} --sn-api-port=${SN_API_PORT} \ --usr-dir=workspace/mnist/swop --profile-file-name=swop1_profile.yaml \ --key=workspace/mnist/cert/swop-1-key.pem \ --cert=workspace/mnist/cert/swop-1-cert.pem \ --capath=workspace/mnist/cert/ca/capath -e SWOP_KEEP_CONTAINERS=True -e http_proxy= -e https_proxy= \ --apls-ip=${APLS_IP}

SWOP2: ./scripts/bin/run-swop -d --name=swop2 --network=host-2-net \ --sn-ip=${SN_2_IP} --sn-api-port=${SN_API_PORT} \ --usr-dir=workspace/mnist/swop --profile-file-name=swop2_profile.yaml \ --key=workspace/mnist/cert/swop-2-key.pem \ --cert=workspace/mnist/cert/swop-2-cert.pem \ --capath=workspace/mnist/cert/ca/capath -e SWOP_KEEP_CONTAINERS=True -e http_proxy= -e https_proxy= \ --apls-ip=${APLS_IP} SWCI: ./scripts/bin/run-swci --name=swci1 --network=host-1-net \ --usr-dir=workspace/mnist/swci --init-script-name=swci-init \ --key=workspace/mnist/cert/swci-1-key.pem \ --cert=workspace/mnist/cert/swci-1-cert.pem \ --capath=workspace/mnist/cert/ca/capath \ -e http_proxy= -e https_proxy= --apls-ip=${APLS_IP} \ -e SWCI_RUN_TASK_MAX_WAIT_TIME=960 image

Swarm Learning Version: 2.2

OS and ML Platform

Quick Checklist: Respond [Yes/No]

Additional notes

NOTE: Create an archive with supporting artifacts and attach to issue, whenever applicable.

sn2.txt sn1.txt swop2.txt swop1.txt swci.txt

FrancescaFrattini commented 2 months ago

Getting same error with the CIFAR10 example when I run those commands cp -L lib/swarmlearning-client-py3-none-manylinux_2_24_x86_64.whl workspace/cifar10/ml-context/ docker build -t user-ml-env-tf2.7.0 workspace/cifar10/ml-context

PNg-HA commented 2 months ago

I have searched the message error in google and found the same message error in https://github.com/posit-dev/rsconnect-python/issues/605. If this is true, I think the real issue lines in the line "RUN pip3 install --upgrade pip" in the user_env_tf_build_task.yaml that will update to the latest pip version, which is the version results in the wheel error. I will try to upgrade to the suitable pip version and inform the results later.

PNg-HA commented 2 months ago

It works. The suitable pip version I use is 24.0. Here is the suitable user_env_tf_build_task.yaml. user_env_tf_build_task.txt