Archive for the ‘Python’ Category

Patched Python Paramiko 1.7.7.1 Windows 32 and 64 bit installers

on Wednesday 16th November, 2011 Gabe speculated thusly…

Taking the Latest code from Robey the Paramiko maintainer and applying a patch submitted by Jaraco at:
https://github.com/jaraco/paramiko/commit/1939b1c55270bf7a92fdb1d43208a3b65342f4b2
these builds of Paramiko will not suffer from the following Exception:
File "C:\Python27\lib\site-packages\paramiko\agent.py", line 118, in _read_all
raise SSHException('lost ssh-agent')
SSHException: lost ssh-agent

Most notably the 64bit version will not suffer this problem, the 32bit versions never did. More details on the issue can be found here:
https://bugs.launchpad.net/bzr/+bug/644995
and here:
https://bugs.launchpad.net/paramiko/+bug/736955

32bit Installer:
paramiko-1.7.7.1.win32_Jaraco_patch

64bit Version for Windows and Python 64bit (AMD/Intel):
paramiko-1.7.7.1.win-amd64_Jaraco_patch

Posted in Programming, Python

No Comments »

Python PyCrypto 2.4.1 32 and 64 bit Windows 32/x64 AMD/Intel Installers Python 2.7

on Monday 14th November, 2011 Gabe speculated thusly…

Python PyCrypto 2.4.1 64bit and 32 bit Windows x64 AMD/Intel Installer.

Frustrated that there were only 32 bit builds available. I compiled and tested this as working using Python 2.7.2 64 bit running on Windows 7 64bit.

32 bit version:
pycrypto-2.4.1.win32-py2.7

64 bit version for x64 Python installs on 64bit Windows
pycrypto-2.4.1.win-amd64-py2.7

Posted in Programming, Python

No Comments »

Python paramiko 1.7.7.1 Windows 32 and 64 bit installers

on Monday 14th November, 2011 Gabe speculated thusly…

For your convenience. Please find below installers for 32 and 64 bit versions. Works with Python 2.7. Choose the correct installer for your Python installation.

paramiko-1.7.7.1.win32

paramiko-1.7.7.1.win-amd64

Posted in Programming, Python

No Comments »

Python PyCrypto 2.0.1 64bit Windows x64 AMD/Intel Installer

on Monday 14th November, 2011 Gabe speculated thusly…

Python pycrypto-2.0.1.win-amd64-py2.7.exe 64bit Windows x64 AMD/Intel Installer.

Frustrated that there were only 32 bit builds available. I compiled and tested this as working using Python 2.7.2 64 bit running on Windows 7 64bit.

pycrypto-2.0.1.win-amd64-py2.7

Posted in Programming, Python

No Comments »

Python setuptools 0.6c11 64bit Windows x64 AMD/Intel Installer

on Monday 14th November, 2011 Gabe speculated thusly…

Found 32 bit versions knocking about but no 64bit, thought some like-minded people might appreciate a 64 bit build. Have compiled and tested this as working using Python 2.7.2 64 bit running on Windows 7 64bit.
setuptools-0.6c11.win-amd64

Posted in Programming, Python

No Comments »

Using Python Doctests in Django with fixtures

on Tuesday 24th June, 2008 Gabe speculated thusly…

Django is a pretty decent web framework for Python. Having brushed up on my Python programming I started to fall in love with doctests. I then went ahead and wrote about 100 lines of doctest for model in Django, then found all tests were failing because the database fixtures weren’t being loaded.

I couldn’t find out how to install fixtures inside doctests from the official documentation, I did however, come across what seemed like a web page written in Japanese. I had to skip the Japanese but figured out the code samples. Getting fixtures working with doctests in django is fairly simple – once you know how!

At the top of your doctest you will need the following two lines:
>>> from django.core import management
>>> management.call_command("loaddata", "project/fixtures/test.json", \
verbosity=0)

Replace project and test.json with your project name and fixture. Then continue with the doctests as per usual. After they are done put the following line at the end of the doctest:
>>> management.call_command("flush", verbosity=0, interactive=False)

That should be just about it :)

Posted in Development, Django, Frameworks, Programming, Python

No Comments »