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
#1
Hi,

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
Satya
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 264 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  How do I properly implement restarting a multithreaded python application? MrFentazis 1 586 Jul-17-2023, 09:10 PM
Last Post: JamesSmith
Question log.exception() without arguments in old Python versions? cthart 5 1,116 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
  Mixing Boolean and comparison operators Mark17 3 1,371 Jul-11-2022, 02:20 AM
Last Post: perfringo
  Python running only in application Mawixy 2 1,087 Apr-19-2022, 11:38 AM
Last Post: Mawixy
  Python versions with libexpat fixes raghupcr 5 2,356 Feb-24-2022, 06:26 PM
Last Post: raghupcr
  Installed versions of Python SamHobbs 5 2,460 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  How to send data from a python application to an external application aditya_rajiv 1 2,130 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  Different versions of Python3 and Python Led_Zeppelin 2 2,268 Jun-16-2021, 05:31 AM
Last Post: snippsat
  Python Versions ThatTamyBot 2 2,658 Mar-11-2021, 11:27 AM
Last Post: ThatTamyBot

Forum Jump:

User Panel Messages

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