[Tutor] would someone help me out with this-->import error?

Karthik Gurumurthy karthikg@aztec.soft.net
Mon, 7 Jan 2002 11:55:26 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0030_01C19772.31ECE840
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

hi all,

This is as part of my plans to introduce python at our company.
I have taken Martin Fowler's refactoring example and am almost done with it
when i'm getting a strange import error.

I have been working on this since yesterday and have'nt been able to debug
it! :-(
There is problem somewhere which is causing the cylcic imports to fail.
i'm using python2.2.

am attaching the a zip file code.zip which has 2 files.

1. movie.py --> refers to price.py
2. price.py --> which in turn tries to import movie.py

just try doing

>>import movie

and you will see the error.

I will be doing a GUI demo as well and am planning to use anygui.
Since my demo would'nt have many fancy widgets, i guess anygui at it's
present state should work for me.

The code is'nt complicated. It was working just fine and at the last stage
of
refactoring it suddenly started raising this error.

would be obliged if someone could fix this for me.

thanks,
karthik


------=_NextPart_000_0030_01C19772.31ECE840
Content-Type: application/x-zip-compressed;
	name="code.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="code.zip"

UEsDBBQAAAAIAE5cJyyqIw6YfQEAAGwEAAAIAAAAcHJpY2UucHm1kl9rwjAUxZ8t9Dtc9KU6V5yy
l4EDqWUTVEZF9ljS9rbNSBtJ0v359rNNrU6RubG9lCbnJOfcH4kFzyDjrxSBZhsuFCzKRR88zBVh
pmEaISNSwpIvUKU8mmUbhlkpKspzy30PcVP+de9MoxVhDL5Pc6p835LI4n4mk/GS51jJrcZtn7i6
pb4LmzGGCWFPgobo8Aibc3+aZxqdSQ4kkEqQUIGO3k9cpVs8eMFQNWkJqqZVdZcOEoRKPMeovd5q
qyLQCShB8fIeIHnJ/MDZriHskpyUiETH9MXWNCUf8j/yOjDFmOZ4JEuIuQAkYQo8BpWiRgKyCKqb
96iclLJo21Ajq75lz2+YoSpErt+b7TzO5lPPXV4MAGXBFIzhxr4t1zSGnQHuYVR5alPragxWI17D
qAu9+lRdQfu2GwfP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