Hi, Zhe,

Thank you for your mail!
Yeah, I'm using Ubuntu. The version is Ubuntu-9.10.
I'm using the latest version, the version web.py-0.33.

It seems that the "form.py" imports "copy.py" while "copy.py" is importing
"form.py"...

I deleted the "import copy" in form.py, and runs the tiny programme.
I don't know whether there would be other problems...:-(..

Best,
Tianyin


On 23 February 2010 16:53, Zhe Li <[email protected]> wrote:

> On Feb 21, 8:42 pm, flydutchman <[email protected]> wrote:
> > Hello,
> >
> > I'm a new comer.
> > I've install the Python, web.py and flup. I'm reading the Tutorial and
> > plan to run the 5-line application as follows:
> > ----------------------------------------------------------------
> > import web
> >
> > urls = (
> >   '/', 'index'
> > )
> >
> > app = web.application(urls, globals())
> >
> > class index:
> >     def GET(self):
> >         return "Hello, world!"
> >
> > if __name__ == "__main__": app.run()
> > ----------------------------------------------------------------
> >
> > However, when I run it as: python code.py, some error occurs. The
> > trace is:
> > ----------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/afs/informatik.uni-goettingen.de/user/t/txu/workspace/Test/
> > src/Application/copy.py", line 3, in <module>
> >     import web
> >   File "/usr/local/lib/python2.6/dist-packages/web/__init__.py", line
> > 15, in <module>
> >     import template, form
> >   File "/usr/local/lib/python2.6/dist-packages/web/form.py", line 6,
> > in <module>
> >     import copy, re
> >   File "/afs/informatik.uni-goettingen.de/user/t/txu/workspace/Test/
> > src/Application/copy.py", line 9, in <module>
> >     app = web.application(urls, globals())
> > AttributeError: 'module' object has no attribute 'application'
> > ---------------------------------------------------------------
> >
> > It seems that the "import copy, re" in form.py has some problem.
> > I think this must be a very simple question and I am so stupid that I
> > cannot figure it out.
> > Can anybody help me?
> >
> > Best,
> > Tianyin
>
> I seems to have the same problem before, are you using ubuntu? Try the
> latest package from their repository.
>
> Cheers,
> Zhe
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <webpy%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>
>


-- 
Tianyin XU, ( 徐天音 )
State Key Laboratory for Novel Software Technology
Department of Computer Science and Technology, Nanjing University
No. 22, Hankou Road, Nanjing 210093, P. R. China
Homepage. http://cs.nju.edu.cn/dislab/xuty/xuty.html

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to