Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1070 closed bug (fixed)

Plugin Manager can't find plugin directory

Reported by: tgwong Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: C++ Plugins Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: Awaiting user input: no

Description

Used Plugin Installer to download a python plugin from repository into the QGIS-created directory. Plugin Manager then can't find that directory. There seems to be an extra slash in the path...

Traceback (most recent call last):

File "", line 3, in ? File "/Users/Ted/.qgispython/plugins/geoprocessing/init.py", line 3, in ?

from geoprocessing import Geoprocessing

ImportError: cannot import name Geoprocessing

Change History (5)

comment:1 by wonder, 16 years ago

Does this happen with all plugins or with Geoprocessing plugin?

(the extra slash in the path shouldn't have any effect)

comment:2 by tgwong, 16 years ago

Happens with any plugin in that directory.

comment:3 by lhbecker, 15 years ago

Platform: OS XWindows

This happens with both the GeoProcessing, FindByAttr and SpatialOperations plugins on my Windows Machine with Windows version of 1.0.0 preview II. I also struggled with plugins on preview I but did not pay much attention to it at that time.

Below is typical error text from pop-up window:

Couldn't load plugin geoprocessing due an error when calling its classFactory() method

Traceback (most recent call last):

File "", line 1, in File "C:/Documents and Settings/louis.becker/.qgispython/plugins\geoprocessing\init.py", line 15, in classFactory

return Geoprocessing(iface)

File "C:/Documents and Settings/louis.becker/.qgispython/plugins\geoprocessing\geoprocessing.py", line 32, in init

self.QgisVersion = str(QGis.qgisVersion)

AttributeError: qgisVersion

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

Python path: ['C:/Program Files/QGIS-Dev/./python', 'C:/Documents and Settings/louis.becker/.qgispython/plugins', 'C:/Program Files/QGIS-Dev/./python/plugins', 'C:
Program Files
QGIS-Dev
python25.zip', 'C:
Python25
Lib', 'C:
Python25
DLLs', 'C:
Python25
Lib
lib-tk', 'C:
Program Files
QGIS-Dev', 'C:
Python25', 'C:
Python25
lib
site-packages', '~/.qgis/python']

comment:4 by wonder, 15 years ago

Resolution: fixed
Status: newclosed

The original bug has been fixed already (python's module cache wasn't updated).

lhbecker: this is because those plugins have not been updated to recent changes in QGIS. These problems will go away in 1.0 that will check whether the plugin is compatible or not.

comment:5 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.