Skip to content

Error of python file with 'import Orange' during calling from a cpp file #7067

@beambious

Description

@beambious

I'm calling a python file from a cpp file for data mining model library.
When I import 'Orange' in the python file for my trained orange model operation, an error occurs. (there is no message). About this, I experienced two strange situation (Case 1, Case 2).

  1. What's wrong?
    Case 1) An error occurs when a python file(import Orange) calling from a cpp file(include Python.h) is run.
    If there is no 'import Orange' in the python file, the cpp and python file are run well.

    Case 2) When the python file(import Orange) is running independently, the python file is run well.

  2. Question
    Is it impossible to import 'Orange' in a python file when I call it from a cpp file?

  3. What's your environment?

  • Operating system: Windows 10, Anaconda
  • Orange version: 3.38.1
  • How you installed Orange: 1) Conda install orange3, 2) Orange3-3.38.1-Miniforge-x86_64.exe

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