"Easy Install" for v10 no longer works. Fails every time w/same error-multiple OS

Ok, I tried this and got the same error as before. Her is how I did it:

  • On a fresh Ubuntu 18.04 lts server (completely updated)

  • Installed the prerequisites as explained HERE under “Easy Install”

  • Used the Easy Install command from @snv in THIS POST

  • When install script paused to ask for mairadb and admin passwords, I opened a new ssh window as root user and applied your edits to “pip”

  • Went back to original def_user ssh window and filled in passwords to allow script to continue.

  • Install fails again with what seems to be the same error as displayed here:
    TASK [bench : python2 bench init for production] *******************************
    fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/erp_jmi/frappe-bench”, “–frappe-path”, “GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”, “–frappe-branch”, “v10.x.x”], “delta”: “0:00:47.706215”, “end”: “2019-04-15 19:46:08.698088”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-04-15 19:45:20.991873”, “stderr”: “INFO:bench.utils:virtualenv -q env -p /usr/bin/python\nINFO:bench.utils:env/bin/pip -q install --upgrade pip\nDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.\nINFO:bench.utils:env/bin/pip -q install wheel\nDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.\nINFO:bench.utils:env/bin/pip -q install six\nDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.\nINFO:bench.utils:env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit\nDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.\nINFO:bench.app:getting app frappe\nINFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch v10.x.x --origin upstream\nCloning into ‘frappe’…\nwarning: unable to access ‘/home/erp_jmi/.config/git/attributes’: Permission denied\nINFO:bench.app:installing frappe\nINFO:bench.utils:/home/erp_jmi/frappe-bench/env/bin/pip install -q -e /home/erp_jmi/frappe-bench/apps/frappe \nDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.\n Could not find a version that satisfies the requirement croniter==0.3.26 (from frappe==10.1.71) (from versions: 0.1.4.macosx-10.5-i386, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.2, 0.2.4, 0.2.5, 0.2.7, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.3.16, 0.3.17, 0.3.18, 0.3.19, 0.3.20, 0.3.22, 0.3.23, 0.3.24, 0.3.25, 0.3.28, 0.3.29)\nNo matching distribution found for croniter==0.3.26 (from frappe==10.1.71)\nTraceback (most recent call last):\n File "/usr/local/bin/bench", line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File "/home/erp_jmi/.bench/bench/cli.py", line 40, in cli\n bench_command()\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in call\n return self.main(*args, **kwargs)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main\n rv = self.invoke(ctx)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke\n return callback(*args, **kwargs)\n File "/home/erp_jmi/.bench/bench/commands/make.py", line 30, in init\n python \t\t = python)\n File "/home/erp_jmi/.bench/bench/utils.py", line 75, in init\n get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)\n File "/home/erp_jmi/.bench/bench/app.py", line 135, in get_app\n install_app(app=app_name, bench_path=bench_path, verbose=verbose)\n File "/home/erp_jmi/.bench/bench/app.py", line 171, in install_app\n find_links=find_links))\n File "/home/erp_jmi/.bench/bench/utils.py", line 159, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/erp_jmi/frappe-bench/env/bin/pip install -q -e /home/erp_jmi/frappe-bench/apps/frappe “, “stderr_lines”: [“INFO:bench.utils:virtualenv -q env -p /usr/bin/python”, “INFO:bench.utils:env/bin/pip -q install --upgrade pip”, “DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.”, “INFO:bench.utils:env/bin/pip -q install wheel”, “DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.”, “INFO:bench.utils:env/bin/pip -q install six”, “DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.”, “INFO:bench.utils:env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit”, “DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.”, “INFO:bench.app:getting app frappe”, “INFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch v10.x.x --origin upstream”, “Cloning into ‘frappe’…”, “warning: unable to access ‘/home/erp_jmi/.config/git/attributes’: Permission denied”, “INFO:bench.app:installing frappe”, “INFO:bench.utils:/home/erp_jmi/frappe-bench/env/bin/pip install -q -e /home/erp_jmi/frappe-bench/apps/frappe “, “DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.”, " Could not find a version that satisfies the requirement croniter==0.3.26 (from frappe==10.1.71) (from versions: 0.1.4.macosx-10.5-i386, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.2, 0.2.4, 0.2.5, 0.2.7, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.3.16, 0.3.17, 0.3.18, 0.3.19, 0.3.20, 0.3.22, 0.3.23, 0.3.24, 0.3.25, 0.3.28, 0.3.29)”, “No matching distribution found for croniter==0.3.26 (from frappe==10.1.71)”, “Traceback (most recent call last):”, " File "/usr/local/bin/bench", line 11, in ”, " load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()”, " File "/home/erp_jmi/.bench/bench/cli.py", line 40, in cli”, " bench_command()“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in call”, " return self.main(*args, **kwargs)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main”, " rv = self.invoke(ctx)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke”, " return _process_result(sub_ctx.command.invoke(sub_ctx))“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke”, " return ctx.invoke(self.callback, **ctx.params)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke”, " return callback(*args, **kwargs)“, " File "/home/erp_jmi/.bench/bench/commands/make.py", line 30, in init”, " python \t\t = python)“, " File "/home/erp_jmi/.bench/bench/utils.py", line 75, in init”, " get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)“, " File "/home/erp_jmi/.bench/bench/app.py", line 135, in get_app”, " install_app(app=app_name, bench_path=bench_path, verbose=verbose)“, " File "/home/erp_jmi/.bench/bench/app.py", line 171, in install_app”, " find_links=find_links))“, " File "/home/erp_jmi/.bench/bench/utils.py", line 159, in exec_cmd”, " raise CommandFailedError(cmd)", "bench.utils.CommandFailedError: /home/erp_jmi/frappe-bench/env/bin/pip install -q -e /home/erp_jmi/frappe-bench/apps/frappe "], “stdout”: “Already using interpreter /usr/bin/python\nwarning: unable to access ‘/home/erp_jmi/.config/git/attributes’: Permission denied\n(‘installing’, u’frappe’)”, “stdout_lines”: [“Already using interpreter /usr/bin/python”, “warning: unable to access ‘/home/erp_jmi/.config/git/attributes’: Permission denied”, “(‘installing’, u’frappe’)”]}
    to retry, use: --limit @/tmp/.bench/playbooks/site.retry

    PLAY RECAP *********************************************************************
    localhost : ok=68 changed=42 unreachable=0 failed=1

    Traceback (most recent call last):
    File “install.py”, line 425, in
    install_bench(args)
    File “install.py”, line 122, in install_bench
    run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
    File “install.py”, line 338, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
    File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=erp_jmi’]’ returned non-zero exit status 2

.
.

It appears the editing of “pip” didn’t really make a difference.

The reason I took the 2 ssh window approach is that pip is not installed with the OS and is in fact installed by the early part of the install.py script. So, the natural pause in the script for the passwords was the ideal place to edit ‘pip’ (but it didn’t help). :frowning_face:

BKM