speckle wont load into qgis

Hi would you guys be able to help
im trying to get my Dem tif contour line maps created in qgis into revit
i have seen the QGIS to speckle plugin then to revit but the issue i have is i cannt load the plugin into QGIS
I have set iup the desktop connectors and the acount in specle but no matter which way i try i cannot get it to load correctly
I have seen that Speckle will only work upt to qgis 3.38.2 so i havelodedn this but still it will not load
details are below

my qgi version

QGIS version
3.38.1-Grenoble
QGIS code revision
3d4177afc6
Qt version
5.15.13
Python version
3.12.4
GDAL/OGR version
3.9.1
PROJ version
9.4.0
EPSG Registry database version
v11.004 (2024-02-24)
GEOS version
3.12.2-CAPI-1.18.2
SQLite version
3.45.1
PDAL version
2.6.3
PostgreSQL client version
16.2
SpatiaLite version
5.1.0
QWT version
6.2.0
QScintilla2 version
2.14.1
OS version
Windows 10 Version 2009

Active Python plugins
contour
2.0.14
coordinates_converter
1.0
LAStools
2.1.1
pointsamplingtool
0.5.4
profiletool
4.2.6
quick_map_services
0.19.36
temporalprofiletool
2.1.3
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99

my qgis error meesage
qgis-main’ due to an error when calling its classFactory() method

