Skip to content

Error in OCR due to deprecated 'triu' #29

@holstbone

Description

@holstbone

Describe the bug
In Python 3.9, Here is the error that I have just encountered when attempting to run both the "Compute sentence embeddings" Recipe as well as the "Compute sentence similarity" Recipe:

Error in Python process: At line 4: <class 'ImportError'>: cannot import name 'triu' from 'scipy.linalg' (/data/dataiku/dss_data/code-envs/python/plugin_sentence-embedding_managed/lib64/python3.9/site-packages/scipy/linalg/init.py)

To Reproduce
Steps to reproduce the behavior:
See: https://design.analytics.ondku.net/public-webapps/support/ticket/67516

Expected behavior
No errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.
DSS 12.6.1
Python 3.9
scipy 1.13.1

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