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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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
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.
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?
-- 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
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
I did try changing the bat file and it didn't work.
Added attachment.
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
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.
I'm glad you were able to get things running.
Greg
Hi Greg Walters modified page.bat file, and now it's working!
Thanks
I'm glad it worked.