Re: Failed to configure the Python Environment

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Yifan Wang <yifwang97(at)gmail(dot)com>
Cc: pgadmin-support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Failed to configure the Python Environment
Date: 2020-11-23 06:21:28
Message-ID: CAG7mmozOe8tRt1FLgPiTE-RCGz4JfR=u1jBVw2s4-=0p6-g_WQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgadmin-support

[Oops wrong mailing list.. :) ]

On Mon, Nov 23, 2020 at 11:50 AM Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
wrote:

> Please reply (by keeping the mailing list in CC) all as:
> - It could help others as well
> - Somebody else can also help you in case a person is not available for
> some reason for sometime.
>
> On Fri, Nov 20, 2020 at 7:56 AM Yifan Wang <yifwang97(at)gmail(dot)com> wrote:
>
>> Hi,
>> Thx man!! Oh my god, i forgot to run yarn install(familiar with npm
>> before and not yarn). After run yarn install and yarn run:dev, the app runs
>> successfully!!!
>>
> Good to know.
>
>>
>> BTW, id like to make some changes based on pagadmin for my purpose.
>>
> Patches are welcome at pgadmin-hackers(at)postgresql(dot)org for any
> enhancements & bug fixes.
>
> Please keep the community aware of the feature & bug fixes by sending the
> email to pgadmin-hackers mailing list, and creating/updating the issue(s)
> at the https://redmine.postgresql.org/projects/pgadmin4/issues for
> everybody's benefit.
>
>> The README in the dir only shows some instructions for building and
>> configuring env. Should I concern more? like config or something else.
>>
> I think - it covered the basics right.
>
> Please feel free to ask any specific questions.
>
> Happy Coding.
>
> -- Thanks, Ashesh
>
>>
>> Best regards,
>> Yifan
>>
>> On Nov 19, 2020, at 19:00, Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
>> wrote:
>>
>> On Thu, Nov 19, 2020 at 4:16 PM Yifan Wang <yifwang97(at)gmail(dot)com> wrote:
>>
>>> Hi!
>>> I want to install the pgadmin from the source code on my macOS system
>>> for further development. However, when i execute the command “ (pgadmin4) $
>>> python $PGADMIN4_SRC/web/pgAdmin4.py”, it pops up with
>>>
>>> 2020-11-19 18:21:55,330: DEBUG flask.app: Authentication Source:
>>> internal
>>> 2020-11-19 18:21:55,330: DEBUG flask.app: Not running under the
>>> desktop runtime, port: 5050
>>> yarn run v1.22.10
>>> $ yarn run linter && yarn run webpacker
>>> $ yarn eslint --no-eslintrc -c .eslintrc.js --ext .js .
>>> error Command "eslint" not found.
>>> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
>>> this command.
>>> error Command failed with exit code 1.
>>> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
>>> this command.
>>> error Command failed with exit code 1.
>>> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
>>> this command.
>>> 2020-11-19 18:21:56,065: ERROR flask.app: Unable to generate
>>> javascript.
>>> To run the app ensure that yarn install command runs successfully
>>> Traceback (most recent call last):
>>> File "/Users/wangyifan/.Trash/pgadmin4/web/pgAdmin4.py", line 217, in
>>> <module>
>>> main()
>>> File "/Users/wangyifan/.Trash/pgadmin4/web/pgAdmin4.py", line 167, in
>>> main
>>> raise RuntimeError("No generated javascript, aborting")
>>> RuntimeError: No generated javascript, aborting
>>>
>>> Im surely install eslint with two versions: yarn and npm and the dir of
>>> eslint is /Users/XXX/.config/yarn/global/node_modules/.bin/eslint. I have
>>> tried almost all methods but still can’t solve this problem. Could someone
>>> have the idea?
>>>
>>> Have you run 'yarn run bundle' or 'yarn run bundle:dev' in the web
>> directory?
>>
>> -- Ashesh
>>
>>> PGADMIN: 4.28
>>> PYTHON: 3.9
>>>
>>> Best regards,
>>> Yifan
>>>
>>>
>>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-11-23 06:28:22 pgAdmin 4 commit: Explicitly set the mime-types so that a corrupted win
Previous Message Ashesh Vashi 2020-11-23 06:20:28 Re: Failed to configure the Python Environment

Browse pgadmin-support by date

  From Date Subject
Next Message George 2020-11-23 09:03:36 Re: ValueError: unsupported format character 'D'
Previous Message Ashesh Vashi 2020-11-23 06:20:28 Re: Failed to configure the Python Environment