Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running examples/hello.py #4

Closed
epifanio opened this issue Feb 24, 2013 · 2 comments
Closed

error running examples/hello.py #4

epifanio opened this issue Feb 24, 2013 · 2 comments

Comments

@epifanio
Copy link

succesful built on ubuntu 13.04 - 64bit
trying to run hello.py :

epi@ubuntu:~/dev/src/pywt/examples/hello$ python hello.py --docroot . --http-address 0.0.0.0 --http-port 8080
[2013-Feb-24 02:08:15.956822] 3735 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = 'hello.py')"
[2013-Feb-24 02:08:15.957361] 3735 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2013-Feb-24 02:08:15.957701] 3735 - [info] "wthttp: started server: http://0.0.0.0:8080"

i got the following error in the browser (firefox) :

Python Error

Traceback (most recent call last):
File "hello.py", line 40, in createApplication
return MyApplication(env)
File "hello.py", line 14, in init
self.setTitle("Hello")
AttributeError: 'MyApplication' object has no attribute 'setTitle'

@wdu
Copy link
Owner

wdu commented Feb 24, 2013

There seems to be something wrong with your generated .cl files. Does WApplication.cl contain the following lines:

c.addMethod("setTitle", "void", [("const class Wt::WString &", "title")], "")
c["setTitle"].setDocumentation("""
<p class="para-brief"> Sets the window title.</p><p> ....
""")

I'm confused why you guys see this. Does any of the methods/classes/... contain any documentation in the .cl files? i.e. is there any setDocumentation() call that does not pass the empty string?

@wdu wdu closed this as completed Feb 24, 2013
@epifanio
Copy link
Author

a gist with my generated WApplication.cl :

https://gist.github.com/epifanio/5024717

I tryied on a fresh ubuntu 12.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants