Apt update + apt upgrade + apt autoremove = bye bye python dependencies
wailer
75 Posts
November 29, 2019, 3:02 amQuote from wailer on November 29, 2019, 3:02 amAfter doing this on any node in version 2.3.1 , apt removes required python modules which ends in unusable node.
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: Traceback (most recent call last):
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: File "/opt/petasan/services/web/deploy.py", line 18, in <module>
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: from flask import Flask, session
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: ImportError: No module named flask
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Failed with result 'exit-code'.
Thanks!
After doing this on any node in version 2.3.1 , apt removes required python modules which ends in unusable node.
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: Traceback (most recent call last):
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: File "/opt/petasan/services/web/deploy.py", line 18, in <module>
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: from flask import Flask, session
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: ImportError: No module named flask
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Failed with result 'exit-code'.
Thanks!
admin
2,918 Posts
November 29, 2019, 9:13 amQuote from admin on November 29, 2019, 9:13 amapt upgrade / autoremove is not supported in v. 2.3.1. Online upgrades is supported in 2.4.0 which is due soon. with 2.3.1 you can use apt to install tools but not for upgrades. in your current case, you should be able to fix it by apt install python-flask
apt upgrade / autoremove is not supported in v. 2.3.1. Online upgrades is supported in 2.4.0 which is due soon. with 2.3.1 you can use apt to install tools but not for upgrades. in your current case, you should be able to fix it by apt install python-flask
Apt update + apt upgrade + apt autoremove = bye bye python dependencies
wailer
75 Posts
Quote from wailer on November 29, 2019, 3:02 amAfter doing this on any node in version 2.3.1 , apt removes required python modules which ends in unusable node.
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: Traceback (most recent call last):
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: File "/opt/petasan/services/web/deploy.py", line 18, in <module>
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: from flask import Flask, session
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: ImportError: No module named flask
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Failed with result 'exit-code'.Thanks!
After doing this on any node in version 2.3.1 , apt removes required python modules which ends in unusable node.
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: Traceback (most recent call last):
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: File "/opt/petasan/services/web/deploy.py", line 18, in <module>
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: from flask import Flask, session
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: ImportError: No module named flask
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Failed with result 'exit-code'.
Thanks!
admin
2,918 Posts
Quote from admin on November 29, 2019, 9:13 amapt upgrade / autoremove is not supported in v. 2.3.1. Online upgrades is supported in 2.4.0 which is due soon. with 2.3.1 you can use apt to install tools but not for upgrades. in your current case, you should be able to fix it by apt install python-flask
apt upgrade / autoremove is not supported in v. 2.3.1. Online upgrades is supported in 2.4.0 which is due soon. with 2.3.1 you can use apt to install tools but not for upgrades. in your current case, you should be able to fix it by apt install python-flask