Installing qgis plugin error

Hi there,

Really interested in the pipeline between qgis and 3d software, for realistic surroundings.

Installing the speckle plugin is a problem:
I get the following bug report and dont know how to procede.

Hope you guys can shed a light on this.

Br NIels

Kon plug-in ‘speckle-qgis’ niet laden wegens een fout bij het aanroepen van de methode classFactory()

AttributeError: module ‘speckle-qgis’ has no attribute ‘classFactory’

Traceback (most recent call last):
File “C:\PROGRA~1/QGIS32~2.0/apps/qgis/./python\qgis\utils.py”, line 423, in _startPlugin
plugins[packageName] = package.classFactory(iface)
AttributeError: module ‘speckle-qgis’ has no attribute ‘classFactory’

Python versie: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS versie: 3.28.0-Firenze Firenze, ed3ad0430f3

Python pad:

  • C:/PROGRA~1/QGIS32~2.0/apps/qgis/./python
  • C:/Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/PROGRA~1/QGIS32~2.0/apps/qgis/./python/plugins
  • C:\Program Files\QGIS 3.28.0\bin\python39.zip
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\DLLs
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib
  • C:\Program Files\QGIS 3.28.0\bin
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages\win32
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages\Pythonwin
  • C:/Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python

We pushed a new version to the QGIS plug-in repository this week. It should be approved soon. In the meantime it is possible to install manually by cloning our repo code into the plugins folder

Hi jonathon,

I tried the steps in the help instruction, but the same popup comes back

Kon plug-in ‘speckle-qgis-main’ niet laden wegens een fout bij het aanroepen van de methode classFactory()

ModuleNotFoundError: No module named ‘specklepy’

Traceback (most recent call last):
File “C:\PROGRA~1/QGIS32~2.0/apps/qgis/./python\qgis\utils.py”, line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\speckle-qgis-main_init
.py", line 51, in classFactory
from speckle_qgis import SpeckleQGIS
File “C:\PROGRA~1/QGIS32~2.0/apps/qgis/./python\qgis\utils.py”, line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “C:\Users\Niels\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\speckle_qgis.py”, line 24, in
from specklepy.api import operations
File “C:\PROGRA~1/QGIS32~2.0/apps/qgis/./python\qgis\utils.py”, line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named ‘specklepy’

Python versie: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS versie: 3.28.0-Firenze Firenze, ed3ad0430f3

Python pad:

  • C:\Users\Niels\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main
  • C:/PROGRA~1/QGIS32~2.0/apps/qgis/./python
  • C:/Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/PROGRA~1/QGIS32~2.0/apps/qgis/./python/plugins
  • C:\Program Files\QGIS 3.28.0\bin\python39.zip
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\DLLs
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib
  • C:\Program Files\QGIS 3.28.0\bin
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages\win32
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS32~2.0\apps\Python39\lib\site-packages\Pythonwin
  • C:/Users/Niels/AppData/Roaming/QGIS/QGIS3\profiles\default/python

Does it have to do with the length of the strings in phyton? I had the problem before. Could my phyton installation be corrupt?

br

Running the install from the plugin repository gives the exact same message on Mac and PC and is reproducible.

I have quickly recorded a video of the manual install method that seems to solve it in Mac,PC and multiple versions of QGIS.

Do make sure your plugins folder has no trace of speckle-qgis before you download from the repo.

Looks like I could install Speckle’s updated QGIS Plugin now.
(M1 Mac Mini Ventura 13.1 PB)

I just do not know how QGIS really works and what I could do with it for now.
But I was able to somehow log in and found my (only so far) Speckle Stream :slight_smile:

2 Likes

Why not take part in the #30DayMapChallenge to learn something new!

Priorities :slight_smile:

Nearly year’s end means 2 CAD App Upgrades, new macOS.
Blender learning anyway, and Speckle and BlenderBIM AddOn, …

Yes, overall I am still looking for ways to find suitable DTMs for
my project’s sites in general and still fight with geolocation,
but there is sooo much to do …
(I will keep QGIS on my list anyway)

@Niels_van_der_Eb Were you able to resolve this plugin install error with the guide we posted?

In case you didn’t, you may be please to hear that the fixed version has been activated in the QGIS Plugin repository.

You can now install using the Plugin Manager.

1 Like

Can’t speak for Niels …

But I also experienced the installation error with the previous version.
As I heard from the update I tried again today again, I can confirm that
installation was possible.

This meant …

  • open QGIS
  • update/refresh the Speckle Plugin in QGIS Plugin Manager
  • reload QGIS
  • trying to activate SPECKLE AddOn (about 20 minutes)
  • reload QGIS
  • trying again to connect to Speckle
1 Like