Skip to content

Category Archives: python

Debug and optimization do NOT mix!

This has robbed me of several days of my life, so I want to bring Google juice this this problem. IF you have a Pylons or TurboGears application or anything else that uses the fantastic EvalException WSGI middleware for web debugging of you web program and have the following symptom: * on a crash the [...]

Ubuntu removing XML from Python?

From http://159.18.52.69/raw/983493 Error: Traceback (most recent call last): File “test.py”, line 12, in module from xml.dom.ext.reader import HtmlLib ImportError: No module named ext.reader Fix/workaround: + sys.path.append(‘/usr/lib/python%s/site-packages/oldxml’ % sys.version[:3]) from xml.dom.ext.reader import HtmlLib I had an old Python script doing some XML work and after upgrade to Ubuntu 8.04 I started getting the above error message [...]

SBackup new beta – test and translate please!

With great help from Ouattara Oumar Aziz an new version of SBackup is shaping up in the svn repo and a day ago I created a public beta version – 0.10.4~beta10 which can be downloaded here. Please report any bugs or regressions to Sourceforge bug tracker. Also an update for translations and new translations can [...]

Why? Oh Gods! Why?

$ mv .ssh/ .ssh.old/ $ python >>>import gnomevfs >>> gnomevfs.get_file_info( “ssh://aigarius:password@aigarius.com/home/aigarius” ) Traceback (most recent call last): File “<stdin>”, line 1, in ? gnomevfs.AccessDeniedError: Access denied >>> $ ssh aigarius.com The authenticity of host ‘aigarius.com (85.254.216.40)’ can’t be established. RSA key fingerprint is 6d:29:c0:f3:d0:84:c9:a9:d9:4c:7e:e3:1a:18:a2:e2. Are you sure you want to continue connecting (yes/no)? yes Warning: [...]

Another tiny note – why is it so that al…

Another tiny note – why is it so that all the Python wrappers for Gnome and Freedesktop related things (GnomeVFS and DBus in my experience) have absolutely no API documentation !!! PyGTK has a nice set of documentation for GTK work, but it doesn’t extend beyond that, sadly. When I was writing SBackup, I had [...]

I am behind my planned schedule by allmo…

I am behind my planned schedule by allmost two days, mostly because tarfile module for Python is … not too complete, for example you can only extract files one by one It looks like I will have to implement extraction of directories myself. Of course I will send it to the tarfile upstream authors, along [...]

Still writing a restore tool :(

Still writing a restore tool Last two hours were spent debugging an interesting problem with TreeView in PyGTK. It was too slow to parse and add all files from a backup snapshot to the tree view at once (not to mention that it took 35 Mb of RAM ), so I decided to load the [...]