Skip to content

Instantly share code, notes, and snippets.

View sundayguru's full-sized avatar

Nwuguru Sunday sundayguru

View GitHub Profile
@sundayguru
sundayguru / gist:c370211bad2f45d155c7e7a139aed431
Last active April 30, 2021 08:37
'libmemcached/memcached.h' file not found error
Error: src/_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found
#include <libmemcached/memcached.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Solution:
brew install libmemcached
@sundayguru
sundayguru / gist:f0eca926cdb22f947aca12acf61c9048
Created October 4, 2016 20:22
xcrun: error: invalid active developer path
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Solution:
xcode-select --install
Other related issues:
https://ohthehugemanatee.org/blog/2015/10/01/how-i-got-el-capitain-working-with-my-developer-tools/
@sundayguru
sundayguru / Python requirements issues on windows
Created August 20, 2016 20:00
Python requirements issues on windows
1. psycopg2
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VERSION=\"2.6.1 (dt dec pq3 ext lo64)\"" -DPG_VERSION_HEX=0x090501 -DHAVE_LO64=1 "-Ic:\program files\python 3.5\include" "-Ic:\program files\python 3.5\include" -I. -IC:/PROGRA~1/POSTGR~1/9.5/include -IC:/PROGRA~1/POSTGR~1/9.5/include/server "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcpsycopg\psycopgmodule.c /Fobuild\temp.win-amd64-3.5\Release\psycopg\psycopgmodule.obj
psycopgmodule.c
.\psycopg/config.h(134): warning C4005: 'isnan': macro redef
@sundayguru
sundayguru / python development environment for windows
Last active August 20, 2016 09:48
How to setup your window system for python development
1. Download and Install latest python release for windows https://www.python.org/downloads/windows/
2. Download and save https://bootstrap.pypa.io/get-pip.py in any directory of choice
3. Navigate to the root directory where `get-pip.py` is save in command line
4. Run ` python get-pip.py ` to install pip
5. If pip command is not available in command line after you restart it, add the location where it is installed into your environment variables.
Default location for python 2.7 is ` C:\Python27\Scripts `. visit https://pip.pypa.io/en/stable/installing/ for more information.
6. Run `pip install virtualenvwrapper` to install virtual environment. visit https://virtualenvwrapper.readthedocs.io/en/latest/ for full installation details