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

Mongodb plugin - psycopg2 #60

Closed
a13x212 opened this issue Jul 2, 2013 · 5 comments
Closed

Mongodb plugin - psycopg2 #60

a13x212 opened this issue Jul 2, 2013 · 5 comments

Comments

@a13x212
Copy link

a13x212 commented Jul 2, 2013

Can someone clarify with you need psycopg2 to use the mongodb plugin? In order to install psycopg2, I would need to install postgre to get "pg_config".

What source directory should I run "pip install -e .[mongodb]"?

Error when installing psycopg2

Running setup.py egg_info for package psycopg2
Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.
Complete output from command python setup.py egg_info:
running egg_info
@gmr
Copy link
Contributor

gmr commented Jul 2, 2013

You shouldn't what version are you trying to install?

https://github.com/MeetMe/newrelic-plugin-agent/blob/master/setup.py#L33 show's it's pymongo...

@a13x212
Copy link
Author

a13x212 commented Jul 2, 2013

The README.md probably needs to be updated then.

"To use the MongoDB, pgBouncer or PostgreSQL plugin you must install the psycopg2 library."

@nkcr
Copy link

nkcr commented Jul 3, 2013

And what is that 'source directory' where we should run the command "pip install -e .[postgresql]" ?

@jakef
Copy link

jakef commented Jul 12, 2013

I having the same issue with "pip install -e .[postgresql]".
The error im getting is "--editable=.[postgresql] should be formatted with svn+URL, git+URL, hg+URL or bzr+URL".

I tried running the command from multiple different directories with the same result. The psycopg2 library is installed and running command as root.

My system:
Debian Wheezy
Python 2.7.3
pip 1.1

I went through the installation steps on my local OS X 10.8.4 environment, and it installed correctly.

@gmr
Copy link
Contributor

gmr commented Jul 18, 2013

@nkcr download and extract the tarball for the tagged version.

@jakef your pip is pretty out of date. Do a "pip --upgrade pip"

@gmr gmr closed this as completed Jul 18, 2013
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

4 participants