Python Forum
Linking with multiple python libraries
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linking with multiple python libraries
#3
So to be more clear about what I'm facing, let's say we have A.dll, which was written by some other team, which links with python2.7/libs/python27.lib, and calls Py_Initialize. I'm writing B.dll, which links with python3.x/libs/python3x.lib and calls Py_Initialize. Is anything bad going to happen here if the application runs the code from both A.dll and B.dll, in one order or the other?

I'm not talking about the scripts - scripts written by the A team will be designed for 2.7 and will run in the 2.7 interpreter, and scripts my team writes will be designed for 3.x and will run in the 3.x interpreter. The python modules will be completely separate and the paths will be set up to keep things straight.

By sub-interpreter, I mean using Py_NewInterpreter, so if B.dll and C.dll are both using python 3, they will each obtain a separate interpreter environment.

Thanks!
Reply


Messages In This Thread
RE: Linking with multiple python libraries - by poijuggler - Oct-13-2017, 02:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python convert multiple files to multiple lists MCL169 6 1,570 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  Adding libraries to embedded Python as a ZIP The_Oman 0 1,250 May-05-2023, 04:05 PM
Last Post: The_Oman
  Python script with local libraries zazas321 0 983 Jul-05-2022, 04:55 AM
Last Post: zazas321
  error in Linking two coroutines shankar 3 5,565 Jun-19-2020, 06:50 PM
Last Post: gogawaleankita
  linking with excel mhmdbarazi 1 2,046 Apr-23-2020, 04:18 AM
Last Post: buran
  Linking python to Google Sheets Charliefish1311 1 2,298 Jul-09-2019, 12:31 AM
Last Post: micseydel
  Installing Python and pointing it to required libraries hooiberg 2 4,327 May-13-2019, 05:55 PM
Last Post: ebolisa
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,641 May-11-2019, 08:12 PM
Last Post: keames
  Libraries needed for python install? burvil 7 20,166 Oct-18-2017, 04:55 AM
Last Post: burvil
  Adding libraries to Python 3.6.2 embedded hynek_compelson 1 4,830 Aug-10-2017, 09:01 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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