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

Python3 support for bin/ycsb #12

Open
AKarbas opened this issue Oct 14, 2018 · 2 comments
Open

Python3 support for bin/ycsb #12

AKarbas opened this issue Oct 14, 2018 · 2 comments

Comments

@AKarbas
Copy link

AKarbas commented Oct 14, 2018

I have set python3 as my default version of python, system wide.
As a result, if I run bin/ycsb the program fails and simply states a syntax-error...

Please add the functionality to check if python is compatible and if not, try using python2 command to run ycsb.

-Cheers.

@Vogel612
Copy link

A symptomatic fix would be to change the shebang in bin/ycsb to request python2 from env.
It should be noted that python 2.x is sunsetted upstream. That implies a migration to python 3 would be in order either way.

The simplest fix would be the following patch:

- #!/usr/bin/env python
+ #!/usr/bin/env python2

Anything beyond that will necessarily be more involved. It might be worth checking upstream how YCSB handles the python2 sunsetting.

@koppor
Copy link
Member

koppor commented Oct 15, 2018 via email

Vogel612 added a commit that referenced this issue Oct 15, 2018
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

3 participants