After figuring out the error in my other Python thread, I'm now running into a different problem.
I used the relocatable python tool after following @tlarkin's clear instructions (thank you again!) to create a self-contained Python3 environment that can be shipped out to client machines. I then changed the environment on the script itself to reflect the location of the self-contained py3 environment (specifically, the symlink): /opt/advisory/bin/python3
The script works when invoked from Self Service on both my own machine and a VM, but does not work on any of my colleagues machines. The error they're receiving is:
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
I'm not sure how to resolve since I can confirm the tkinter
module is installed correctly and works in the self-contained environment. To test, I invoked it from the path /opt/advisory/py3/Python.framework/Versions/3.9/bin/python3
:
I assume this is because of a Python path issue, but I'm not entirely sure. Any help would be greatly appreciated!