Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import any Python modules #34

Closed
rootkit007 opened this issue Nov 11, 2013 · 1 comment
Closed

Cannot import any Python modules #34

rootkit007 opened this issue Nov 11, 2013 · 1 comment

Comments

@rootkit007
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant