-
Notifications
You must be signed in to change notification settings - Fork 28
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
Improve installation instructions - fix errors #19
Comments
Thanks for catching this! I think these are requirements related to the Spirit forums, which requires postgres and pillow. (This site should use postgres on Heroku and sqlite3 locally.) We should link to their setup instructions regardless so people don't get confused about why the forum's not working if they don't follow the extra steps, but maybe doing the Spirit setup process will avoid some of the trouble you ran into? Or maybe not - I developed on Ubuntu and it may be that the process is just harder on Mac. I see that @aeltanawy already has a PR up to fix this. Up to you all if/how you want to incorporate this info. |
I had a similar issue with pip installing The error ends with:
Full error text: https://gist.github.com/Ben-Hampson/70371c7390e67c6484b91a90778fb266 In previous Django projects to get around this I've pip installed I found this solution at https://stackoverflow.com/questions/26288042/error-installing-psycopg2-library-not-found-for-lssl |
@shaunagm, for some reason I didn't run into this issue on my Mac however I have developed with postgres before so my computer should have the required setup to run this app locally. The only thing I needed to do though is to build the database with |
Thank you, this is super helpful. I'm updating the issue to specify instructions for multiple platforms. @aeltanawy and @ben-hampson |
Now that the requirements files are split up in psf#37 and the local dev environment has been simplified, we can now add a detailed and welcoming contribution guide. This absorbs the install instructions from the README and expounds on the install and local development process so as to enable new developers to contribute to the project easly. There were no guidelines in the README as far as commit hygene or other contribution guidelines, but it wouldn't be difficult to add later. fixes: psf#19, psf#26, psf#27 relies on: psf#37
When attempting to clone and install the project as instructed in the README, on a MacOS system, I first ran into an error related to installing
psycopg2
:This is fixed by installing Postgres.
I suggest to add a note to the README that contributors need to have Postgres installed to be able to run the project locally.
Further, after successfully installing Postgres and adding it to my PATH, I ran into another error related to a missing installation of
libjpeg
:I needed to install homebrew in order to install
jpeg
to finally get to a point wherepython -m pip install -r requirements.txt
succeeded without an error.tl;dr: On a new MacOS machine, there's quite some additional setup necessary just to get the project to run. I'm not exactly sure why (I've worked on Django projects on this computer before), but it would be helpful to add some pointers to the README file to make it more accessible for newcomers.
The text was updated successfully, but these errors were encountered: