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).
-
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.
-
Question
Is it impossible to import 'Orange' in a python file when I call it from a cpp file?
-
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
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).
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.
Question
Is it impossible to import 'Orange' in a python file when I call it from a cpp file?
What's your environment?