[Qgis-developer] QGIS Canvas API : Hello Word

Michael musset mickamusset at gmail.com
Sat Feb 6 23:27:05 EST 2010


well, i've something here :
/usr/lib/pymodules/python2.6/PyQt4/uic

and the file pyuic.py exist

but how i can make the link to that ?

the file /usr/bin/pyuic4 looks like that :
#!/usr/bin/env python
# there's no main function, so just import the module
import PyQt4.uic.pyuic


so what is wrong ?


On Sun, Feb 7, 2010 at 4:46 AM, Michael musset <mickamusset at gmail.com>wrote:

> if it can help :
>
> Updating goal targets....
> Considering target file
> `python/plugins/plugin_installer/CMakeFiles/pluginstaller.dir/build'.
>  File `python/plugins/plugin_installer/CMakeFiles/pluginstaller.dir/build'
> does not exist.
>   Considering target file `pluginstaller'.
>    File `pluginstaller' does not exist.
>     Considering target file
> `python/plugins/plugin_installer/CMakeFiles/pluginstaller'.
>      File `python/plugins/plugin_installer/CMakeFiles/pluginstaller' does
> not exist.
>      Looking for an implicit rule for
> `python/plugins/plugin_installer/CMakeFiles/pluginstaller'.
>      Trying pattern rule with stem `pluginstaller'.
>      Trying implicit prerequisite
> `python/plugins/plugin_installer/CMakeFiles/pluginstaller,v'.
>      Trying pattern rule with stem `pluginstaller'.
>      Trying implicit prerequisite
> `python/plugins/plugin_installer/CMakeFiles/RCS/pluginstaller,v'.
>      Trying pattern rule with stem `pluginstaller'.
>      Trying implicit prerequisite
> `python/plugins/plugin_installer/CMakeFiles/RCS/pluginstaller'.
>      Trying pattern rule with stem `pluginstaller'.
>      Trying implicit prerequisite
> `python/plugins/plugin_installer/CMakeFiles/s.pluginstaller'.
>      Trying pattern rule with stem `pluginstaller'.
>      Trying implicit prerequisite
> `python/plugins/plugin_installer/CMakeFiles/SCCS/s.pluginstaller'.
>      No implicit rule found for
> `python/plugins/plugin_installer/CMakeFiles/pluginstaller'.
>       Considering target file
> `python/plugins/plugin_installer/ui_qgsplugininstallerbase.py'.
>        File `python/plugins/plugin_installer/ui_qgsplugininstallerbase.py'
> does not exist.
>         Considering target file
> `../python/plugins/plugin_installer/qgsplugininstallerbase.ui'.
>          Looking for an implicit rule for
> `../python/plugins/plugin_installer/qgsplugininstallerbase.ui'.
>          Trying pattern rule with stem `qgsplugininstallerbase.ui'.
>          Trying implicit prerequisite
> `../python/plugins/plugin_installer/qgsplugininstallerbase.ui,v'.
>          Trying pattern rule with stem `qgsplugininstallerbase.ui'.
>          Trying implicit prerequisite
> `../python/plugins/plugin_installer/RCS/qgsplugininstallerbase.ui,v'.
>          Trying pattern rule with stem `qgsplugininstallerbase.ui'.
>          Trying implicit prerequisite
> `../python/plugins/plugin_installer/RCS/qgsplugininstallerbase.ui'.
>          Trying pattern rule with stem `qgsplugininstallerbase.ui'.
>          Trying implicit prerequisite
> `../python/plugins/plugin_installer/s.qgsplugininstallerbase.ui'.
>          Trying pattern rule with stem `qgsplugininstallerbase.ui'.
>          Trying implicit prerequisite
> `../python/plugins/plugin_installer/SCCS/s.qgsplugininstallerbase.ui'.
>          No implicit rule found for
> `../python/plugins/plugin_installer/qgsplugininstallerbase.ui'.
>          Finished prerequisites of target file
> `../python/plugins/plugin_installer/qgsplugininstallerbase.ui'.
>         No need to remake target
> `../python/plugins/plugin_installer/qgsplugininstallerbase.ui'.
>        Finished prerequisites of target file
> `python/plugins/plugin_installer/ui_qgsplugininstallerbase.py'.
>       Must remake target
> `python/plugins/plugin_installer/ui_qgsplugininstallerbase.py'.
> [ 93%] Putting child 0x09174c60
> (python/plugins/plugin_installer/ui_qgsplugininstallerbase.py) PID 23899 on
> the chain.
> Live child 0x09174c60
> (python/plugins/plugin_installer/ui_qgsplugininstallerbase.py) PID 23899
> Reaping winning child 0x09174c60 PID 23899
> Generating ui_qgsplugininstallerbase.py
> Live child 0x09bdc990
> (python/plugins/plugin_installer/CMakeFiles/pluginstaller.dir/all) PID 23898
>
> Live child 0x09174c60
> (python/plugins/plugin_installer/ui_qgsplugininstallerbase.py) PID 23900
> Reaping winning child 0x09174c60 PID 23900
> Live child 0x09174c60
> (python/plugins/plugin_installer/ui_qgsplugininstallerbase.py) PID 23902
> Traceback (most recent call last):
>   File "/usr/bin/pyuic4", line 3, in ?
>     import PyQt4.uic.pyuic
> ImportError: No module named PyQt4.uic.pyuic
> Reaping losing child 0x09174c60 PID 23902
> make[2]: *** [python/plugins/plugin_installer/ui_qgsplugininstallerbase.py]
> Error 1
> Removing child 0x09174c60 PID 23902 from chain.
> Reaping losing child 0x09bdc990 PID 23898
> make[1]: ***
> [python/plugins/plugin_installer/CMakeFiles/pluginstaller.dir/all] Error 2
> Removing child 0x09bdc990 PID 23898 from chain.
> Reaping losing child 0x0a01f3d0 PID 21183
> make: *** [all] Error 2
> Removing child 0x0a01f3d0 PID 21183 from chain.
>
>
>
> On Sat, Feb 6, 2010 at 8:45 PM, Michael musset <mickamusset at gmail.com>wrote:
>
>> and my ccmake looks like that :
>>
>>  BINDINGS_GLOBAL_INSTALL
>> OFF
>>
>>  BISON_EXECUTABLE
>> /usr/bin/bison
>>
>>  EXPAT_INCLUDE_DIR
>> /usr/include
>>
>>  EXPAT_LIBRARY
>> /usr/lib/libexpat.so
>>
>>  FLEX_EXECUTABLE
>> /usr/bin/flex
>>
>>  GDAL_CONFIG
>> /usr/bin/gdal-config
>>
>>  GDAL_CONFIG_PREFER_FWTOOLS_PAT
>> /bin_safe
>>
>>  GDAL_CONFIG_PREFER_PATH
>> /bin
>>
>>  GDAL_INCLUDE_DIR
>> /usr/include/gdal
>>
>>  GDAL_LIBRARY                     /usr/lib/libgdal1.5.0.so
>>
>>  GEOS_CONFIG
>> /usr/bin/geos-config
>>
>>  GEOS_CONFIG_PREFER_PATH
>> /bin
>>
>>  GEOS_INCLUDE_DIR
>> /usr/include
>>
>>  GEOS_LIBRARY
>> /usr/lib/libgeos_c.so
>>
>>  GEOS_LIB_NAME_WITH_PREFIX
>> -lgeos_c
>>
>>  GRASS_PREFIX
>>
>>  GSL_CONFIG
>> /usr/bin/gsl-config
>>
>>  GSL_CONFIG_PREFER_PATH
>> /bin
>>
>>  GSL_EXE_LINKER_FLAGS
>> -Wl,-rpath,
>>
>>  PEDANTIC
>> OFF
>>
>>  POSTGRESQL_PREFIX
>>
>>  POSTGRES_CONFIG
>> /usr/bin/pg_config
>>
>>  POSTGRES_CONFIG_PREFER_PATH
>> /bin
>>
>>  POSTGRES_INCLUDE_DIR
>> /usr/include/postgresql
>>
>>  POSTGRES_LIBRARY
>> /usr/lib/libpq.so
>>
>>  PROJ_INCLUDE_DIR
>> /usr/include
>>
>>  PROJ_LIBRARY
>> /usr/lib/libproj.so
>>
>>  PYRCC4_PROGRAM
>> /usr/bin/pyrcc4
>>
>>  PYTHON_LIBRARY                   /usr/lib/libpython2.6.so
>>
>>  PYUIC4_PROGRAM
>> /usr/bin/pyuic4
>>
>>  QT_QMAKE_EXECUTABLE
>> /usr/bin/qmake
>>
>>  QWT_INCLUDE_DIR
>> QWT_INCLUDE_DIR-NOTFOUND
>>
>>  QWT_LIBRARY
>> QWT_LIBRARY-NOTFOUND
>>
>>  SVNVERSION                       /usr/bin/svnversion
>>
>>
>>
>> On Sat, Feb 6, 2010 at 8:11 PM, Michael musset <mickamusset at gmail.com>wrote:
>>
>>> hey again,
>>>
>>>
>>> well now i'm trying to compile myself qgis with following this tutorial :
>>> http://linfiniti.com/2009/11/compiling-qgis-under-ubuntu-9-10/
>>>
>>>
>>> when i'm trying to compile qgis 'm getting this error :
>>>  ImportError: No module named PyQt4.uic.pyuic
>>>
>>>
>>>  but i've already these package : python-qt4 python-qt4-dev
>>> pyqt4-dev-tools
>>>
>>>
>>> here is other information :
>>>
>>>
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "/usr/bin/pyuic4", line 3, in ?
>>>     import PyQt4.uic.pyuic
>>> ImportError: No module named PyQt4.uic.pyuic
>>> make[2]: *** [python/plugins/plugin_
>>> installer/ui_qgsplugininstallerbase.py] Error 1
>>> make[1]: ***
>>> [python/plugins/plugin_installer/CMakeFiles/pluginstaller.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> micka at micka-laptop:~/dev/cpp/qgis/build$ whereis python
>>> python: /usr/bin/python2.6 /usr/bin/python2.5 /usr/bin/python
>>> /usr/bin/python2.6-dbg-config /usr/bin/python2.4 /usr/bin/python2.4-config
>>> /usr/bin/python2.6-dbg /usr/bin/python2.6-config /etc/python2.6
>>> /etc/python2.5 /etc/python /etc/python2.4 /usr/lib/python2.6
>>> /usr/lib/python3.0 /usr/lib/python2.5 /usr/lib/python2.4
>>> /usr/local/bin/python /usr/local/bin/python2.4 /usr/local/lib/python2.6
>>> /usr/local/lib/python2.5 /usr/local/lib/python2.4 /usr/include/python2.6
>>> /usr/include/python2.5 /usr/include/python2.5_d /usr/include/python2.4
>>> /usr/include/python2.6_d /usr/share/python /usr/share/man/man1/python.1.gz
>>>
>>>
>>>
>>>
>>> micka at micka-laptop:~/dev/cpp/qgis/build$ which python
>>> /usr/local/bin/python
>>>
>>>
>>>
>>> what is wrong ? thx for your help ^^ ( ubuntu 9.10 )
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sat, Feb 6, 2010 at 7:03 PM, Anne Ghisla <a.ghisla at gmail.com> wrote:
>>>
>>>> On Sat, Feb 6, 2010 at 7:57 PM, Michael musset <mickamusset at gmail.com>
>>>> wrote:
>>>> > Hi,
>>>> >
>>>> > i'm trying to follow this tutorial :
>>>> > http://blog.qgis.org/node/10
>>>> >
>>>> > and when i tape the command cmake .. i'm getting this error :
>>>> >
>>>> > CMake Error: The source directory "/home/micka" does not appear to
>>>> contain
>>>> > CMakeLists.txt.
>>>> > Specify --help for usage, or press the help button on the CMake GUI.
>>>>
>>>> Hi Michael,
>>>>
>>>> the code snippet misses
>>>>
>>>> cd build/
>>>>
>>>> before running cmake. cmake .. means that CMakeLists.txt will be
>>>> searched in the parent directory (correct me if wrong).
>>>>
>>>> hope this helps and happy hacking :)
>>>> Anne
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100207/e94b5700/attachment-0001.html


More information about the Qgis-developer mailing list