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

except subprocess.CalledProcessError, err: #1530

Closed
Muktikanta0123 opened this issue Apr 13, 2021 · 5 comments
Closed

except subprocess.CalledProcessError, err: #1530

Muktikanta0123 opened this issue Apr 13, 2021 · 5 comments

Comments

@Muktikanta0123
Copy link

While loading redis I am getting this error:

./bin/ycsb load redis -s -P workloads/workloada -p "redis.host=127.0.0.1" -p "redis.port=6379"
File "./bin/ycsb", line 223
except subprocess.CalledProcessError, err:
^
SyntaxError: invalid syntax

Can anyone help me to fix?

I am using Python 3.8.5 and javac 11.0.10

@outloudvi
Copy link

YCSB is not updated for Python 3. Please use Python 2 or apply fixes such as #1421 (I personally haven't tested it yet).

@RuifMaxx
Copy link

RuifMaxx commented Oct 11, 2022

However, I got the same error with python2.7

./bin/ycsb load redis -s -P workloads/workloada -p "redis.host=10.68.16.239" -p "redis.port=6379"

File "./bin/ycsb", line 228 except subprocess.CalledProcessError, err: ^ SyntaxError: invalid syntax

my python version is Python 2.7.18 (default, Jul 1 2022, 12:27:04)

1665485218305

@busbey
Copy link
Collaborator

busbey commented Oct 11, 2022

check which version of python is returned by the way ycsb defaults python: /usr/bin/env python or expressly call python 2.7 and give it the path to bin/ycsb as the script to run.

@Muktikanta0123
Copy link
Author

Muktikanta0123 commented Oct 11, 2022 via email

@RuifMaxx
Copy link

thank you very much, It works.

@busbey busbey closed this as completed Oct 12, 2022
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