brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.96k stars 2.25k forks source link

except subprocess.CalledProcessError, err: #1530

Closed Muktikanta0123 closed 2 years ago

Muktikanta0123 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Hi Sean,

please use ./bin/ycsb.sh instead of ./bin/ycsb

The above works for me.

Thanks Mukti

On Tue, Oct 11, 2022 at 9:14 PM Sean Busbey @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/brianfrankcooper/YCSB/issues/1530#issuecomment-1274907941, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZA7V6LLLQ4YPJNLOGDXRDWCWDOHANCNFSM422L5C2Q . You are receiving this because you authored the thread.Message ID: @.***>

RuifMaxx commented 2 years ago

thank you very much, It works.