roramirez / qpanel

Dashboard for Queues in Asterisk and FreeSWITCH. app_queue panel for Asterisk and mod_callcenter in FreeSWITCH. Get news -> http://eepurl.com/dxKt7X
https://boxtub.com/qpanel/
MIT License
175 stars 112 forks source link

instalación con errores #227

Open dariohimo opened 4 years ago

dariohimo commented 4 years ago

Hola, estoy tratando de instalar esta versión en un entorno virtual de python en centos 7 de issabelpbx. pero salen estos erros. he leido todo lo de acá. No he podido resorver, por favor me colaboras. gracias. dejo los errores que salen. gracias. (env) [root@issabel qpanel]# pip install -r requirements.txt DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting Flask~=0.12.4 Using cached Flask-0.12.4-py2.py3-none-any.whl (81 kB) Processing /root/.cache/pip/wheels/dc/7a/67/9627e7437139ed84192412c0f6466cc87e4f3e69aceb3aa59d/Flask_Babel-1.0.0-py2-none-any.whl Processing /root/.cache/pip/wheels/72/fb/8c/14220bd0fa946a657173c0775d81c23b371ed3ba7dc7b0964e/Flask_Login-0.4.1-py2.py3-none-any.whl Processing /root/.cache/pip/wheels/2f/47/6d/086091a750fe74ee97fe8cfba74ed96ab556970d192e73b8bf/SQLAlchemy-0.9.10-py2-none-any.whl Collecting Click==6.6 Using cached click-6.6-py2.py3-none-any.whl (71 kB) Processing /root/.cache/pip/wheels/c7/97/47/4ccdde6aada510d554cfa605ba418bf6c70faec14f66231040/tailer-0.4.1-py2-none-any.whl Collecting py-Asterisk Cloning git://github.com/jeansch/py-asterisk (to revision 904c91c) to /tmp/pip-install-ovT230/py-Asterisk Running command git clone -q git://github.com/jeansch/py-asterisk /tmp/pip-install-ovT230/py-Asterisk WARNING: Did not find branch or tag '904c91c', assuming revision or ref. Running command git checkout -q 904c91c Collecting requests>=2.20.0 Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB) Processing /root/.cache/pip/wheels/5f/11/0c/aad680baf5ef4fbcbab992c9f03e1130357e0c173a4fdabfff/future-0.18.2-py2-none-any.whl Collecting rq-scheduler<0.7.0,>=0.6.1 Using cached rq_scheduler-0.6.1-py2.py3-none-any.whl (15 kB) Collecting python-ESL==1.4.18 Using cached python-ESL-1.4.18.tar.gz (40 kB) Collecting Flask-Themes Cloning git://github.com/maxcountryman/flask-themes (to revision 9eac2dc) to /tmp/pip-install-ovT230/Flask-Themes Running command git clone -q git://github.com/maxcountryman/flask-themes /tmp/pip-install-ovT230/Flask-Themes WARNING: Did not find branch or tag '9eac2dc', assuming revision or ref. Running command git checkout -q 9eac2dc Collecting gevent==1.1.2 Using cached gevent-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl (1.3 MB) Collecting Jinja2>=2.4 Using cached Jinja2-2.11.1-py2.py3-none-any.whl (126 kB) Collecting itsdangerous>=0.21 Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB) Collecting Werkzeug>=0.7 Using cached Werkzeug-1.0.0-py2.py3-none-any.whl (298 kB) Collecting Babel>=2.3 Using cached Babel-2.8.0-py2.py3-none-any.whl (8.6 MB) Collecting pytz Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB) Collecting chardet<3.1.0,>=3.0.2 Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting idna<2.9,>=2.5 Using cached idna-2.8-py2.py3-none-any.whl (58 kB) Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB) Collecting certifi>=2017.4.17 Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB) Collecting croniter>=0.3.9 Using cached croniter-0.3.31-py2.py3-none-any.whl (16 kB) Collecting rq>=0.3.5 Using cached rq-1.2.2-py2.py3-none-any.whl (58 kB) Collecting six Using cached six-1.14.0-py2.py3-none-any.whl (10 kB) Collecting greenlet>=0.4.9 Using cached greenlet-0.4.15-cp27-cp27mu-manylinux1_x86_64.whl (39 kB) Collecting MarkupSafe>=0.23 Using cached MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl (24 kB) Collecting python-dateutil Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) Collecting redis>=3.0.0 Using cached redis-3.4.1-py2.py3-none-any.whl (71 kB) Building wheels for collected packages: py-Asterisk, python-ESL, Flask-Themes Building wheel for py-Asterisk (setup.py) ... done Created wheel for py-Asterisk: filename=py_Asterisk-0.5.8-py2-none-any.whl size=17570 sha256=ad250dbbff87a9c4e0e03f1aeed5647a2eca990e9159cffee9c4d1d32dcb511b Stored in directory: /tmp/pip-ephem-wheel-cache-6bXO3D/wheels/4f/ff/4c/c18b645a2e56a35e31355e02a58f4d18b0a458a9c58543301f Building wheel for python-ESL (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/src/qpanel/env/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ovT230/python-ESL/setup.py'"'"'; file='"'"'/tmp/pip-install-ovT230/python-ESL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-AWNGWy cwd: /tmp/pip-install-ovT230/python-ESL/ Complete output (12 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying ESL.py -> build/lib.linux-x86_64-2.7 running build_ext building '_ESL' extension swigging ESL.i to ESL_wrap.cpp swig -python -classic -c++ -DMULTIPLICITY -threads -I. -o ESL_wrap.cpp ESL.i unable to execute swig: No such file or directory error: command 'swig' failed with exit status 1

