stupid q-n (wxPy)
max at cNOvSisiPonAtecMh.com
Tue Apr 29 20:13:23 CEST 2003
The only detail I have is that the script was copy-pasted out straight of
wxPython demo app. There were no specific instructions in the readme for
running the code so I just gave it a shot. Since wxPython is so popular I
fugured someone would just tell me "didn't you bla-bla, (idiot)?".
Max Khesin, software developer -
max at cNvOiSsPiAoMntech.com
[check out our image compression software at www.cvisiontech.com, JBIG2-PDF
"Peter Hansen" <peter at engcorp.com> wrote in message
news:3EAEB850.50D9DEB9 at engcorp.com...
> xam wrote:
> > I am trying to run some wxPy samples and I am getting an error here:
> > if __name__ == '__main__':
> > import sys,os
> > import run
> > run.main(['', os.path.basename(sys.argv)])
> > - "import run" fails. I know this is something really stupid, but I
> > not find the answer on the net.
> > thanks.
> What is "run"? Where is it? Are you sure the script you are running
> can find "run.py"? If there's no run.py in the directory of the script
> you show above, insert a "print sys.path" after the first import statement
> and make sure the list it prints contains the directory where run.py is
> actually installed.
> A little more detail/context would be helpful next time.
More information about the Python-list