-
Sponsored Links
-
Recent Posts
- How to add ICMP Echo Request to AWS Security Group from the CLI
- How to fix STOP: 0x0000007B blue screen when moving virtualbox machine to another computer
- pip is broken with AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’
- Generate a certificate request but keep your old key with openssl
- OSError: [Errno 1] Operation not permitted: Extras/lib/python/six-1.4.1-py2.7.egg-info’
Categories
- AWS (1)
- cli (1)
- CSS (1)
- django (4)
- DNS (1)
- DRBD (1)
- Exchange (1)
- FAX (1)
- FTP (1)
- git (2)
- Glusterfs (1)
- IIS (1)
- Kemp (1)
- Linux (38)
- lxc (3)
- Mac OS X (11)
- Malware (2)
- Microsoft (7)
- Multipoint Server 2012 (1)
- mysql (3)
- nagios (2)
- nginx (3)
- Office 365 (1)
- PHP (1)
- postgres (9)
- python (9)
- QNAP (1)
- raspberry pi (1)
- Samba (2)
- Security (1)
- SSL (10)
- Tomcat (1)
- Ubuntu (2)
- Uncategorized (4)
- Virtualbox (1)
- vmware (2)
- Web Programming (2)
- windows (12)
Archives
- September 2018 (3)
- August 2018 (1)
- October 2017 (1)
- November 2016 (1)
- October 2016 (2)
- September 2016 (1)
- May 2016 (1)
- December 2015 (1)
- November 2015 (1)
- October 2015 (2)
- September 2015 (1)
- August 2015 (2)
- July 2015 (1)
- June 2015 (1)
- March 2015 (3)
- January 2015 (3)
- November 2014 (1)
- October 2014 (1)
- September 2014 (1)
- August 2014 (2)
- April 2014 (1)
- February 2014 (3)
- January 2014 (1)
- November 2013 (3)
- October 2013 (3)
- September 2013 (1)
- August 2013 (3)
- July 2013 (1)
- June 2013 (1)
- May 2013 (1)
- April 2013 (3)
- March 2013 (5)
- February 2013 (3)
- January 2013 (1)
- December 2012 (5)
- November 2012 (3)
- October 2012 (1)
- September 2012 (1)
- August 2012 (2)
- July 2012 (4)
- April 2012 (1)
- March 2012 (2)
- February 2012 (1)
- January 2012 (4)
- December 2011 (1)
Category Archives: python
Unable to load psycopg2 on Mac OSX El Capitan
I upgraded to El Capitan today and of course had to reinstall homebrew and all my python and development tools. I went to try to run a django app on my machine and kept getting this error: django.core.exceptions.ImproperlyConfigured: Error loading … Continue reading
Wake on LAN script in Python
This works. #!/usr/bin/env python # wol.py import socket import struct def wake_on_lan(macaddress): “”” Switches on remote computers using WOL. “”” # Check macaddress format and try to compensate. if len(macaddress) == 12: pass elif len(macaddress) == 12 + 5: sep … Continue reading
Posted in python
Comments Off on Wake on LAN script in Python
ImportError: cannot import name utils
If you get an error like this: File “python/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py”, line 9, in <module> from django.db import utils ImportError: cannot import name utils You need to install psycopg2. You will also probably need to apt-get install build-essential libpq-dev
Error: pg_config executable not found.
This bogus error can be frustrating to figure out. I have figured it out a few times over the years and always forget how I solved it because it only occurs on a server where you have never deployed a … Continue reading