Forum

Author Topic: tkinter support  (Read 2546 times)

wer

  • Newbie
  • *
  • Posts: 1
    • View Profile
tkinter support
« on: May 05, 2016, 08:48:41 PM »
Agisoft installation comes with a lot of python scripts using the tkinter library for user interfaces. The example scripts do fine when run using the IDLE but calling them from agisoft -> run script gives the error: "This probably means that Tcl wasn't installed properly." Does anyone know how to install tcl correctly?
best regards and thanks in advance
wer

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: tkinter support
« Reply #1 on: May 10, 2016, 11:55:01 AM »
Hello wer,

Can you post an example or send it to support@agisoft.com?

Please also specify OS that you are using.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: tkinter support
« Reply #2 on: May 14, 2016, 05:13:27 PM »
Hello wer,

I found that the following solution allows to run the script provided without an error:
Right click on (My) Computer, go to properties, Advanced Tab, press Environment Variables and edit TCL_LIBRARY to indicate the Python path e.g C:\Python33\tcl\tcl8.5 (or enter the path that represents your version). Open PhotoScan Pro and run the script.
Best regards,
Alexey Pasumansky,
Agisoft LLC