From: Daπid <dav...@gm...> - 2010-07-21 00:28:48
|
Hello. On Wed, Jun 9, 2010 at 6:11 PM, Davidmh <dav...@gm...> wrote: > Hello. I have finally fixed the problem in a somewhat silly way: > > try: from visual import * > except:pass > > I figure the crash is before the important parts of visual are > imported, so it can go ahead. It won't work on programs that depend on > materials. In some new scritps, when I compile them with py2exe, I get: Traceback (most recent call last): File "show_scene.py", line 5, in <module> NameError: name 'display' is not defined Of course, the original .py script, before Py2exe works great without raising errors. The five first lines, until the crash are: 1· try: from visual import * 2· except IOError: pass 3· 4· 5· scene=display() Trying to figure how to solve it, I remembered some VPython scripts I compiled some months ago, that were functional; but when I try to run them, I get similar errors. In this same computer, they ran perfectly time ago. I don't remember doing any big modification in the OS (appart from the security updates), nor touching the Python installation (although this should work anyway). More testing brings more weird results. Testing both old and new scripts in another similar computer, the old one works great (as it should), but the new one still says the same error. Anyone has any idea on why is it happening and how to solve? Thank you very much. David. P.D.: if anyone needs the complete scritps, just ask for them; I don't have any problem in publishing them. |