Skip to content

Instantly share code, notes, and snippets.

@blorenz
Last active December 21, 2015 15:08
Show Gist options
  • Save blorenz/6324044 to your computer and use it in GitHub Desktop.
Save blorenz/6324044 to your computer and use it in GitHub Desktop.
Common messups and solutions
### MacOSX Postgres won't start
rm /usr/local/var/postgres/postmaster.pid
Users are getting "ImportError: No module named setuptools" when using pip to upgrade a package since distribute-0.7.3 was released.
e.g. when running a command like this: pip install --upgrade pyramid
Solution
To prevent the problem in new environments (that aren't broken yet),
First run pip install -U setuptools,
Then run the command to upgrade your package (e.g. pip install --upgrade pyramid)
To fix the problem once it's occurred, you'll need to manually install the new setuptools, then rerun the upgrade that failed.
Download ez_setup.py (https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py)
Run python ez_setup.py
No module named setuptools.command
pip install distribute --upgrade
## lion psql
curl http://nextmarvel.net/blog/downloads/fixBrewLionPostgres.sh | sh
## freetype not installed
brew install freetype
brew link freetype --force
sudo ln -s /usr/local/include/freetype2/freetype/ /usr/include/freetype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment