Skip to content

PicklingError using Python objects in Python Scripting Node  #6

@jensschmeink

Description

@jensschmeink

Summary

Using a Python Scripting Node, a pickling error occurs, when using an Python object.

Which software is probably the cause of the error?

Python

What is the current bug behavior?

PicklingError

What is the expected correct behavior?

Steps to reproduce

Minimum example:

grafik1

Python code in node:

class MyTestClass:
    pass
		
x = MyTestClass()

Relevant logs and/or screenshots

Leads to this error when executing node:

Traceback (most recent call last):
  File "<string>", line 5, in <module>
_pickle.PicklingError: Can't pickle <class 'CalculatorRunContext_24.MyTestClass'>: import of module 'CalculatorRunContext_24' failed

GTlab environment

(Add details to your GTlab environment. If the bug relates to a module, please also add the module and its version.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions