Comments (4)
@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.
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.
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.
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)
- Add Separator Images to Separate Text
- Accessibility Assessment HOT 1
- Security Fix - High Priority HOT 2
- Fix Resource Filters
- Fix Nav Bar for Mobile - High Priority HOT 4
- Clean up requirements and verify direct project dependencies HOT 2
- Resources Database Model - Change "Attribution" to "Author" HOT 1
- Fix NavBar Layout for Mobile
- Clean Up Resource List
- Proposal: change branch name master to main
- Adjust layout of individual resources
- Refactor modeling
- Refactor forms HOT 1
- Migrate to Poetry
- Fix the Registration Form. HOT 1
- User Can Access the Auth Related Routes when you are still signed in.
- Add a dockerfile for better and easy setup HOT 1
- Major Bugs and Issues to be fixed and Improvements to be made. HOT 5
- Fix Dependency of the Project. HOT 5
- Add Issues Templates to the Project so that it Became Easy to See the Description of the Issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-in-edu.