Python Scripting - multiprocessing.spawn

Hello, I am getting this error in python for GH, what is the issue here, can someone help me?

Hi @Gowtham_Jeyabalan1,

Can you share some source code?

Thanks,

– Dale


i am using a spatial analysis python library called topologicpy, and i am trying to set dictionaries and i am getting this error

The error particularly occurs when i add the trancells parameter for transferring dictionaries

The screen capture isn’t helpful. Please upload some code or your .GH file…

– Dale

Dataset.gh (15.1 MB)
Please use this gh file

Hi @Gowtham_Jeyabalan1,

It seems to be working here in the latest Rhino 8.10 Release Candidate.

There is a Python component showing an error - not sure what that’s about.

topologicpy==0.7.42

How can I repeat what you’re seeing?

– Dale



if you add the parameter, “tranCells = True” , the window is not responding and i am getting the previously mentioned error

Hi @Gowtham_Jeyabalan1,

Yes it sure does. I see it starting a bunch of new instances of Rhino. Why?

What is “Topology.TransferDictionariesBySelectors” supposed to do?

– Dale

Yes, it does, its supposed to copy the dictionaries(key is “space_name” and value is “the space name” set on the centroids to the cells themselves.

Copy to what? All I see happening in lots of instances of Rhino are launched…

– Dale

I am trying to set a dictionary (space name like living room and bedroom) into the centroid of a room and then transfer it from the centroid to the room geometry itself. This is possible in Topologicpy, a spatial analysis python library.

i was told it uses the multiprocessing module for parallel processing in python. In windows it uses the “spawn” method to create new processes.

Hi @Gowtham_Jeyabalan1,

The “spawn” method isn’t going to work with Rhino.

You might contact the developer of the library for more details.

– Dale

okay, Thank you.