pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alessandro Manzoni <manzoni.alessandro4@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Where is util.py
Date: Fri, 14 Dec 2018 19:40:54 +0100
Message-ID: <ef7c559e-b867-99e6-e440-78a136b292c9@gmail.com> (raw)

I've just installed PostgresSQL 9.6.11 to test an application. I would 
like to run postgres as a service under windows, so I executed 
create_service.bat. The new service is listed in windows services but it 
doesnt start. The reason is a python error:

> Traceback (most recent call last):
>   File "D:\Programmi\PostgreSQL\9.6\pg96\run-pgctl.py", line 15, in 
> <module>
>     import util
> ImportError: No module named util

I seeked for util.py but I couldn't find it. I tried to comment-out 
'import util' from run-pgctl.py module, following a suggestion found in 
stack overflow, but wasn't effective as the error changed to:

> Traceback (most recent call last):
>   File "D:\Programmi\PostgreSQL\9.6\pg96\run-pgctl.py", line 17, in 
> <module>
>     util.set_lang_path()
> NameError: name 'util' is not defined
>
so I restored the 'import util' statement.

How can I solve this problem?
Where should I find util.py?
How can I run postgres service avoiding python?






Message-ID: <ef7c559e-b867-99e6-e440-78a136b292c9@gmail.com>
Permalink:  ../ef7c559e-b867-99e6-e440-78a136b292c9@gmail.com/
Also on:    postgresql.org/message-id/ef7c559e-b867-99e6-e440-78a136b292c9@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: manzoni.alessandro4@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Where is util.py
  In-Reply-To: <ef7c559e-b867-99e6-e440-78a136b292c9@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox