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

Partially made Gumby Python 3 compatible #415

Merged
merged 3 commits into from
May 23, 2019
Merged

Conversation

devos50
Copy link
Contributor

@devos50 devos50 commented May 23, 2019

In this PR, I made Gumby partially Python 3 compatible, at least for my own experiment (see here).

We still have to fix libtorrent since it does not load properly under Python 3 for some reason. Additionally, the post-experiment scripts are still executed with Python 2, due to the shebangs used there. Also, since Tribler is not fully Python 3 compatible yet, support for Python 3 is fully optional and "old" experiments written with Python 2 should still work.

To run new experiments under Python 3, make sure to pass the --py3 flag to the build_virtualenv.sh script (so it will prepare a Python 3 virtualenv for you), and that you call run.py with Python 3 (for example: python3 gumby/run.py gumby/experiments/market/market_experiment.conf). These changes should be enough to run your experiment under Python 3. 🎉

Validation experiment to build a Python 3 venv from scratch.
Example of a Gumby experiment executed with Python 3.
Confirmed to still work under Python 2.

@devos50 devos50 force-pushed the py3 branch 4 times, most recently from 7db44d8 to eed9a93 Compare May 23, 2019 14:50
@devos50 devos50 marked this pull request as ready for review May 23, 2019 15:00
@devos50 devos50 changed the title WIP: Partially made Gumby Python 3 compatible READY: Partially made Gumby Python 3 compatible May 23, 2019
@devos50 devos50 requested review from qstokkink and xoriole May 23, 2019 15:00
@devos50 devos50 changed the title READY: Partially made Gumby Python 3 compatible Partially made Gumby Python 3 compatible May 23, 2019
@qstokkink qstokkink merged commit ed24cf9 into Tribler:devel May 23, 2019
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

Successfully merging this pull request may close these issues.

2 participants