Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
700 stars 145 forks source link

Cannot import any Python modules #34

Closed rootkit007 closed 10 years ago

rootkit007 commented 10 years ago

CentOS 6.3. It comes with Python 2.6, so I have compiled and installed Python 2.7 from source, and modified Multicorn makefile to point to the newly compiled Python executable. Python is in /usr/local/bin as CentOS doesnt like stock Python install to be modified.

Creation of Multicorn FDW fails as it cant import dependent Python modules. For example sqlalchemyfdw fails with

ERROR: Error in python: ImportError DETAIL: No module named sqlalchemy

I have installed SQLAlchemy, and Python CLI imports it fine. Why cant Multicorn find it?

rootkit007 commented 10 years ago

Never mind. I had to restart PG after installing Python modules.