[Shtoom] [Divmod-dev] Shtoom-Bugs

jonasvp at gmx.de jonasvp at gmx.de
Wed Jun 15 15:07:01 CEST 2005

(cc'ing the shtoom list - shtoom at python.org)

  Hello Anthony,
thanks for your reply. I'm looking forward to the new and improved version 0.3. Just one comment:

>>- The config file is created under the current directory, not under the
>>home directory of the user
> I don't see this, unless you're running on Windows. The notion of a "home"
> directory on Windows is something I don't pretend to understand - if anyone
> wants to suggest something better, please let me know. The relevant code in
> shtoom/Options.py is:
> def findOptionsDir():
>     try:
>         saveDir = os.path.expanduser('~%s'%os.getlogin())
>     except:
>         saveDir = os.getcwd()
>     return saveDir
> If this doesn't work for you, please let me know. (try 
> "python -c 'import os; print os.path.expanduser("~%s"%os.getlogin())'"
> and see what it says)

Well, it doesn't work for me. os.getlogin() fails with 

  OSError: [Errno 2] No such file or directory

This seems to be connected with some terminals, in my case konsole, not updating utmp (http://sourceforge.net/tracker/index.php?func=detail&aid=584566&group_id=5470&atid=105470). 
Why don't you just use 

  saveDir = os.path.expanduser('~')


And another thing:

After installing shtoom, all further installs of python modules fail with these comments:
/usr/lib/python2.3/site-packages/shtoom/multicast/netnum.py:47: FutureWarning: hex/oct constants > sys.maxintwill return positive values in Python 2.4 and up
  B = 0xffffffff
/usr/lib/python2.3/site-packages/shtoom/rtp/rtcp.py:179: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
  c['fraclost'] = ((c['lost'] & 0xFF000000) >> 24)/256.0
Compiling /usr/lib/python2.3/site-packages/shtoom/test/py24tests.py ...
  File "/usr/lib/python2.3/site-packages/shtoom/test/py24tests.py", line 7
SyntaxError: invalid syntax

I figure it's because you're trying to run something for Python 2.4 on 2.3...

Keep up the good work, I hope shtoom will become usable soonish,

Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

More information about the Shtoom mailing list