How to install Infogami
So you want to run Infogami on your computer? Here's how (more documentation to come).
A computer with any POSIX-compatible OS (unix, linux, BSD, etc.). Infogami has been successfully run on the following systems: todo.
Install web.py . You may also want to read the documentation at webpy.org, as it's quite helpful. This also assumes you have already installed Python.
You don't need to use anything in the 'Production' section of web.py's installation guide if you only want to run Infogami on your local machine. If you want to use it for larger projects you may have to do some further reading.
Install a database system. Infogami is currently compatible with postgres, sqlite, and mysql, so choose the one that works best for you. You may also need to install the python package for your database (python-psycopg, python-sqlite2, or mysql-python).
Set up your database tables. Table definitions can be found in the infogami/tdb/schema.sql folder. Once your database program has been installed, create a database and set up the tables.
createdb infogami psql infogami < infogami/tdb/schema.sql
To be written.
Create a 'run.py'. This is the file you will run using web.py to launch Infogami. Create a new file in your /site/infogami folder and type
infogami.config.db_parameters = dict(dbn='postgres', db="infogami", user='yourname', pw='') #use your settings
infogami.config.site = 'sitename.local'
if _ name _ == "_ main _":
You can also find sample_run.py in the infogami codebase.
Install infogami. Once you have your run.py set up, just type '
python run.py install'. Depending on your database permissions and configurations, you may need to do this as a user who has access to the database (e.g. '
Run infogami. Type 'python run.py'. Just like running anything with web.py, you should see output that looks like 'http://localhost:8080/'. Visit that site in your web browser to see your infogami installation!
I get an error message that says "DatabaseException file is encrypted or is not a database."
sqlite databases created with version 2 are not compatible with sqlite version 3, and vice versa. You have probably created your infogami database with one version of sqlite but are trying to access it using a different version.
Make sure you have the same sqlite version for both the binary you are using to create the database and the python sqlite package. If you are using 'sqlite3' to create your database, make sure you have the python-sqlite3 library installed. Otherwise, be sure to create your infogami database using 'sqlite' instead of 'sqlite3'.
I get an error message that says "psycopg.OperationalError: FATAL: Ident authentication failed for user "foo""
The user you are lauching infogami as may not have permission to access the specified database. Check to make sure your run.py file lists the correct database. Also check that the user you are launching infogami as has access to the database. Check your pg_hba.conf file and make sure you're familiar with postgres client authentication. Finally, you may just be running infogami as the wrong user. Try doing 'su foo' (or 'su postgres', etc.) to change to a user with access to the database before you run run.py.