Skip to content

name 'TO_VECTOR' is not defined : CSP Error #14

@mwaseem75

Description

@mwaseem75

Describe the bug
Getting the error while executing the below python code:
import iris
iris.sql.exec("DELETE FROM VectorLab")
stmt = iris.sql.prepare("INSERT INTO VectorLab (description,description_vector) VALUES (?, ?)")
for index, row in df.iterrows():
rs = stmt.execute(row['description'], TO_VECTOR(str(row['description_vector'])))

The error is:
CSPEvent+10^%CSP.Broker.1 *%Exception.PythonException 8 <class 'NameError'>:
iris version/image

python version
Is it a python3 or irispython. Not sure

To Reproduce
Steps to reproduce the behavior:
Just execute the above statement

Expected behavior
It should support to_vector() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions