Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Thanks Mason41, that's very useful to know. When you say the name "Tkinter" has to be in lowercase, do you mean the folder-name or referencing it in the script?
Learn the Secrets of Poser 11 and Line-art Filters.
Unfortunately the reinstall is impossible because Python's official installers will no longer even work on Windows 7. So it's up to Bondware to fix this if they want to have Python functional on Poser. I'm NOT GOING TO SWITCH TO MALWARE 10 just to make a few new features available.
My python page
My ShareCG freebies
On Windows you can use pip to install external packages in the Python 3 now included in Poser.
For now the magic phrase is:
pip._internal.main(['install', package])
With 'package' of course the name of the package you want to install. It triggers a warning the method may not work in future versions but it works in this one.
HartyBart posted at 2:36PM Tue, 03 November 2020 - #4403013
Thanks Mason41, that's very useful to know. When you say the name "Tkinter" has to be in lowercase, do you mean the folder-name or referencing it in the script?
In the scripts. Also python 3 is more sensitive about tabs and spaces so your script can't mix tabs and spaces.
Thanks. It would be useful to have the correct and tested folders in a ZIP on Renderosity Freestuff, so save people from having to wrestle with downloading Python and locating the required folders. For instance, I failed to find the required folders among the various install ZIPs for Python 3.7.9.
Learn the Secrets of Poser 11 and Line-art Filters.
HartyBart posted at 5:05PM Wed, 04 November 2020 - #4403179
Thanks. It would be useful to have the correct and tested folders in a ZIP on Renderosity Freestuff, so save people from having to wrestle with downloading Python and locating the required folders. For instance, I failed to find the required folders among the various install ZIPs for Python 3.7.9.
C:/Users/*your user name*/AppData/Local/Programs/Python/Python39/tcltcl8.6
C:/Users/*your user name*/AppDataLocal/Programs/Python/Python39/tcltk8.6
These two dirs go into your
Runtime/Python/lib
directory as sub directories.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
All my python scripts now crash and Poser 12 cannot find Tkinter library.