AssertionError: path not found C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\plugin_utils\requirements.txt
Traceback (most recent call last):
File “C:\PROGRA~1/QGIS 3.38.1/apps/qgis/./python\qgis\utils.py”, line 426, in startPlugin
plugins[packageName] = package.classFactory(iface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/Andyj/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\speckle-qgis-main_init
.py", line 30, in classFactory
ensure_dependencies(“QGIS”)
File “C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\plugin_utils\installer.py”, line 231, in ensure_dependencies
install_dependencies(host_application)
File “C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\plugin_utils\installer.py”, line 209, in install_dependencies
install_requirements(host_application)
File “C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\plugin_utils\installer.py”, line 167, in install_requirements
requirements = get_requirements_path().read_text().replace(“\n”, “”)
^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\plugin_utils\installer.py”, line 147, in get_requirements_path
assert path.exists(), f"path not found {path}"
^^^^^^^^^^^^^
AssertionError: path not found C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main\plugin_utils\requirements.txt

Python version: 3.12.4 (main, Jun 10 2024, 12:48:35) [MSC v.1938 64 bit (AMD64)]
QGIS version: 3.38.1-Grenoble Grenoble, 3d4177afc6

Python Path:
C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\speckle-qgis-main
C:\Users/Andyj/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools
C:\Users/Andyj/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\contour
C:/PROGRA~1/QGIS 3.38.1/apps/qgis/./python
C:/Users/Andyj/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Andyj/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS 3.38.1/apps/qgis/./python/plugins
C:\PROGRA~1\QGIS 3.38.1\apps\grass\grass83\etc\python
C:\Users\Andyj\Documents
C:\Program Files\QGIS 3.38.1\bin\python312.zip
C:\PROGRA~1\QGIS 3.38.1\apps\Python312\DLLs
C:\PROGRA~1\QGIS 3.38.1\apps\Python312\Lib
C:\Program Files\QGIS 3.38.1\bin
C:\PROGRA~1\QGIS 3.38.1\apps\Python312
C:\PROGRA~1\QGIS 3.38.1\apps\Python312\Lib\site-packages
C:\PROGRA~1\QGIS 3.38.1\apps\Python312\Lib\site-packages\win32
C:\PROGRA~1\QGIS 3.38.1\apps\Python312\Lib\site-packages\win32\lib
C:\PROGRA~1\QGIS 3.38.1\apps\Python312\Lib\site-packages\Pythonwin
C:/Users/Andyj/AppData/Roaming/QGIS/QGIS3\profiles\default/python
H:/iCloudDrive/RPAS Filing Cabinet/J file RPAS/job 60 buildwas school

im hoping its something simple but still learning the ropes but this is a crutial part of what we are trying to do with a work project

( i need a topo solid in revit with the contours / land mass for the plan we are creating

you assitance would be apprecaited.
thanks in advance
Andy

1 Like

Hi @andy_bowden ! Could you describe how did you install the plugin: via Speckle Desktop Manager or QGIS Plugin Manager, and which Speckle plugin version did you use? I find it suspicious that the folder with the plugin ('C:\Users\Andyj\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins') is called “speckle-qgis-main” (it is meant to be “speckle-qgis”) :thinking:

P.S. The Python path for Speckle libraries is set wrong as well, so there is something strange going on…

Hi katrina
I download the zip file then loaded it into qgis via the load plugin by zip

Its interesting you mention the file locations
I have loaded qgis straight out of the box so to speak but thinks seem to be in the user folder and i think but not sure this somehow is linked to one drive
Please excuss my poss lack of knowledge im working mynway through it slowly

I downloaded the latest speckle plugin form the speckle web site could it be that is named wrong
Also i could uninstall everything and could set it to a drive thats stand alone would this assit
Sorry for the many questions but its frustrating for what may be a simple user error by my self
Thank you for your responce so far
Sincerely
Andy

I see! This is not the way of installation we have extensively tested. The easiest way would be to uninstall it, and just use QGIS Plugin Manager and search for Speckle. Or, after installing Speckle Desktop Manager (which you would need anyway to manage your accounts), you can install Speckle plugin from there, even the latest yet unreleased versions:
image

Hi katrina
Im with you now

So i will completely remove speckle from qgis
Would it be easist to just use uninstall plugin from inside qgis
Then i will go vack to the speckle desktop and reload the qgis plugin from there then intal via the drop down inside qgis.
Its late uk time here so i will do this in the morning and update this post with the results if you dont mind,
Again thank you so far for the assistance and i will get back with an update shortly
Sincerely
Andy

1 Like

Hi Katrina after reading your post again I looked into where the software is located and found because I just downloaded multiple qgis versions I had 4 different versions
So I deleted them all and installed 3.4.1 then went to the speckle manager and tried to load each version of the plug-in until it qgis was compatable then tried it by it would not load so I did a reboot then tried again and qgis opened then went to install plugin and activated speckle the dos screen came up but I had task manager open to see if it crashed or not which it did not after a short while it loaded and is working fine
I did the same on the big pc and it worked straight away thank you for your help now I just need to get my contour map into revit thank you again though we are almost there
Sincerely
Andy

Sorry that should read 3.34.1

Thanks for explaining the process!
Just my 2 cents: it is not recommended to go for older versions of either software as some past bugs might be still present there and performance not yet optimized. The best combo usually is the LTR version of QGIS (currently QGIS 3.34.13 ‘Prizren’) and the latest available version of Speckle connector.

Good luck and let us know if you experience any more issues!

Hi Katrina
I have now managed to get my dem into qgis and into speckle as a full model
I followed your steps referance centreing the model for revit
i tried to import it into revit but it does not show in revit
have i missed a step

Link below
https://app.speckle.systems/projects/d5300dd89f/models/e3f22c401c

im so close to achieving what we are after but its the final step i have not got at the moment
any ideas

thanks
sincerely
Andy

Hi Katrina
I think i see the problem the plugin for revit only supports up to revit 2023 we are operating revit 2024 and 2025 could this be the issue.
so close but urr
does anyone have revit 2023 installed and can install it and save it as an RVT or RVA migh try dwg ? you thought would be apprecated thanks in adviace sincerely Andy

Hi @andy_bowden ! Looking at your link, I think the problem might be the old object structure in QGIS plugin. It was fixed last month, please try to send your data using the latest Speckle plugin version from Speckle Manager :raised_hands: You might need to install the latest QGIS LTR to make it work

HI katrina im running QGIS

QGIS version
3.34.13-Prizren
QGIS code revision
222b5995
Qt version
5.15.13
Python version
3.12.7
GDAL/OGR version
3.9.3
PROJ version
9.5.0
EPSG Registry database version
v11.016 (2024-08-31)
GEOS version
3.13.0-CAPI-1.19.0
SQLite version
3.46.1
PDAL version
2.8.1
PostgreSQL client version
16.2
SpatiaLite version
5.1.0
QWT version
6.3.0
QScintilla2 version
2.14.1
OS version
Windows 10 Version 2009

Active Python plugins
contour
2.0.14
quick_map_services
0.19.36
speckle-qgis
2.20.0
TomBio
3.4.4
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99

when i look for the qgis download for the LTR version it says this one is It ???
no if you remember we had issues at the beginning as i used a previous version of Speckle connector.
so this may be the issue.

My plan then i will find the latest version of QGIIS LTR if this one is not it then add the correct connector and see if this fixes things???
I will keep trying thank you and i will keep you updated sincerely
Andy

Your current QGIS version is correct! You just need to install the latest Speckle plugin version from Speckle Desktop Manager :wink:

Hi Katryna

I have followed all your instructions and firslty this is what i have

Speckle on 2.20 link https://app.speckle.systems/projects/04aaa112f4/models/01ada1f0c1

speckle 2.20.2 https://app.speckle.systems/projects/7457d9cf53/models/9a6cf66532

In speckle 2.20 this will load into both my pc and my Laptop

2.20.2 is now giving a code 5 error message on my laptop so im trying to work that out at the momentr as it would not load
but this is with my main PC

things i noted in the speckle previous you from the manager you can now see a preview in 2.20.0 but it wont load intro revit
in 2.20.2 theres an error
also if you look at the elevations now there not showing true elevation 2.200.2 but other numbers but in the attribute table there are still the same elevatiosn.

Im a little lost now and begining to wonder if this is the right way to go it should not be this difficult

would you be kind enough to adivse what is wrong or if there is a beeter way of doing this
thanks
sincerely
andy

Sorry to hear it is more difficult that it should be. The error 5 (“access error” in the browser, right?) has no connection with the plugin. It means that you don’t have permissions to view the project. Please check that you are logged in with the same credentials as the ones you used to send the data from QGIS.

P.S. please share the screenshots of the “code 5 error message”

hi Katryna I will send them when working from home later
any ideas on the 2.20.2 not working as it should on the maiun PC
i did this time get a message saying recieved in revit
But i cannot see it in any veiw 3d or other its just bnot there unless i han missing something
sincerely
Andy

it would help if I could see the screenshots of the errors and description of the steps that happened before the error (I was logged into account X, clicked Send in QGIS and got the error Y (screenshot).

Also, I cannot see your data in the URLs that you shared above because the projects are not public. I can try to replicate the issue in Revit if you make them public :raised_hands:

Hi Katryna
the links are now set to sharable

here is the We transfer linke with the dem las and other relevant data we have for the site
i used british national grid onsshore for the unit meters for elevation 277000

i will send you over the screen shots when i replacate later for the error codes
sincerely
Andy

apoligies brain fail

sincerely
Andy

Hi @andy_bowden
I checked your data: the elevation seems to be alright, and everything you need is sent properly to Speckle :ok_hand:

The problem is your offsets seem to be in the wrong order (like in the screenshot below, therefore all your geometries are now about 60 kilometers away from the (0,0) point, and this is why hey cannot be seen in Revit (this is outside of the range that Revit can handle). Lat should be Y and Lon X

On Revit side, I could successfully receive QGIS Polygon data (random polygon I drew around your dataset) with setting the correct offsets :ok_hand: The Lines are still not received in Revit, I will inform Revit team to investigate :raised_hands: