Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXsPr-0002pR-Cz for pgsql-admin@arkaria.postgresql.org; Fri, 14 Dec 2018 18:42:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gXsPp-0005eE-UH for pgsql-admin@arkaria.postgresql.org; Fri, 14 Dec 2018 18:42:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXsPp-0005e7-Kg for pgsql-admin@lists.postgresql.org; Fri, 14 Dec 2018 18:42:25 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXsPn-00038o-N2 for pgsql-admin@lists.postgresql.org; Fri, 14 Dec 2018 18:42:25 +0000 Received: by mail-wr1-x431.google.com with SMTP id t6so6218064wrr.12 for ; Fri, 14 Dec 2018 10:42:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=S1ayUTC/4Im8Iyo2jHE+XcScUx58qBmg98ttNX/e3oU=; b=IOGFrhqvKQqW4ib6i0uyh934PaGL3qSFkYzShi4qnVhImW9Anf0yncoTt8ivzHfwvA 0X/yK7qyLgiw8AbNnV8fQjNDjGIDTpA+tk3yC0IlF4QhZJKZFAU6BgodLzbhm/LLfX27 9WMpsBLon8lZkH4o9DO0AdD9iDv3EyrhR8rMtADADTONcxV/KYzKDlRPTrnbEjN/IFQf xZNS5hYldXZGsXzDkyPGapW4TflC67lI1AJ5gbLm2Vc8Kj7yzv0HARd1fyZNP4L8dpez JSQmVrcWHtnFMhzktAdeNi/48PfCGl4DczV5EXy6Yi9x9YqDM3ea1QdZBNuJgt8agCnq 8VqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=S1ayUTC/4Im8Iyo2jHE+XcScUx58qBmg98ttNX/e3oU=; b=I5sBS3n79+yzbXKh98Cf6R99tQF8XYHr53HneKA3cmwiRExZxowLfiq0rD0g2+xJ8V IUg1VdGu0J+Z751IvHcy3f1rEpim8lNvLzQB6fdStf36Z5dK4TcSVAyNegMbS3XJ++jx D898YaWuJZ931IAIMcgT0yo17+/SiKoHpI0cZlAYvMdSaZZTgN6n4v4gwkRURXNqmgAm HYOqU8DWk2mJ6APWZ1hUFcNIWuH3mvPXK7CHd/Mk4ARIIpyEvRIM2arOTLAZHF4xH3Xp r9JwWbvMc3a4xzeHC1t53kgrHv/Y80dRiQ9kxY+KE6oY/CYYb4tj7ryR8pQtSapsE9e+ k1aw== X-Gm-Message-State: AA+aEWZgICoIQHJOIMgLVwy5BxgOFL9etMri4s7wdEkCkMY6P3hzLLf4 8lrxo04yUlnL4rp2xyGAsz+QcksH X-Google-Smtp-Source: AFSGD/U7QGorCy0cLgcipoAcrEtZdaj+2osD0SgnGkqtiAM5bfc8f6rvWruovOMQ4ZH7Nl9TB2G7Gw== X-Received: by 2002:a5d:4a0c:: with SMTP id m12mr3484688wrq.38.1544812941224; Fri, 14 Dec 2018 10:42:21 -0800 (PST) Received: from [172.30.1.193] ([5.90.50.130]) by smtp.googlemail.com with ESMTPSA id p4sm3631202wrs.74.2018.12.14.10.42.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 10:42:20 -0800 (PST) To: pgsql-admin@lists.postgresql.org From: Alessandro Manzoni Subject: Where is util.py Message-ID: Date: Fri, 14 Dec 2018 19:40:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit Content-Language: it-IT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > >     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 > >     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?