Olá, fiz a atualização do Debian e as atualizações do WordOps, após servidor reiniciado, qualquer comando do WO não funciona como exemplo abaixo:
wo site list
-bash: wo: command not found
Fiz um snapshirts na contabo antes, mas tenho receio que dei algum B.O, então o que sugerem?
Aqui também estou com problemas.
Fiz uma instalação do zero agora a pouco e após informar meu nome e e-mail, ao finalizar a instalação, apresentou esse erro:
Traceback (most recent call last):
File “/usr/local/bin/wo”, line 8, in
sys.exit(main())
File “/opt/wo/lib/python3.5/site-packages/wo/cli/main.py”, line 93, in main
with app:
File “/opt/wo/lib/python3.5/site-packages/cement/core/foundation.py”, line 1501, in enter
self.setup()
File “/opt/wo/lib/python3.5/site-packages/cement/core/foundation.py”, line 852, in setup
self._setup_plugin_handler()
File “/opt/wo/lib/python3.5/site-packages/cement/core/foundation.py”, line 1339, in _setup_plugin_handler
self.plugin.load_plugins(self.plugin.get_enabled_plugins())
File “/opt/wo/lib/python3.5/site-packages/cement/ext/ext_plugin.py”, line 290, in load_plugins
self.load_plugin(plugin_name)
File “/opt/wo/lib/python3.5/site-packages/cement/ext/ext_plugin.py”, line 259, in load_plugin
if self._load_plugin_from_bootstrap(plugin_name, self.bootstrap):
File “/opt/wo/lib/python3.5/site-packages/cement/ext/ext_plugin.py”, line 225, in _load_plugin_from_bootstrap import(full_module, globals(), locals(), [], 0)
File “/opt/wo/lib/python3.5/site-packages/wo/cli/plugins/debug.py”, line 11, in
from wo.cli.plugins.site_functions import logwatch
File “/opt/wo/lib/python3.5/site-packages/wo/cli/plugins/site_functions.py”, line 13, in
from wo.cli.plugins.stack import WOStackController
File “/opt/wo/lib/python3.5/site-packages/wo/cli/plugins/stack.py”, line 7, in
from wo.cli.plugins.stack_migrate import WOStackMigrateController
File “/opt/wo/lib/python3.5/site-packages/wo/cli/plugins/stack_migrate.py”, line 3, in
from wo.cli.plugins.stack_pref import post_pref, pre_pref
File “/opt/wo/lib/python3.5/site-packages/wo/cli/plugins/stack_pref.py”, line 16, in
from wo.core.mysql import WOMysql
File “/opt/wo/lib/python3.5/site-packages/wo/core/mysql.py”, line 5, in
import pymysql
File “/opt/wo/lib/python3.5/site-packages/pymysql/init.py”, line 59, in
from . import connections # noqa: E402
File “/opt/wo/lib/python3.5/site-packages/pymysql/connections.py”, line 206
):
^
SyntaxError: invalid syntax
Certo.
Hoje vi mais relatos de dificuldades na instalação/atualização do WordOps.
Me parece que está tendo problemas de rede e o WordOps não está conseguindo baixar todos os pacotes que precisa tanto para instalação como para atualização.
Destrói ou formata esse servidor e tenta novamente amanhã.
Acredito que tudo vai funcionar corretamente.
Estava vendo agora, pode ser esse problema mesmo, dei um destroy no servidor, instalei novamente e o erro continua.
Vou tentar amanhã novamente.
Obrigado pela ajuda!
Estava vendo o status dos repositórios do Debian e realmente indica ter alguns pacotes off.
Essa pode sim ser a causa do erro.
Acredito que vai normalizar muito em breve.
Sobre o Ubuntu.
Eu utilizo Debian por questão de gosto.
Mas o WordOps vai funcionar perfeitamente no Ubuntu também. Pode utilizar o Ubuntu tranquilamente.
Gabriel, eu também atualizei o WO e agora o mesmo erro me retorna ao dar qualquer comando, e os sites não estão funcionando, também não fiz snapshot, consegue me ajudar?
mandei os dados de acesso para [email protected].
Pra mim aparece como se realmente o wo não tivesse instalado, isso foi ontem a noite, e se eu reinstalar o wo será que vai reconhecer o site já instalado após instalação?
No meu não resolveu? Deu este erro…
root@vmi739610:~# sudo pip install -U pip setuptools
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Requirement already satisfied: pip in /usr/local/lib/python3.5/dist-packages (20.3.4)
Collecting pip
Using cached pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
Using cached pip-20.3.3-py2.py3-none-any.whl (1.5 MB)
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/dist-packages (50.3.2)
Collecting setuptools
Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Downloading setuptools-50.3.1-py3-none-any.whl (785 kB)
|████████████████████████████████| 785 kB 3.9 MB/s
root@vmi739610:~# sudo python3 -m pip install -I wordops
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Collecting wordops
Using cached wordops-3.13.2-py3-none-any.whl (210 kB)
Collecting PyMySQL>=0.10.0
Using cached PyMySQL-0.10.1-py2.py3-none-any.whl (47 kB)
Collecting sh>=1.12.14
Using cached sh-1.14.2-py2.py3-none-any.whl (40 kB)
Collecting distro>=1.4.0
Using cached distro-1.6.0-py2.py3-none-any.whl (19 kB)
Collecting SQLAlchemy>=1.3.18
Using cached SQLAlchemy-1.3.24-cp35-cp35m-manylinux2010_x86_64.whl (1.3 MB)
Collecting psutil>=5.7.2
Using cached psutil-5.8.0-cp35-cp35m-linux_x86_64.whl
Collecting pystache>=0.5.4
Using cached pystache-0.6.0.tar.gz (78 kB)
Installing build dependencies … done
Getting requirements to build wheel … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp4fj86x5a
cwd: /tmp/pip-install-hfc502me/pystache_fac7c2f8c72943c3b612c0369f17f6de
Complete output (17 lines):
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py”, line 280, in
main()
File “/usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py”, line 263, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “/usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py”, line 114, in get_requires_for_build_wheel
return hook(config_settings)
File “/usr/local/lib/python3.5/dist-packages/setuptools/build_meta.py”, line 150, in get_requires_for_build_wheel
config_settings, requirements=[‘wheel’])
File “/usr/local/lib/python3.5/dist-packages/setuptools/build_meta.py”, line 130, in _get_build_requires
self.run_setup()
File “/usr/local/lib/python3.5/dist-packages/setuptools/build_meta.py”, line 145, in run_setup
exec(compile(code, file, ‘exec’), locals())
File “setup.py”, line 183
command = f"pandoc -f markdown-smart --write=rst --output={rst_temp_path} {md_path}"
^
SyntaxError: invalid syntax
WARNING: Discarding https://files.pythonhosted.org/packages/3f/e7/8750ba6c6101d6aa5ceeb20c013adf2c6f3554a12c71d75654b468404bfa/pystache-0.6.0.tar.gz#sha256=93bf92b2149a4c4b58d12142e2c4c6dd5c08d89e4c95afccd4b6efe2ee1d470d (from https://pypi.org/simple/pystache/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp4fj86x5a Check the logs for full command output.
Using cached pystache-0.5.4-py3-none-any.whl
Collecting argcomplete>=1.12.0
Using cached argcomplete-1.12.3-py2.py3-none-any.whl (38 kB)
Collecting requests>=2.24.0
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting colorlog>=4.2.1
Using cached colorlog-5.0.1-py2.py3-none-any.whl (10 kB)
Collecting pynginxconfig>=0.3.4
Using cached pynginxconfig-0.3.4-py3-none-any.whl
Collecting cement==2.10.12
Using cached cement-2.10.12-py3-none-any.whl (113 kB)
Collecting importlib-metadata<5,>=0.23
Using cached importlib_metadata-2.1.2-py2.py3-none-any.whl (10 kB)
Collecting zipp>=0.5
Using cached zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting chardet<5,>=3.0.2
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Installing collected packages: zipp, urllib3, importlib-metadata, idna, chardet, certifi, SQLAlchemy, sh, requests, pystache, pynginxconfig, PyMySQL, psutil, distro, colorlog, cement, argcomplete, wordops
Successfully installed PyMySQL-0.10.1 SQLAlchemy-1.3.24 argcomplete-1.12.3 cement-2.10.12 certifi-2021.10.8 chardet-4.0.0 colorlog-5.0.1 distro-1.6.0 idna-2.10 importlib-metadata-2.1.2 psutil-5.8.0 pynginxconfig-0.3.4 pystache-0.5.4 requests-2.25.1 sh-1.14.2 urllib3-1.26.7 wordops-3.13.2 zipp-1.2.0
root@vmi739610:~#