[albatross-users] ImportError: cannot import name RandomModularSessionFileApp

Axel Kollmorgen axel at kollmorgen.net
Sat Dec 7 15:33:42 EST 2002


hi,

when i change the "random" sample from a RandomModularSessionApp to a
RandomModularSessionFileApp, i get the following error:

Traceback (most recent call last):
  File "d:\pub\cgi\alsamp\random\random.py", line 2, in ?
    from albatross import RandomModularSessionFileApp
  File
"D:\progs\develop\Python22\Lib\site-packages\albatross\__init__.py",
line 12, in ?
    from albatross.sessionfile import *
  File
"D:\progs\develop\Python22\Lib\site-packages\albatross\sessionfile.py",
line 10, in ?
    import os, stat, sys, binascii, random, errno, struct
  File "d:\pub\cgi\alsamp\random\random.py", line 2, in ?
    from albatross import RandomModularSessionFileApp
ImportError: cannot import name RandomModularSessionFileApp


apparently a name clash problem - when i change random.py to bla.py, the
problem has gone ("random" is a standard python module, isn't it?). i'm
quite new to python so i don't know if this is a bug or just
unfortunate. in any case, because others may run into the same problem,
i'd suggest to either fix it, rename the sample dir or at least document
it somehow.

besides this, albatross looks like the thing i've been looking for
(quite some time). thanks!

-- 
ax

Eventually, I think Chicago will be the most beautiful great city left
in the world - Frank Lloyd Wright (1939)




More information about the Albatross-users mailing list