From: | Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com> |
---|---|
To: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> |
Cc: | Azad Salahlı <azad(dot)salahli(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: [pgAdmin] Fix incorrect import in setup.py |
Date: | 2020-09-28 12:26:59 |
Message-ID: | CANxoLDcYv6xonh73Y0wLrb=w+hCW7dR2bVXJuvR6zhZGSQmeHA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Thanks, patch applied.
On Mon, Sep 28, 2020 at 4:48 PM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
> Hi Azad,
>
> The patch looks good to me.
>
> On Thu, Sep 24, 2020 at 6:33 PM Azad Salahlı <azad(dot)salahli(at)gmail(dot)com>
> wrote:
>
>> Hi,
>>
>> First time posting here. I've attached a fix for an incorrect import
>> in `setup.py`. Trying to import from `pgadmin` before adding the root
>> directory to the system path results in import error, when the script
>> is invoked in any other way than running it directly. For example
>>
>> $ /path/to/venv/bin/pip install pgadmin4
>> $ /path/to/venv/bin/python -m pgadmin4.setup
>> Traceback (most recent call last):
>> ...
>> File "/path/to/venv/lib/python3.6/site-packages/pgadmin4/setup.py",
>> line 18, in <module>
>> from pgadmin.model import db, User, Version, ServerGroup, Server,
>> \
>> ModuleNotFoundError: No module named 'pgadmin'
>>
>> Please let me know what you think. Happy to address any feedback.
>>
>> Regards,
>> Azad Salahlı
>>
>
>
> --
> Thanks,
> Aditya Toshniwal
> pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
> <http://edbpostgres.com>
> "Don't Complain about Heat, Plant a TREE"
>
--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Sr. Software Architect*
*EDB Postgres <http://edbpostgres.com>*
*Mobile: +91 976-788-8246*
From | Date | Subject | |
---|---|---|---|
Next Message | Akshay Joshi | 2020-09-28 12:27:18 | Re: [pgAdmin][RM4806] Add info to empty explain tab |
Previous Message | Akshay Joshi | 2020-09-28 12:26:45 | Re: [pgAdmin4][Patch] - RM 1402 - Macro support like pgAdmin3 |