On 07/20/2015 06:21 PM, Tomas Vondra wrote:
>
>
> On 07/20/2015 10:50 AM, Ronan Dunklau wrote:
>>
>> It seems that not every server is configured the same with regards to
>> python
>> installation:
>>
>>
http://pgxn-tester.org/distributions/multicorn/1.2.3
>>
>> On hal-9000:
>> Found Python 2.6, but 2.7 is required.
Fixed. clearly I forgot to set PATH properly when initializing the
virtualenv, so it was using the default Python version.
>>
>> On hactar:
>> ImportError: No module named setuptools
This is a bit strange, though. The virtualenv on hactar is definitely
using the right python version, but I've found failures like this:
http://pgxn-tester.org/results/d7e0d1bc-75fa-4732-9da4-229409d2a16b
INFO: best version: multicorn 1.0.0
INFO: saving /var/pgxn-tester/hactar/tmp/tmpEcOwQY/multicorn-1.0.0.zip
INFO: unpacking: /var/pgxn-tester/hactar/tmp/tmpEcOwQY/multicorn-1.0.0.zip
INFO: building extension
Python version is 2.6
./preflight-check.sh
cp sql/multicorn.sql sql/multicorn--1.0.0.sql
...
INFO: installing extension
Python version is 2.6
./preflight-check.sh
...
python2.6 ./
setup--1.0.0.py install
Traceback (most recent call last):
File "./
setup--1.0.0.py", line 2, in
from setuptools import setup, find_packages, Extension
ImportError: No module named setuptools
gmake: *** [python_code] Error 1
Clearly it still refers to Python 2.6 for some reason, so it does not
find the setuptools installed in the virtualenv. I'm not sure where the
$(PYTHON) variable in Makefile comes from, but I assume it comes from
the PostgreSQL build - I'll try to rebuild it with the correct PATH (so
that it finds Python 2.7). Hope that'll fix it.
regards
Tomas