Did you manage to find a solution for the “request.get” error. I’m also getting a similar error when trying to run bench update or bench update --patch.
My DB was originally a V11 which I forced restored to V12. everything went smoothly. I can even access the system, but I keep getting this error when I run an update.
$ sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
Thanks @Max3 for your suggestion but it seems the issue goes deeper. I don’t understand “f-strings” but at first view the “f” does seem to be a typo. However, after editing as you suggest I’m getting a similar error in another file.
I am using ubuntu 16.04, as someone already pointed that it is the problem of python, even I have faced same issue, you can use the following steps to change your python environment.
Since the latest version of python in ubuntu 16.04 is 3.5 and I had to install 3.6, I used 3rd party repository to install it as shown here How to Install Latest Python 3.11 in Ubuntu
Once installation is done please check the default python in your system and if require change it to python 3.6 using options, the command is "sudo update-alternatives --config python3 "
output:
Blockquote
There are 2 choices for the alternative python3 (providing /usr/bin/python3).
Version-12 is meant to be compatible with PY2 and PY3. Although, these errors shouldn’t interfere in your usages. Unless, you use bench --site migrate-to frappe.cloud. However, the compatibility issues are fixed. For v12, this will be fixed in the next minor release.