ERROR: Failed building wheel for python-ESL Running setup.py clean for python-ESL Building wheel for Flask-Themes (setup.py) ... done Created wheel for Flask-Themes: filename=Flask_Themes-0.1.4-py2-none-any.whl size=7244 sha256=c4b5f97c30a9c28ed38fa285244b61a99096eeede48b14ea4fd4fe50bd668535 Stored in directory: /tmp/pip-ephem-wheel-cache-6bXO3D/wheels/3a/58/0a/84a3a48d9814a0df0b1fb1d296cc349e555a3d652721b5660a Successfully built py-Asterisk Flask-Themes Failed to build python-ESL Installing collected packages: MarkupSafe, Jinja2, Click, itsdangerous, Werkzeug, Flask, pytz, Babel, Flask-Babel, Flask-Login, SQLAlchemy, Tailer, py-Asterisk, chardet, idna, urllib3, certifi, requests, future, six, python-dateutil, croniter, redis, rq, rq-scheduler, python-ESL, Flask-Themes, greenlet, gevent Running setup.py install for python-ESL ... error ERROR: Command errored out with exit status 1: command: /usr/src/qpanel/env/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ovT230/python-ESL/setup.py'"'"'; file='"'"'/tmp/pip-install-ovT230/python-ESL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-cLA6_b/install-record.txt --single-version-externally-managed --compile --install-headers /usr/src/qpanel/env/include/site/python2.7/python-ESL cwd: /tmp/pip-install-ovT230/python-ESL/ Complete output (12 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying ESL.py -> build/lib.linux-x86_64-2.7 running build_ext building '_ESL' extension swigging ESL.i to ESL_wrap.cpp swig -python -classic -c++ -DMULTIPLICITY -threads -I. -o ESL_wrap.cpp ESL.i unable to execute swig: No such file or directory error: command 'swig' failed with exit status 1

ERROR: Command errored out with exit status 1: /usr/src/qpanel/env/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ovT230/python-ESL/setup.py'"'"'; file='"'"'/tmp/pip-install-ovT230/python-ESL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-cLA6_b/install-record.txt --single-version-externally-managed --compile --install-headers /usr/src/qpanel/env/include/site/python2.7/python-ESL Check the logs for full command output.

Mystic8b commented 4 years ago

Oh, at least formatted, dear ...

Answer from another issue helped me:

At now you can does the follow: a) comment the line in requirements/base.txt for python-ESL==1.4.18 if will not using FreeSWITCH b) Install python-dev and swig in your system

dariohimo commented 4 years ago

swig instal with yum o pip?

Mystic8b commented 4 years ago

swig instal with yum o pip?

Yep, install python-devil and swig

dariohimo commented 4 years ago

funcionaria sin tener entorno virtual python, O mejor en el entorno virtualizado de python. gracias.

dariohimo commented 4 years ago

hola, ahora sale esto : (env) [root@issabel qpanel]# python app.py Traceback (most recent call last): File "app.py", line 1, in from qpanel import app File "/usr/src/qpanel/qpanel/app.py", line 8, in from flask_themes import setup_themes, render_theme_template File "/usr/src/qpanel/env/lib/python2.7/site-packages/flask_themes/init.py", line 27, in from werkzeug import cached_property ImportError: cannot import name cached_property (env) [root@issabel qpanel]#

