Re: Last few steps for pgadmin4 on RHEL 6 - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Last few steps for pgadmin4 on RHEL 6
Date
Msg-id CA+OCxoyVUui7D9s5Br8q214Z+iZY3ObKE=W36dDUT09nyWWASg@mail.gmail.com
Whole thread Raw
In response to Re: Last few steps for pgadmin4 on RHEL 6  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: Last few steps for pgadmin4 on RHEL 6  (Devrim Gündüz <devrim@gunduz.org>)
List pgadmin-hackers
On Fri, Mar 24, 2017 at 11:57 AM, Devrim Gündüz <devrim@gunduz.org> wrote:
>
> Hi,
>
> On Mon, 2017-03-20 at 12:10 +0000, Dave Page wrote:
>> Hey, I know "someone"! Let's call him Devrim :-)
>
> :-)
>
>> So, I think the easy way to do this is just install whatever is
>> available from the dependency list, regardless of version. Then, add
>> the packages you've built for anything that doesn't exist at all.
>> Then, just try running pgAdmin, and see what happens. It may be that
>> it just works, or it may be that we can fix any issues in code.
>
> It first failed with passlib:
>
>     self._from_dict(kwds)
>   File "/usr/lib/python2.6/site-packages/passlib/context.py", line 473, in _from_dict
>     raise KeyError("known scheme in deprecated list: %r" % (scheme,))
> KeyError: "known scheme in deprecated list: 'auto'"
>
> This went away after upgrading to my version. Following that, pgadmin4 failed with:
>
>   File "/usr/lib/python2.6/site-packages/pgadmin4-web/pgadmin/utils/driver/psycopg2/__init__.py", line 28, in
<module>
>     from pgadmin.utils.crypto import decrypt
>   File "/usr/lib/python2.6/site-packages/pgadmin4-web/pgadmin/utils/crypto.py", line 15, in <module>
>     from Crypto import Random
> ImportError: cannot import name Random
>
> ...and error goes away when I update python-crypto package.

OK - please try dropping the updated version of that package into the
web/ directory, and removing it from the system - so you have:

Crypto/
  ...
web/
  pgadmin/
    about/
    browser/
    ...

Does that work?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgadmin-hackers by date:

Previous
From: Devrim Gündüz
Date:
Subject: Re: Last few steps for pgadmin4 on RHEL 6
Next
From: Ashesh Vashi
Date:
Subject: Re: [patch] Raise InternalServerError whileretrieving table DDL