Coder Social home page Coder Social logo

Comments (4)

aeltanawy avatar aeltanawy commented on July 3, 2024 1

@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 python manage.py migrate so @martin-martin and I thought it would be a good addition to the ReadMe file.

from python-in-edu.

meg-ray avatar meg-ray commented on July 3, 2024 1

Thank you, this is super helpful. I'm updating the issue to specify instructions for multiple platforms. @aeltanawy and @Ben-Hampson

from python-in-edu.

shaunagm avatar shaunagm commented on July 3, 2024

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.

from python-in-edu.

Ben-Hampson avatar Ben-Hampson commented on July 3, 2024

I had a similar issue with pip installing psycopg2 on my Mac as well (macOS Mojave 10.14.6).

The error ends with:

    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1:

Full error text: https://gist.github.com/Ben-Hampson/70371c7390e67c6484b91a90778fb266

In previous Django projects to get around this I've pip installed pyscopg2-binary instead and that's worked fine. However that didn't work here. Installing Postgres locally, from postgress.app or homebrew, didn't work either. This command worked for me instead. I'm not sure what it's really about but I wanted to put it here in case it helps others.
env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install psycopg2

I found this solution at https://stackoverflow.com/questions/26288042/error-installing-psycopg2-library-not-found-for-lssl

from python-in-edu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.