PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 917 - Missing QGeoServiceProvider and other in maemo5 SDK
: Missing QGeoServiceProvider and other in maemo5 SDK
Status: RESOLVED FIXED
Product: PySide Mobility
Classification: Unclassified
Component: Location
: 0.2.0
: PC Maemo5/Fremantle
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-05 20:05 EEST by Nicola
Modified: 2011-07-29 21:46 EEST (History)
8 users (show)

See Also:


Attachments
script that gives error loading qt mobility1.2 modules (1.33 KB, application/octet-stream)
2011-07-05 20:05 EEST, Nicola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola 2011-07-05 20:05:22 EEST
Created attachment 368 [details]
script that gives error loading qt mobility1.2 modules

Hello!
I'm filling this bus after posting on Qt forum: 
http://developer.qt.nokia.com/forums/viewthread/7373

after loading Qtmobility.Location I get a reduced set of function:
print dir(Location) gives as output
['QGeoAreaMonitor', 'QGeoCoordinate', 'QGeoPositionInfo',
'QGeoPositionInfoSource', 'QGeoSatelliteInfo', 'QGeoSatelliteInfoSource',
'QNmeaPositionInfoSource', '_Cpp_Api', '__doc__', '__file__', '__name__']

I-m using hte maemo 5 SDK based on ubuntu lucid desktop that can be downloaded
at this link:
http://tablets-dev.nokia.com/maemo-dev-env-downloads.php

On the scratchbox environment I did used extra devel to install
libqtm-12dev 1.2.0-0fn-frematle3
python-pyside 1.0.3-1maemo3
python-qtmobility 0.2.0-0maemo11

To run pyside in maemo SDK I use the following command (I found it somewhere,
but it seems to be the only way to load python 2.5)
run-standalone.sh python2.5  ./script.py

With this configuration I run the following code:
self.my_service_provider = Location.QGeoServiceProvider("nokia")
AttributeError: 'module' object has no attribute 'QGeoServiceProvider'

I'm sure I have the qt mobility 1.2 installed. I can run the qmlviewer (had to
install it) with the Map  qml element
http://doc.qt.nokia.com/qt-mobility-snapshot/declarative-location-mapviewer.html
qith this command
run-standalone.sh qmlviewer -I /opt/qtm12/imports/ mapviewer.qml
I found the option -I on this page:
http://www.developer.nokia.com/Community/Wiki/Latest_Qt_and_Qt_mobility_evaluation_on_Maemo

there is also a suggestion on using QML widgets within pyside using the
qtmobility 1.2 using the following functions:
viewer.engine().addImportPath('/opt/qtm12/imports')
viewer.engine().addPluginPath('/opt/qtm12/plugins')

I tried then to use this commands to check if I can from pyside load the aml
example. In attachment you can find the python script maemodriveQML.py
The error is:
file:///home/maemo/MyDocs/Qt_stuff/maemodrive/qml/maemodrive/mapviewer.qml:2:2:
plugin cannot be loaded for module "QtMobility.location": Cannot load library
/targets/FREMANTLE_X86/opt/qtm12/imports/QtMobility/location/libdeclarative_location.so:
(/targets/FREMANTLE_X86/opt/qtm12/imports/QtMobility/location/libdeclarative_location.so:
undefined symbol: _ZNK10QtMobility13QGeoMapObject10metaObjectEv) 
      import QtMobility.location 1.2 
      ^ 
So summarizing I have encountered two difficulties:
1) loading QtMobility.Location offers a reduced set of modules
2) using declarative I have trouble forcing to use qtm1.2 modules

Thank you very much
Nicola

PS: the following commands in python gives as output:
print QtCore.qVersion()
print QtCore.__version__
print PySide.__version__

4.7.0
4.7.0
1.0.3
Comment 1 Bruno Araujo 2011-07-14 22:20:24 EEST
At the moment QtMobility bindings are built with QtMobility 1.0.2, which is the
somewhat 'default' version available in Maemo 5:

$ apt-cache policy libqtm-dev
libqtm-dev:
  Installed: 1:1.0.2-maemo4+0m5
  Candidate: 1:1.0.2-maemo4+0m5
  Version table:
 *** 1:1.0.2-maemo4+0m5 0
        500 http://repository.maemo.org fremantle/sdk/free Packages
        100 /var/lib/dpkg/status
     1:1.0.2-maemo1 0
        500 http://repository.maemo.org fremantle/tools/free Packages

So, classes from QtMobility 1.2 are not available on the bindings at the
moment; they will be available when the bindings are updated to conform to the
QtMobility 1.2 classes.
Comment 2 Hugo Parente Lima 2011-07-14 23:34:57 EEST
So can I mark the bug as INVALID? maybe WONTFIX?
Comment 3 Bruno Araujo 2011-07-15 23:53:26 EEST
(In reply to comment #2)
> So can I mark the bug as INVALID? maybe WONTFIX?

I'd rather mark it as WAITING.
Comment 4 Bruno Araujo 2011-07-29 21:46:10 EEST
A new version of PySide-QtMobility has just been released, this time with
support to the QtMobility 1.2 API. The new version can be installed following
the instructions available in [1].

So, please verify it, and report any issues found.

[1] https://garage.maemo.org/pipermail/pymaemo-developers/2011-July/001547.html

Marking as RESOLVED FIXED.