Tag: python

  • Fix for ModuleNotFoundError: No module named ‘_ctypes’ on ubuntu

    First you need to install libffi-dev Crete a new virtual environment and pip install Most probably this will fix it. Comment if it didn’t Enjoy smile

  • Scraping comments of a facebook post

    Scraping comments of a facebook post

    You need to submit your app for review with required permission to access Facebook posts of page in which you aren’t admin; in live mode This is a basic example of scrapping comments of a facebook post using python and facebook sdk I hope you have python and know how to install a package. Lets…

  • Library not loaded: libcrypto.1.0.0.dylib issue in mac

    You might have come across this error while dealing with the openssl module. Inorder to solve this issue follow the following steps Step 1: Install openssl using brew brew install openssl Step 2: Copy copy libssl.1.0.0.dylib and libcrypto.1.0.0.dylib cd /usr/local/Cellar/openssl/1.0.1f/lib sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/lib/ Note the bold folder name. There will be change in that…

  • Install OpenCV for python in OSX Mavericks 10.9

    #Assuming that you have installed Xcode, Command Line Tools, CMake, and Python #Install ScipySuperpack ~$ curl https://raw.github.com/fonnesbeck/ScipySuperpack/master/install_superpack.sh > install_superpack.sh ~$ sh install_superpack.sh #Download OpenCV 2.4.2 #Extract OpenCV-2.4.2.tar.bz2 #Open Terminal at the extracted directory #At OpenCV-2.4.2 directory: ~$ echo “#define GTEST_USE_OWN_TR1_TUPLE 1” | cat > temp1 ~$ cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2 ~$ cat temp1 temp2 >…

  • Installing pygame in OSX Mavericks

    pip install numpy brew install sdl sdl_ttf sdl_image sdl_mixer Download the pygame source. It’s one of the top links. Extract it somewhere and go to that directory in a terminal. Run python config.py. Open “Setup” file that will be found after running the above command . Change the lines starting SDL, FONT, IMAGE, and MIXER…