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

Error creating FDW #2

Open
decibel opened this issue Jan 24, 2016 · 1 comment
Open

Error creating FDW #2

decibel opened this issue Jan 24, 2016 · 1 comment

Comments

@decibel
Copy link

decibel commented Jan 24, 2016

When trying to install from current source:

psql (9.5.0)
Type "help" for help.

~@decina.local/96081# CREATE EXTENSION multicorn;
CREATE EXTENSION
~@decina.local/96081# CREATE SERVER fdw_fdw 
FOREIGN DATA WRAPPER multicorn
options (
  wrapper 'fdwfdw.FDWFDW'
);
ERROR:  Error in python: ImportError
DETAIL:  No module named request

This is after installing multicorn via pgxn, which gave me version 1.3.1. I'm using Python 2.7.10 on OS X.

@daamien
Copy link
Owner

daamien commented Jan 25, 2016

Yes that's because I just switched to python 3 and the current version is not compatible with python 2 anymore. Sorry about that.

You have 3 possibilites:

1- Install python3 on your machine

2- check out the python2 branch of this repo and install it
https://github.com/daamien/fdw_fdw/tree/python2
https://github.com/daamien/fdw_fdw/archive/0.1.0.zip

3- use the docker image

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

2 participants