[Twisted-Python] (no subject)

Blake Winton bwinton at tor.dhs.org
Wed Oct 17 16:30:18 EDT 2001

I'm trying to make Twisted-0.11.0 run under Windows 2000.
Call me crazy.  ;)

Problem #1:
Windows really doesn't like files without extensions.
Solution #1:
Rename everything in bin\ to include ".py" at the end.
Does this break anything in particular for the Unix folks?
I realize it does make it a little more annoying, but can
you live with that to get it working under Windows?

Problem #2:
Running runtests(.py) gives the following error:
Test Results
Run: 91 ; Failures: 0; Errors: 1
There was 1 error:
1) twisted.test.test_dirdbm.DirDbmTestCase.testDbm
Traceback (most recent call last):
  File "C:\Twisted-0.11.0\twisted\test\test_dirdbm.py", line 44, in
    d[k] = v
  File "C:\Twisted-0.11.0\twisted\persisted\dirdbm.py", line 60, in
    f = _open(os.path.join(self.dname, k),'wb')
IOError: [Errno 22] Invalid argument:

Tracking this down, The problem seems to be in
line 59.  We encode the filename, which is good, but we use the base64
which appends a newline to the end, which is bad.
Solution #2:
I've done some testing, and we can strip the newline (with "k =
and it will decode into the correct value.  We should perhaps do this in
encoding function at line 52.

That seemed to be the only change to get runtests to work.

Next up: running the webserver...  :)

  4:29pm  up 53 days, 23:14,  1 user,  load average: 1.00, 1.00, 1.00

More information about the Twisted-Python mailing list