Python 3 Migration Discussion

What I’m manually doing to test is,

sudo pip3.5 install -e ~/.bench
cd ~/frappe-bench-dev
rm -fr ./env
bench setup env

There were error with MySQL-python while installing frappe on pure v3, replaced mysqlclient (just to proceed)

Bench still needs some changes for pure v3 use.

revant@revant-laptop:~/frappe-bench-dev$ bench get-app https://github.com/frappe/frappe
INFO:bench.app:getting app frappe
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/revant/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/revant/.bench/bench/commands/make.py", line 30, in get_app
    get_app(git_url, branch=branch)
  File "/home/revant/.bench/bench/app.py", line 58, in get_app
    shallow_clone = '--depth 1' if check_git_for_shallow_clone() else ''
  File "/home/revant/.bench/bench/utils.py", line 321, in check_git_for_shallow_clone
    git_version = get_git_version()
  File "/home/revant/.bench/bench/utils.py", line 308, in get_git_version
    version = '.'.join(version.split('.')[0:2])
TypeError: a bytes-like object is required, not 'str'

The above error only exists on pure v3 bench. v2 bench works as expected.