Comments (5)
Install libpq-dev using this cmd this should fix the issue , rerun the pip install requirements cmd once you do this . sudo apt-get install libpq-dev
from flask-base.
Following up: Is this fixed?
from flask-base.
I'm using Mac OS -- I used homebrew to install libpq package
`==> libpq
libpq is keg-only, which means it was not symlinked into /usr/local,
because conflicts with postgres formula.
If you need to have libpq first in your PATH run:
echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.bash_profile
For compilers to find libpq you may need to set:
export LDFLAGS="-L/usr/local/opt/libpq/lib"
export CPPFLAGS="-I/usr/local/opt/libpq/include"
`
This did fix error in OP; but new issue arises after pip install -r requirements.txt
ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal.main import main File "/usr/local/lib/python2.7/site-packages/pip/_internal/main.py", line 13, in <module> from pip._internal.cli.autocompletion import autocomplete File "/usr/local/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 11, in <module> from pip._internal.cli.main_parser import create_main_parser File "/usr/local/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/usr/local/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module> from pip._internal.locations import USER_CACHE_DIR, get_src_prefix File "/usr/local/lib/python2.7/site-packages/pip/_internal/locations.py", line 18, in <module> from pip._internal.utils import appdirs File "/usr/local/lib/python2.7/site-packages/pip/_internal/utils/appdirs.py", line 16, in <module> from pip._internal.utils.compat import WINDOWS, expanduser File "/usr/local/lib/python2.7/site-packages/pip/_internal/utils/compat.py", line 17, in <module> from pip._vendor.urllib3.util import IS_PYOPENSSL File "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/__init__.py", line 7, in <module> from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url File "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/connectionpool.py", line 29, in <module> from .connection import ( File "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/connection.py", line 40, in <module> from .util.ssl_ import ( File "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/__init__.py", line 7, in <module> from .ssl_ import ( File "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py", line 8, in <module> from hashlib import md5, sha1, sha256 ImportError: cannot import name md5
Is this library built for linux ? anyway to get working on mac ?
from flask-base.
Yeah that library is built for linux. Try doing brew install postgresql
from flask-base.
Closing unless there are other issues. Feel free to reopen as you see fit.
from flask-base.
Related Issues (20)
- Looking for help creating docker-compose.yml
- migrate and upgrade HOT 2
- Making flask-base a template HOT 1
- Installing on Windows? Unable to get redis installation HOT 2
- how to add mailgun credentials? HOT 2
- Heroku bundling issues HOT 2
- celery integration HOT 2
- Docker file for deployment HOT 1
- Adding Docker compose
- Icon documentation HOT 2
- error in showing account/unconfirmed.html
- SyntaxError: invalid syntax while running Flask in venv HOT 6
- docker should work out of the box? HOT 6
- Why is SSL disabled by default in production? HOT 1
- How to execute the following commands on Windows HOT 1
- User authentication not working in mobile view HOT 6
- Tests should export logs in order to improve pipeline integration HOT 1
- Freshly cloned docker-compose is giving error ModuleNotFoundError: No module named 'flask._compat'
- ModuleNotFoundError: No module named 'flask.ext' HOT 1
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 flask-base.