Python Forum
Mixing 2 versions of python in one C++ application
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mixing 2 versions of python in one C++ application

I have a python embedded C++ application, and currently using python 2.7.13.
Now I want to introduce a new component in this application (dll/.so, loaded dynamically), and this new component also uses python, but version 2.5. The functionality that uses python in this new component fails.

My question is, can i have this kind of mix? Can i kind of unload (Py_Finalize and then do Py_SetPythonHome and Path) and load the new component dll which would do its Py_Initialize after doing the Py_SetPythonHome and path to the Python25 folder?

Thanks in advance

Possibly Related Threads…
Thread Author Replies Views Last Post
  Installed versions of Python SamHobbs 5 738 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  How to send data from a python application to an external application aditya_rajiv 1 586 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  Different versions of Python3 and Python Led_Zeppelin 2 942 Jun-16-2021, 05:31 AM
Last Post: snippsat
  Python Versions ThatTamyBot 2 1,077 Mar-11-2021, 11:27 AM
Last Post: ThatTamyBot
  python application and credentials safety concern aster 4 1,444 Mar-06-2021, 06:51 PM
Last Post: snippsat
  I seem to have two versions of python 3.7.9 installed miner_tom 7 1,914 Nov-22-2020, 06:42 PM
Last Post: miner_tom
  Keep Application running after Python script ends PEGylated_User 0 806 Nov-12-2020, 03:27 PM
Last Post: PEGylated_User
  Installing Python Application pplgf 3 1,305 Apr-27-2020, 10:51 PM
Last Post: Larz60+
  loop in pyautogui (python automation GUI application) pyprogrammer 0 2,079 Feb-12-2020, 02:52 PM
Last Post: pyprogrammer
  How many Python versions do I need? kenatsun 3 1,344 Jan-05-2020, 03:54 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020