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

Tutorial feedback #190

Open
awan1 opened this issue Feb 22, 2017 · 1 comment
Open

Tutorial feedback #190

awan1 opened this issue Feb 22, 2017 · 1 comment

Comments

@awan1
Copy link

awan1 commented Feb 22, 2017

I just went through the tutorial and got the demo working. Some feedback:

  • Getting started with a postgres server was by far the most difficult and annoying part. If you have a guide you like to use I think a link would be helpful; if not here's what I had to do:
    • Download and install PostgreSQL
    • Add the binaries my PATH, manually - export PATH=/Library/PostgreSQL/9.6/bin:$PATH
    • Create a database cluster folder somewhere - initdb postgres
    • Start the server: pg_ctl -D postgres start
  • Then the Python scripts didn't immediately work:
    • Had to pip install psycopg2, which admittedly is fine but I would've been comforted to see that step called out in the instructions
    • There were difficult-to-debug problems with psycopg2 and libssl.dylib or something, and it took me a while to find that I should do export DYLD_FALLBACK_LIBRARY_PATH=/Library/PostgreSQL/9.6/lib.
  • The image in step 1 for the MacroBase Exploratory GUI didn't match what eventually worked for me, which was Database URL: localhost, and the table selected from is sensor_data in the image while it should be (and is in the text above it) sensor_data_demo.

Cheers!

@AlexP11223
Copy link

AlexP11223 commented Oct 31, 2017

Getting started with a postgres server was by far the most difficult and annoying part.

What OS are you using? On Ubuntu (and I guess most of other modern distros) you can just install via package manager (apt-get etc.) and then use postgres psql, createdb and so on. No need to add/start anything manually.

On Windows installer is also enough (it even installs pgadmin GUI).

Had to pip install psycopg2

There is requirements.txt, you can just use pip install -r requirements.txt (also a good idea is to use virtualenv instead of installing globally).

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