Hugo,
you nailed it..  I didn't know that the version should come out as 
'1.0.0~beta3', mine was coming up '1.0.0'...  apparently my python interpreter 
was still looking at the python-pyside package i'd uninstalled instead of the 
one I'd compiled and installed.  After doing a few reinstallations and in 
particular moving the builds to the system default locations,  I've got it 
running no problem.  sorry all for the hassle.  btw, thomas' scripts made 
installation a bit quicker the last time around, thanks for that -

-d


________________________________
From: Hugo Parente Lima <[email protected]>
To: [email protected]
Cc: Dan Lee <[email protected]>; [email protected]
Sent: Tue, January 11, 2011 1:07:52 PM
Subject: Re: [PySide] extending qml types in pyside

On Tuesday 11 January 2011 16:32:53 Dan Lee wrote:
> sure --  I have pyside-qt4.7+1.0.0.0~beta2, qt-mobility-opensource-1.2.0,
>  qt-everywhere-opensource-src-4.7.1, on ubuntu 10.10 desktop with python
> 2.6.6. I'm trying to run 'python
> pyside-pyside-examples/examples/declarative/extending/chapter1-basics/basic
> s.py' which imports everything from QtDeclarative, among others.  the full
> traceback is :
> "
> Traceback (most recent call last):
>   File "basics.py", line 74, in <module>
>     qmlRegisterType(PieChart, 'Charts', 1, 0, 'PieChart');
> NameError: name 'qmlRegisterType' is not defined
> "

The function is there, I'm sure, probably you have another PySide installed 
somewhere, try to add: "print PySide.__version__" to check it.

> I'm not sure what else would be helpful to know -- several of the other
> pyside examples I've tried have worked, but none in the folder about
> extending.  the first 4 chapters fail because of qmlRegisterType, while
> the last one  gives: "
> Traceback (most recent call last):
>   File
> "/foo/pyside-pyside-examples/examples/declarative/extending/chapter5-listpr
> operties/listproperties.py", line 80, in <module>
>     class PieChart (QDeclarativeItem):
>   File
> "/foo/pyside-pyside-examples/examples/declarative/extending/chapter5-listpr
> operties/listproperties.py", line 99, in PieChart
>     slices = ListProperty(PieSlice, appendSlice)
> NameError: name 'ListProperty' is not defined
> "
> 
> please let me know if you need more information
> 
> best,
> -d

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia



      
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to