Ticket #2623 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Error startin qgis-dev

Reported by: aperi2007 Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Build/Install Version: Trunk
Keywords: Cc:
Platform Version: 7 Platform: Debian
Must Fix for Release: No Awaiting user input: no

Description

After update qgis to last version trunk was appeared this error starting qgis dev

Impossibile caricare PyQGIS. Il supporto Python verrà disabilitato.

In english

"was impossible to load PyQGIS. pyton support will be disabled"

I try to uninstall all and to reinstall again but the error is again.

Traceback (most recent call last):

File "", line 1, in

ImportError?: dynamic module does not define init function (initcore)

Versione Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Versione di QGIS: 1.5.0-Trunk 'Trunk', 13226

Percorso Python: ['C:/OSGeo4W/apps/qgis-dev/./python', 'C:\\Users\\peri/.qgis/python', 'C:\\Users\\peri/.qgis/python/plugins', 'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\OSGeo4W\\apps\\gdal-16\\pymod', 'C:\\', 'C:\\OSGeo4W\\bin\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs', 'C:\\OSGeo4W\\apps\\Python25\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode']

Change History

Changed 3 years ago by lutra

  • status changed from new to closed
  • resolution set to fixed

it has already been fixed today, you'll see the effects with the next qgis-dev update with osgeo4w (tomorrow).

Reopen if after updating with the new dev release the problem shows again.

Changed 3 years ago by lucacasagrande

  • status changed from closed to reopened
  • platform changed from Windows to Debian
  • resolution fixed deleted

The same error happen with latest trunk (13354) on Ubuntu Lucid

this is the error:

Impossibile caricare PyQGIS.
Il supporto Python verrà disabilitato.

Traceback (most recent call last):
  File "", line 1, in 
ImportError: dynamic module does not define init function (initcore)

Versione Python:
2.6.5 (r265:79063, Apr 16 2010, 14:15:55) 
[GCC 4.4.3]

Versione di QGIS:
1.5.0-Trunk 'Trunk', 13354

Percorso Python:
['/usr/local/share/qgis/python', '/home/luca/.qgis/python', '/home/luca/.qgis/python/plugins', '/usr/local/share/qgis/python/plugins', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages']

Changed 3 years ago by pcav

  • priority changed from critical: causes crash or data corruption to major: does not work as expected

Sounds a stupid comment, but have you installed python-qgis_1.5.0_amd64.deb python-qgis-common_1.5.0_all.deb and dependencies (in particular python-sip4)?

Changed 3 years ago by lucacasagrande

Trying to build 1.4.0 from source, I have found the error:

SIP is required in version 4.7 or later!

The version shipped with Lucid and installed in my system is the 4.10.1. Can this be related to the sip detection as in this link:  http://www.orocos.org/forum/rtt/rtt-dev/kdl-not-detecting-sip-410-python-bindings

Bye Luca

Changed 3 years ago by lucacasagrande

  • status changed from reopened to closed
  • resolution set to fixed

I opened a specific ticket here:  https://trac.osgeo.org/qgis/ticket/2678

Note: See TracTickets for help on using tickets.