Blender Installation Issues

Hi, I am trying to use the Blender Connector, but get this error code when I try and press ‘load users projects’:

Any help would be appreciated.

Starting module dependency installation
C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\python.exe
Using connector installation path C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2
Installing Speckle dependencies to C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2
Successfully installed dependencies
Successfully found dependencies
Repository data: C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org not found, sync required!
SpeckleBlender: Loading users...
SpeckleBlender: Authenticated 1/1 accounts
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\properties\scene.py", line 190, in user_update_hook
    bpy.ops.speckle.load_user_streams()  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109

File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\properties\scene.py", line 189, in user_update_hook
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\streams.py", line 631, in execute
    self.create_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\streams.py", line 645, in create_stream
    bpy.ops.speckle.load_user_streams()
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109

Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\streams.py", line 631, in execute
    self.create_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\streams.py", line 645, in create_stream
    bpy.ops.speckle.load_user_streams()
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109```

Hey @Tom.Sargent,

Seems like there is an issue connecting to the server. It could happen due to an expired token or trying to reach a deprecated server.

So here is the debugging steps:

  1. Open Speckle Blender Connector and click refresh button.

  1. Open Blender’s scripting window.

  1. Copy and paste the following code snippet and run the script.
import bpy_speckle
import bpy
from bpy_speckle.clients import speckle_clients


client = speckle_clients[int(bpy.context.scene.speckle.active_user)]

streams = client.stream.list(stream_limit=10)

print(streams)

You should see the output in the integrated console. If not it should be in System Console.

In my case, this code is printing my streams. It could return an exception in your case, could you please send the output to us? So we can spot the problem :slight_smile:

1 Like

Hi, thanks for the above. I have run through these steps and this was what appeared in the console:

Starting module dependency installation
C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\python.exe
Using connector installation path C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2
Skipped installing dependencies
Successfully found dependencies
SpeckleBlender: Loading users...
SpeckleBlender: Authenticated 1/1 accounts
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109
Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\properties\scene.py", line 190, in user_update_hook
    bpy.ops.speckle.load_user_streams()  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 176, in execute
    self.load_user_stream(context)
  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\operators\users.py", line 202, in load_user_stream
    for i, s in enumerate(streams):
                ^^^^^^^^^^^^^^^^^^
TypeError: 'SpeckleException' object is not iterable
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109

File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\properties\scene.py", line 189, in user_update_hook
\Text:8: DeprecationWarning: Call to deprecated method list. (Stream/Branch/Commit API is now deprecated, Use the new Project/Model/Version API functions in Client}) -- Deprecated since version 2.20.
SpeckleException: Failed to execute the GraphQL stream request. Inner exception: HTTPSConnectionPool(host='app.speckle.systems', port=443): Max retries exceeded with url: /graphql (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
\Text:8: DeprecationWarning: Call to deprecated method list. (Stream/Branch/Commit API is now deprecated, Use the new Project/Model/Version API functions in Client}) -- Deprecated since version 2.20.
SpeckleException: Failed to execute the GraphQL stream request. Inner exception: HTTPSConnectionPool(host='app.speckle.systems', port=443): Max retries exceeded with url: /graphql (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

Thought as well it may be worth mentioning this is in Blender 4.2.3

The unable to get local issuer certificate issue indicates that, certificate presented by app.speckle.sytems is not a trusted certificate which means there could be a proxy server in your network. Are you using any kind of cluster, VPN or maybe you’re within a corporate network?

Trying it from a different network could verify it.

I am logged on through a corporate network/VPN so it must be getting blocked here. I can get in touch with the IT team to see if they can unblock it.

Thanks for your help, and i’ll get back to you once i’ve got in touch with IT!

2 Likes

Hey @dogukan! I thought I would have a go using the early version of the next-gen connector to see if it had the same error. This is the error code I received (it looks to be the same issue?):

Starting module dependency installation

C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\python.exe

Using connector installation path C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2

Skipped installing dependencies

Successfully found dependencies

Error: SpeckleException: Failed to execute the GraphQL active_user request. Inner exception: HTTPSConnectionPool(host='app.speckle.systems', port=443): Max retries exceeded with url: /graphql (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

Traceback:

  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\connector\utils\project_manager.py", line 46, in get_projects_for_account

    projects = client.active_user.get_projects(limit=10, filter=filter).items

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2\specklepy\api\resources\current\active_user_resource.py", line 47, in get_projects

    return super().get_projects(limit=limit, cursor=cursor, filter=filter)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2\specklepy\core\api\resources\current\active_user_resource.py", line 129, in get_projects

    response = self.make_request_and_parse_response(

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2\specklepy\core\api\resource.py", line 68, in make_request_and_parse_response

    raise SpeckleException(
 
Info: Load button clicked at (1440, 869)

Error: SpeckleException: Failed to execute the GraphQL active_user request. Inner exception: HTTPSConnectionPool(host='app.speckle.systems', port=443): Max retries exceeded with url: /graphql (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

Traceback:

  File "C:\Users\UKTES048\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\bpy_speckle\connector\utils\project_manager.py", line 46, in get_projects_for_account

    projects = client.active_user.get_projects(limit=10, filter=filter).items

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2\specklepy\api\resources\current\active_user_resource.py", line 47, in get_projects

    return super().get_projects(limit=limit, cursor=cursor, filter=filter)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2\specklepy\core\api\resources\current\active_user_resource.py", line 129, in get_projects

    response = self.make_request_and_parse_response(

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\UKTES048\AppData\Roaming\Speckle\connector_installations\Blender 4.2\specklepy\core\api\resource.py", line 68, in make_request_and_parse_response

    raise SpeckleException(
 

Hey Tom,
Yes, still the certification issue. Your IT team should be able to solve it :slight_smile:

1 Like

I also have again problems installing Speckle AddOn. (on Mac !?)

Everything was ok with up to Version 2.21.1. I had it installed, activated and working in Blender official, 4.3, 4.4 and 4.5 Alpha ! (likely manual copy of bpy-speckle folder)

But when I upgraded to 2.22.0 the problems started.
I saw that - again - Speckle Manager does not install into Blender 4.4 or 4.5 Settings Folder, both were still at 2.21.1. So as always I copied the 2.22.0 bpy-speckle over manually and restarted Blenders.
But I could no more activate the AddOns :
Cannot automatically ensure Speckle dependencies. Please try restarting the host application Blender 4.x!
(Where a restart did not help in any way …)

Going back to version 2.21.1 in Manager did not help, from that point I could no more activate any Speckle AddOn Versions in any Blender installations.

As Blender 4.4 got official at that time, I installed it over former official version 4.3.
Now I realized that Speckle does not install into any of my Blender installations. Trying to be able to go on trouble shooting I duplicated one of Blender’s Settings Folders, renamed it 4.2, so I could force Manager to install at least one AddOn.

If I go to hidden /Users/User/.config/Speckle/ Folder :
/connector_installations/ shows 2 Folders, for “Blender 4.4” and “Blender 4.5”, including installation content.
But /installer/blender.jason only logs a single installation, to my (orphan) Blender 4.2 SettingsFolder.

So beside if Speckle AddOns does really install/work in latest (!) official Blender versions or not, please do install Speckle AddOn automatically into ANY Blender Settings Folder available.
No matter which version, no matter if Alpha, Beta, RC, WIP or official Versions.
Or do it at least when a user has “Show pre-releases” activated.
(Maybe leave out installing/upgrading older/legacy versions of Blender installation, not compatible with later Speckle versions)

I am pretty sure that no standard Speckle User would be harmed when Speckle installs into Blender Pre Releases, as a standard Speckle User usually may not install/use/test any Blender Pre Releases anyway.
And those who do install Alphas may not complain if Speckle AddOn does not work in an Alpha Blender Version - but want to test that.

Hmmh,
now I even booted the PC.
Lately I tried a v3 Blender Alpha connector. I was able to install but not able to activate it. (Similar error message as I get on my Mac). Tried again today with a few versions later Alpha. Same result. Can’t activate the AddOn.

I have only one “official” Blender version installed on Windows, from and updated by Microsoft Store. Today it was updated to 4.4.1 (current official version would be 4.4.3)
So I tried to install an official Connector from Manager, 2.23 in this case. But had to realize again that Manager does not install into Blender 4.4.
As I still had some orphaned older Blender Settings Folders, I was again able to copy the “bpy_speckle” from a Blender 4.3 Setting Folder over to my current Settings.
And at least I was able to activate it and it works.

But I still think it is not a good idea to restrict Connector installation to official Blender installations only, at least as long as the Manager is not maintained and kept current.

(I understand that there is a large target group, but hope that Speckle will not tend into a Autodesk/Microsoft only environment)

Hey @zoomer ,

Next-Gen Blender connector is not released for Mac but you should be able to use it by manually copy pasting into relevant folders.

Thank you.
Somehow I thought a Windows version would not be compatible and have never tried :slight_smile:

Not much hope v3 will work on Mac when I can’t even activate it on Windows. But I will try of course next time I boot that PC.
(Speckle website only allows v3 download when you browse from a Windows OS, not from Mac …)
EDIT
No, I can download it ok. Just that I need to copy the folder over manually from a PC installation anyway …

OK, I tried to install v3 (alpha 6 as last time) on Windows another time.

I even had it installed and it was activated successfully for the first time. But there was no Speckle Tab in Blender though.

So I tried to install it a few time again but was never again able to activate v3. So I copied the bpy_speckle (for my test on Mac) and decided to revert Speckle back to 2.23 on Windows.
Unfortunately I was also no more able to activate the v2 connector now …

And I tried to copy bpy-speckle into my Mac Settings. Can’t activate as expected.
But error messages hint that in v3 there would be more files needed to be copied than just bpy-speckle folder.
I think it also misses e.g. some Python voodoo in Blender’s “modules” folder …