Wednesday, 12 April 2017

Postgres/Django: could not load library

If you are getting error like this after postgresql update:

ERROR:  could not load library "/usr/local/Cellar/postgresql/9.5.6/lib/": dlopen(/usr/local/Cellar/postgresql/9.5.6/lib/, 10): Library not loaded: /usr/local/lib/libCGAL.10.dylib
  Referenced from: /usr/local/lib/libSFCGAL.1.dylib
  Reason: image not found 

or of library libspatialite

Run following command

brew reinstall sfcgal --build-from-source   

brew reinstall libspatialite --build-from-source

I hope it will fix your issue.

Thanks!!!! Enjoy Programming!!! :)

Monday, 3 April 2017

Enable pep8 autoformat in Sublime Text

Steps to install pep8 autoformat package in Sublime Editor

1. Download Mercurial from and install it.

2. Go To Sublime Text -> Preferences -> Browse Packages -> Note down the location.

3. Open terminal and go to Sublime Packages location.

4. Get clone - hg clone 'Python PEP8 Autoformat'

5. Restart Sublime Text3

6. If pep8 max line length 80 not working - Go To Sublime Text -> Preferences -> Settings -> User - Add rules

"rulers": [80]

Thanks!!!! Enjoy Programming!!! :)

Odoo 10: Close wizard and open standard form

Hi, Today we are going to learn how to open standard form after saving data in wizard. Let's say I have created an wizard to fill bas...