| Reply | « Previous Thread | Next Thread » |
|
Hi,
i am trying to run the code at http://wiki.forum.nokia.com/index.ph...he_view_finder on an N95 and it is giving the following error the script is executed: Quote:
Thanks in advance vik
Last edited by vik_nuckchady : 2009-04-28 at 23:58.
|
| vik_nuckchady |
| View Public Profile |
| Find all posts by vik_nuckchady |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Hi,
That problem can be solved by removing "object" from the Camera class constructor. This line Code:
class Camera( object, appuifw.Canvas ): Code:
class Camera( appuifw.Canvas ): |
|
Thanks Bogdan for the prompt reply.
Could you tell me why removing 'object' solves the problem ? Is it that Canvas is already an 'object' in this case and, making Camera an object as well in addition to inheriting from Canvas is causing the MRO ? I do understand the reason behind of the TypeError (i.e the MRO) but, i fail to understand the cause of it in this case. Thanks again |
| vik_nuckchady |
| View Public Profile |
| Find all posts by vik_nuckchady |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
To be honest, I'm not sure. This was the first time I encountered this error so I did a bit of searching with Google and found out it had to do with inheritance, though I wasn't able to understand exactly how. So I just took a shot and deleted "object" from the constructor and, luckily, it worked.
I did find this lengthy article though, which may explain it: http://www.python.org/download/releases/2.3/mro/ |
|
Hi again Bogdan,
I am suspecting that newer version of the Python runtime for S60 is employing different mechanism for implementing inheritance much like it has been for python 2.2 -> 2.3 (?) Well, thanks again. Hopefully some answer will pop up in the near future ![]() Cheers |
| vik_nuckchady |
| View Public Profile |
| Find all posts by vik_nuckchady |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Problem running the TextMTM sample | dingdongvan | General Symbian C++ | 6 | 2004-04-19 11:54 |
| breakpoints disabled when running debugger. | nawkboy | General Symbian C++ | 2 | 2003-11-14 01:01 |
| breakpoints disabled when running debugger | nawkboy | Symbian Tools & SDKs | 0 | 2003-02-20 04:43 |
| problem with Nokia Toolkit 3.1 and binary code for MMS | alinesimon | General Messaging | 1 | 2002-08-09 07:40 |
| Problem running the TextMTM sample | dingdongvan | General Messaging | 1 | 1970-01-01 02:00 |