Menu

Gen_Python | Generate Python GUI try error

Anonymous
2021-06-27
2021-06-29
  • Anonymous

    Anonymous - 2021-06-27

    I am running through Greg Walter's tutorial to test out PAGE 6.2 on a Mac 11.2.3 (Python 3.9.5 and ActiveTcl8.6), and am getting this error as soon as I invoke Gen_Python | Generate Python GUI.

    invalid command name "try"
    while executing
    "try {
    #vTcl:withBusyCursor {
    vTcl:generate_python $window
    #}
    } trap {401} {errmsg} {
    set err_split [split $err..."
    (procedure "vTcl:generate_python_UI" line 73)
    invoked from within
    "vTcl:generate_python_UI"
    (menu invoke)

    After this , I get the option to save error message and exit, or close and exit (see attached). Clicking either shuts down the instance. Any suggestions on how to get around this issue? Thanks,

     
  • Anonymous

    Anonymous - 2021-06-27

    Here's the .tcl file in case that helps.

     
  • Greg Walters

    Greg Walters - 2021-06-27

    Please upload your .tcl file so we can see the actual issue.

     
  • Greg Walters

    Greg Walters - 2021-06-27

    When I load your test3.tcl in PAGE under Linux, there are no errors and it generates the Python files correctly.

    I'll ask Don to take a look at it, since I don't have a Mac to test it on.

     
  • Anonymous

    Anonymous - 2021-06-27

    Thanks Greg. It could be a mac issue. I'll try it on a windows 10 machine tomorrow to see if I can get it to work there.

    Thanks for your rapid response, greatly appreciated!

    -Brian

     
  • Greg Walters

    Greg Walters - 2021-06-28

    I spoke with Don this morning and he tried your .tcl file and could get no issues either. However, he only tried Linux and Windows 10 (virtual machine). He shares the Mac with his wife, so his time with the Mac machine must be done by appointment ;o) (Not really).

    I will offer to meet you in the discord forum and try to discuss your issue either by text chat or we can try to do a share video screen and voice chat. If you want to try the Discord thing, the invite link is https://discord.gg/V6zCcjq . There are versions for all operating systems as well as a web browser based option.

    If you choose the Discord option, my "handle" is 'thedesignatedgeek'. I'm in U.S. Centeral Time zone, so you can plan the timing. I usually have Discord running, so you should be able to reach me anytime between "normal human" hours. You can also reach me via email at thedesignatedgeek at gmail dot com.

    Greg

     
  • Anonymous

    Anonymous - 2021-06-28

    Hi Greg, I was able to get PAGE to work as expected on a Windows 10 machine and am running through the tutorial, so I'm moving forward on the PC and don't think we need to chat at this point. There could have been something with the python setup I have on my MacBook, or a version incompatibility. Thanks for your help!

     
  • Greg Walters

    Greg Walters - 2021-06-28

    Glad it's working for you on at least one machine.

    The offer still stands. If you ever want to try to get further along, the Discord forum is available. We'd be happy to see you there.

    Good luck and enjoy PAGE!

    Greg

     
  • Greg Walters

    Greg Walters - 2021-06-29

    Don did get a chance to try your .tcl file on their Mac. The error seems to come from running PAGE under Python 2.x . You might want to try running in a terminal "python -V" and verifying the version that shows up. Then try running "python3 -V". If the latter shows python 3.x, then start PAGE with "python3 page.py" and trying again.

    Please let me know what you find.

    Greg

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.