[albatross-users] ImportError: cannot import name RandomModularSessionFileApp

Andrew McNamara andrewm at object-craft.com.au
Tue Dec 10 11:06:47 EST 2002


>when i change the "random" sample from a RandomModularSessionApp to a
>RandomModularSessionFileApp, i get the following error:
[...]
>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.

It looks like you're right - we'll rename it in the next release, and
look at other ways we can avoid this problem in future (such as fiddling
sys.path in the albatross __init__.py?).

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list