Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executor failed running [/bin/bash -o pipefail -c fx workspace import --archive /workspace.zip]: exit code: 1 #496

Closed
gagandeep987123 opened this issue Aug 30, 2022 · 11 comments
Milestone

Comments

@gagandeep987123
Copy link

Describe the bug
Attemptin to run the openfl-gramine example. I am getting a error at point 4 "Build the Experiment Docker image"

To Reproduce
following the steps mentioned in the openfl-gramine/MANUAL. Also attaching the terminal logs for more reference.
output.zip

Can you please help?

@igor-davidyuk
Copy link
Contributor

It is hard to tell, never saw this before.
Try this: create a clean virtual env, install openfl, and run this script.
See if it goes ok.

@gagandeep987123
Copy link
Author

Just to add on while installing Openfl I am also getting this error

   command: /home/gsingh/virtuar_environments/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d15qsliv
       cwd: /tmp/pip-install-3f4p6l6x/flatten-json/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for flatten-json
  Running setup.py clean for flatten-json
Failed to build flatten-json
ERROR: tensorboardx 2.5.1 has requirement protobuf<=3.20.1,>=3.8.0, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: grpcio-tools 1.34.1 has requirement protobuf<4.0dev,>=3.5.0.post1, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: tensorboard 2.10.0 has requirement protobuf<3.20,>=3.9.2, but you'll have protobuf 4.21.5 which is incompatible.

I had resolved this earlier by downgrading protobuf using pip install protobuf==3.20.1

@gagandeep987123
Copy link
Author

still getting the errror.
output.zip

@igor-davidyuk
Copy link
Contributor

still getting the errror. output.zip

I can not reproduce this. When I run this script image is built successfully for me, probably the reason for this is in your set up.

@gagandeep987123
Copy link
Author

Just to add on while installing Openfl I am also getting this error

   command: /home/gsingh/virtuar_environments/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d15qsliv
       cwd: /tmp/pip-install-3f4p6l6x/flatten-json/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for flatten-json
  Running setup.py clean for flatten-json
Failed to build flatten-json
ERROR: tensorboardx 2.5.1 has requirement protobuf<=3.20.1,>=3.8.0, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: grpcio-tools 1.34.1 has requirement protobuf<4.0dev,>=3.5.0.post1, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: tensorboard 2.10.0 has requirement protobuf<3.20,>=3.9.2, but you'll have protobuf 4.21.5 which is incompatible.

I had resolved this earlier by downgrading protobuf using pip install protobuf==3.20.1

Are you getting this error while installing openfl? I installed a lower version there

@igor-davidyuk
Copy link
Contributor

Just to add on while installing Openfl I am also getting this error

   command: /home/gsingh/virtuar_environments/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d15qsliv
       cwd: /tmp/pip-install-3f4p6l6x/flatten-json/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for flatten-json
  Running setup.py clean for flatten-json
Failed to build flatten-json
ERROR: tensorboardx 2.5.1 has requirement protobuf<=3.20.1,>=3.8.0, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: grpcio-tools 1.34.1 has requirement protobuf<4.0dev,>=3.5.0.post1, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: tensorboard 2.10.0 has requirement protobuf<3.20,>=3.9.2, but you'll have protobuf 4.21.5 which is incompatible.

I had resolved this earlier by downgrading protobuf using pip install protobuf==3.20.1

Are you getting this error while installing openfl? I installed a lower version there

No, I do not see these messages. Are you sure you run pip install openfl in a clean environment?

@gagandeep987123
Copy link
Author

No, I am using it in a virtual environment

@gagandeep987123
Copy link
Author

Just to add on while installing Openfl I am also getting this error

   command: /home/gsingh/virtuar_environments/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d15qsliv
       cwd: /tmp/pip-install-3f4p6l6x/flatten-json/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for flatten-json
  Running setup.py clean for flatten-json
Failed to build flatten-json
ERROR: tensorboardx 2.5.1 has requirement protobuf<=3.20.1,>=3.8.0, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: grpcio-tools 1.34.1 has requirement protobuf<4.0dev,>=3.5.0.post1, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: tensorboard 2.10.0 has requirement protobuf<3.20,>=3.9.2, but you'll have protobuf 4.21.5 which is incompatible.

I had resolved this earlier by downgrading protobuf using pip install protobuf==3.20.1

Are you getting this error while installing openfl? I installed a lower version there

No, I do not see these messages. Are you sure you run pip install openfl in a clean environment?

The error is persistent in other machines also. I tried installing openfl in newly installed ubuntu 20 and in the virtual environment, the error is there.

@MasterSkepticista
Copy link
Collaborator

MasterSkepticista commented Sep 1, 2022

@gagandeep987123 It's a good idea to check the python version (3.8 recommended) and pip version. Any virtual environment you create, python -m pip install -U pip immediately after activating your environment. Install packages after pip has been updated.

Can you try that and see how it goes?

Although this is taken care of in the Dockerfile, from the logs it seems to be a protobuf issue. I'll check it once and let you know.

Edit: wheel is also quoted as a requirement. Also good to check if that is installed after pip is updated.

Just to add on while installing Openfl I am also getting this error

   command: /home/gsingh/virtuar_environments/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3f4p6l6x/flatten-json/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d15qsliv
       cwd: /tmp/pip-install-3f4p6l6x/flatten-json/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for flatten-json
  Running setup.py clean for flatten-json
Failed to build flatten-json
ERROR: tensorboardx 2.5.1 has requirement protobuf<=3.20.1,>=3.8.0, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: grpcio-tools 1.34.1 has requirement protobuf<4.0dev,>=3.5.0.post1, but you'll have protobuf 4.21.5 which is incompatible.
ERROR: tensorboard 2.10.0 has requirement protobuf<3.20,>=3.9.2, but you'll have protobuf 4.21.5 which is incompatible.

I had resolved this earlier by downgrading protobuf using pip install protobuf==3.20.1

Are you getting this error while installing openfl? I installed a lower version there

No, I do not see these messages. Are you sure you run pip install openfl in a clean environment?

The error is persistent in other machines also. I tried installing openfl in newly installed ubuntu 20 and in the virtual environment, the error is there.

@Einse57 Einse57 added this to the Backlog milestone Sep 15, 2022
@igor-davidyuk
Copy link
Contributor

Did you manage to resolve this issue?

@gagandeep987123
Copy link
Author

gagandeep987123 commented Sep 15, 2022

Yes, Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants