Menu

Windows 11 PC - cant get page to run

Anonymous
2022-10-28
2023-05-14
  • Anonymous

    Anonymous - 2022-10-28

    I downloaded and installed page on a Windows 11 pc. I installed python3.9.x through my cygwin tools. I tried running the page.py file with python3 through cygwin terminal and it has a display issue. (_tkinter.TclError: couldn't connect to display "192.168.4.24:0" ) I've tried :0, 0:0 and IP_ADDR:0. I also tried just running the page icon from the desktop (does nothing) and also tried opening a command window, cd to page directory and tried running the batch file. It also does nothing (command returns but nothing happens) I also tried modifying the path in the page.bat file to point at the cygwin bin directory with the python3.9.exe file - still nothing.

    Suggestions for getting this to work?

     
  • Greg Walters

    Greg Walters - 2022-10-28

    Why are you using cygwin? PAGE is a Python program and if you downloaded the Windows version, all you should have to do is install it like you would any other Windows program. The only dependency is that Python greater than 3.6.

    Greg

     
  • Anonymous

    Anonymous - 2022-10-28

    Because I use cygwin tools on my pc and for other development. I already had python 2.7 there. If this doesn't work - ok. Just trying to see if you had an incite.

     
  • Greg Walters

    Greg Walters - 2022-10-28

    Ok. Well, let's start from the beginning.
    When you open a command prompt what happens when you enter "python -V"?
    Then what happens when you enter "python3 -V"?

    What version of PAGE are you running?
    Where is PAGE installed?

     
  • Anonymous

    Anonymous - 2022-10-31

    -- page version 7.5.1
    -- installed in c:\page
    -- i added my cygwin bin directory to the windows PATH environment variable
    -- i did an mklink for python 3.9 to python
    -- python -V from the windows command prompt returns 3.9.10
    -- i set the DISPLAY to :0.0
    -- i installed cygwin/x and started it
    -- python page.py starts the tool

     
  • Greg Walters

    Greg Walters - 2022-10-31

    page.bat has the following command line...

    @start /min python3 "%~dp0page.py" %1 %2 %3

    Try changing the "python3" to just "python" and see what happens, please.

    Greg

     
    • Anonymous

      Anonymous - 2022-10-31

      I did try changing the bat file and it didn't work.

       
      • Anonymous

        Anonymous - 2022-10-31

        Added attachment.

         
  • Greg Walters

    Greg Walters - 2022-10-31

    I haven't used cygwin in about 20 years, so I'm not really sure where the answer will lay.

    First, you might try https://stackoverflow.com/questions/26555170/tcl-error-in-tkinter-when-launching-python-idle-from-cygwin .

    Another site suggests that you use "startxwin" from inside cygwin or a Start Menu shortcut.

    I will be speaking with Don tomorrow and I will ask him if he has any thoughts.

    Greg

     
  • Anonymous

    Anonymous - 2022-10-31

    No worries. I am able to run the tool using "python page.py" from the xterm window. (See last bullet item in post above. I have already generated some code so thanks for your efforts.

     
  • Greg Walters

    Greg Walters - 2022-10-31

    I'm glad you were able to get things running.

    Greg

     
  • Anonymous

    Anonymous - 2023-05-14

    Hi Greg Walters modified page.bat file, and now it's working!
    Thanks

     
  • Greg Walters

    Greg Walters - 2023-05-14

    I'm glad it worked.

     

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.