We're working on a solution. I can tell you now though that you will need to install Python 3.8 once we have a solution because 3.7 will not work for what you're trying to do. I don't know exactly why but we've noticed that Python 3.8 is compiled differently than 3.7.
The problem you're encountering is due to library dependencies and search paths. Stata loads Python, Python loads a dynamic library, that dynamic library attempts to load another library but can't because the dynamic library loader can't locate the library. Python, the executable, can load the libraries because its library search path includes the path to the libraries. Stata doesn't inherit that information from Python and it's not something you can easily specify at runtime (this is true for any application, not just Stata).
FYI: setting environment variables in the shell have no effect on applications launched from the Finder. The Finder uses global environment variables and does not read your shell startup scripts.
The problem you're encountering is due to library dependencies and search paths. Stata loads Python, Python loads a dynamic library, that dynamic library attempts to load another library but can't because the dynamic library loader can't locate the library. Python, the executable, can load the libraries because its library search path includes the path to the libraries. Stata doesn't inherit that information from Python and it's not something you can easily specify at runtime (this is true for any application, not just Stata).
FYI: setting environment variables in the shell have no effect on applications launched from the Finder. The Finder uses global environment variables and does not read your shell startup scripts.
Comment