Mystic8b commented 4 years ago

I don't know, i have no problem, but i have freepbx15

[root@freepbx qpanel]#    python app.py
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
dariohimo commented 4 years ago

I don't know, i have no problem, but i have freepbx15

[root@freepbx qpanel]#    python app.py
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

mire estos errores. File "/usr/src/qpanel/qpanel/app.py", line 8, in from flask_themes import setup_themes, render_theme_template File "/usr/src/qpanel/env/lib/python2.7/site-packages/flask_themes/init.py", line 27, in from werkzeug import cached_property ImportError: cannot import name cached_prop

dariohimo commented 4 years ago

I don't know, i have no problem, but i have freepbx15

[root@freepbx qpanel]#    python app.py
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

what is OS? Centos 7 o debian.?

Mystic8b commented 4 years ago

what is OS? Centos 7 o debian.?

Centos ofc, freepbx distro But I still could not start it as a service, I spent a lot of time and still get:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

There is no normal documentation step by step, to hell, I refused to use.

dariohimo commented 4 years ago

I don't know, i have no problem, but i have freepbx15

[root@freepbx qpanel]#    python app.py
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

what is OS? Centos 7 o debian.?

your version the python 2 or 3?

Mystic8b commented 4 years ago

your version the python 2 or 3?

2.7

dariohimo commented 4 years ago

your version the python 2 or 3?

2.7

equal centos 7 python 2 on Issabelpbx

dariohimo commented 4 years ago

hola, ahora sale esto : (env) [root@issabel qpanel]# python app.py Traceback (most recent call last): File "app.py", line 1, in from qpanel import app File "/usr/src/qpanel/qpanel/app.py", line 8, in from flask_themes import setup_themes, render_theme_template File "/usr/src/qpanel/env/lib/python2.7/site-packages/flask_themes/init.py", line 27, in from werkzeug import cached_property ImportError: cannot import name cached_property (env) [root@issabel qpanel]#

con este error que puedo hacer volver a reinstalar que me recomiendan gracias. aclaro que es un centos 7 y funciona con issabelpbx. mis conocimientos de pip son nulos gracias.

Mystic8b commented 4 years ago

Maybe this will help you, my steps step by step to raise the service on freepbx15: https://github.com/roramirez/qpanel/issues/226#issuecomment-586705442 Maybe issabel uses nginx, then the link above my post in that thread will help you.

dariohimo commented 4 years ago

Maybe this will help you, my steps step by step to raise the service on freepbx15: #226 (comment) Maybe issabel uses nginx, then the link above my post in that thread will help you.

pip sale una alerta que no soporta python 2

Mystic8b commented 4 years ago

pip sale una alerta que no soporta python 2

Strange, I have Python 2.7.5 and everything is ok. I did not even have to use a virtual environment, although in the future, judging by the develop branch, it will be needed.

dariohimo commented 4 years ago

hola, sigo sigo los pasos que hay en de instalación anexo los errores no crees que es algo de la ultima versión que no mi instala en mi sistemas. El funciona todo lo que comentas es que funciona por eso anexo los erros para saber hacia donde ir o que debo hacer para solucionar. No que me digan ami me funciona. Por eso escribo y mejo los errores. No te entiendo cuando contesta a mi me funciona.

ahi están los errores.

dariohimo commented 4 years ago

otra máquina con centos 7 :

npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/ npm WARN lifecycle QPanel@0.16.1~postinstall: cannot run in wd %s %s (wd=%s) QPanel@0.16.1 bower install /var/www/html/qpanel QPanel@0.16.1 /var/www/html/qpanel └── bower@1.8.8 [root@omnileads qpanel]# python app.py Traceback (most recent call last): File "app.py", line 1, in from qpanel import app File "/var/www/html/qpanel/qpanel/app.py", line 8, in from flask_themes import setup_themes, render_theme_template

roramirez commented 4 years ago

You should try in a virtual environment. This can help to fix when have a troubles with internal dependencies.

You'll can do

    cd qpanel
    virtualenv env
    source env/bin/activate
    pip install -r requirements.txt
    python app.py
dariohimo commented 4 years ago

este entorno esta en su chat lo utilice pero veo que el pip recalca que es python 2 . Y no he podido realizar la instalación en dos maquinas con centos 7 una issabel y otra con asterisk