Closed Krysztophe closed 6 years ago
This is due to unsupported SQLAlchemy version.
The documentation states:
You’ll need the following dependencies: [...] sqlalchemy >= 0.8.0
while Centos 6 provides
python-sqlalchemy noarch 0.5.5-3.el6_2
AFAICS the package doesn't have the version dependancy: https://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob;f=rpm/redhat/9.6/powa/EL-6/powa.spec;h=22be7a5c8af2ac554f5e4347b3a3e667091f8e46;hb=HEAD#l46
I'm not that familiar with centos/RHEL, but unless some repo provide more recent version of SQLAlchemy, powa-web isn't going to be easily installed on Centos 6.
Unless of course we add compatiblity for SQLAlchemy 0.5. Any chance you know if this is doable? Otherwise I'll take a look at it.
Hello,
here is a little workaround for RHEL6.4
the sqlalchemy 0.8 can be found in the epel repo http://mirrors.ircam.fr/pub/fedora/epel/6/x86_64/python-sqlalchemy0.8-0.8.2-4.el6.x86_64.rpm
On RHEL 6.4 after having been installed it's required to do
ln -s /usr/lib64/python2.6/site-packages/SQLAlchemy-0.8.2-py2.6-linux-x86_64.egg/sqlalchemy /usr/lib64/python2.6/site-packages/
Otherwise you get the following trace
Traceback (most recent call last):
File "./powa-web", line 2, in <module>
from powa import make_app
File "/root/powa-web-3.1.3/powa/__init__.py", line 15, in <module>
from powa.framework import AuthHandler
File "/root/powa-web-3.1.3/powa/framework.py", line 7, in <module>
from sqlalchemy import create_engine, text
ImportError: No module named sqlalchemy
After that you can start powa-web :)
Hope this helps. Regards,
Thanks a lot @daftaupe !
I'll add this to the documentation.
Sorry I completely forgot about this. I just pushed https://github.com/powa-team/powa/commit/b0791e42ff3eed6783585146b5e487bc52702177.
Thanks again!
On CentOS6.8 powa-web returns an error at launch:
It was installed on a CentOS 6.8 from PGDG repos as described in the quickstart (see below).
I cannot reproduce on CentOS 7.3 ; it works.
Idem avec sudo