opendataphilly / Open-Data-Catalog

Open Data Catalog is an open data catalog based on Django, Python and PostgreSQL. It was originally developed for OpenDataPhilly.org, a portal that provides access to open data sets, applications, and APIs related to the Philadelphia region. The Open Data Catalog is a generalized version of the original source code with a simple skin. It is intended to display information and links to publicly available data in an easily searchable format. The code also includes options for data owners to submit data for consideration and for registered public users to nominate a type of data they would like to see openly available to the public.
http://www.opendataphilly.org/
MIT License
244 stars 90 forks source link

createlang plpython fails #20

Closed natea closed 11 years ago

natea commented 11 years ago

Can Open-Data-Catalog be run on MacOSX? I'm trying to use it with Postgres.app, and getting this error:

$ createlang plpython
createlang: language installation failed: ERROR:  could not open extension control file "/Applications/Postgres.app/Contents/MacOS/share/extension/plpython.control": No such file or directory
jwalgran commented 11 years ago

It appears that the source of your problem is with OS X, but with the Postgress.app pre-built application.

OpenDataCatalog makes use of Postgres functions written in plpython. Here is the section from the plpython documentation that explains why it is probably not working in Postgress.app

Note: Users of source packages must specially enable the build of PL/Python
during the installation process. (Refer to the installation instructions for more
information.) Users of binary packages might find PL/Python in a separate subpackage.

It might be worth talking to the maintainers of Postgres.app to see if they are planning to add support for plpython.

bcavagnolo commented 11 years ago

BTW, I got this same error on Ubuntu 12.04. But it just turned out that postgresql-plpython-9.1 was not installed. Maybe just add this to the dependency list?