[Xml-logilab] name 'sys' is not defined in PyReverse

abulka@netspace.net.au abulka@netspace.net.au
Fri, 20 Sep 2002 00:55:58 +1000 (EST)

Despite the advice I read by Sylvain Thénault in comp.lang.python on 2002-08-28 
about the latest release 0.3.1 having a bug and I should move the
   import sys
statement to the top of pyargo.py, I still cannot run this latest version.  I 
am using python 2.2 and get the following error output under windows 2k.

Does anyone know how to fix this or what is going on?  Isn't not finding sys 
module pretty weird?  P.S. I have pyreverse 0.2.2 running ok under python 2.1

C:\Documents and Settings\Administrator\Desktop\pyreverse again>\python22\Lib\si
te-packages\logilab\pyreverse\pyargo.py -p simpleclasses01 "simpleclasses01.py"
Traceback (most recent call last):
  File "C:\python22\Lib\site-packages\logilab\pyreverse\pyargo.py", line 282, in
  File "C:\python22\Lib\site-packages\logilab\pyreverse\pyargo.py", line 208, in
    from visitors.xmi_uml import XMIUMLVisitor
  File "C:\Python22\Lib\site-packages\logilab\pyreverse\visitors\xmi_uml.py", li
ne 40, in ?
    print >>sys.stderr, ':: using minidom'
NameError: name 'sys' is not defined

-Andy Bulka

This email sent from Netspace Webemail: www.netspace.net.au