Having trouble again opening a perfectly working TCL file to edit---why??? This file does work, and the icon is valid (appears when you click on the icon file)....why can't page find the file---it is clearly there & I need to edit!! This has happened in the past & very aggravating. Does the dot after sandbox mean anything (or just a sentence)...any workaround??
I'm not sure why you are saying again, since I don't remember this issue showing up like this before. I understand that you said that it has happened in the past.
Please zip the entire folder (home/pi/Desktop/sandbox) and post it here. The dot after "sandbox" is a period, meaning the end of a sentence.
I'm not sure what icon you are referring to, unless it would be the actual .GIF file.
Are you starting PAGE in the project folder (home/pi/Desktop/sandbox) or from the desktop or somewhere else? You actually should always start PAGE from your project folder by using a terminal.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-12-20
Ah I got it. The button icon of the old file "cant be found", so page aborts the load. I had looked at the TCL and noticed it had set imagelist to an old path (the file I'm trying to work has been moved along with all the icons)....so apparenlty the tcl is giving page bad info....BUT PAGE IS NOT REPORTING the correct error condition of where it is actually looking.* It reports the folder where the file can plainly be seen. I tried editing the TCL file to
image_list { '/home/pi/Desktop/sandbox/SENSEb.gif" } ...exactly where the file is. NO DICE
That is when I wrote my message here.
I went back and created a dummy page in sandbox with the button icon...wokrked 100% fine, no issue. also would reload (page is in its own page directory on the desktop).
I looked at THAT working tcl & it differed slightly from what I expected
set image_list { \
* senseb_gif "../sandbox/SENSEb.gif" *
}
Note his differs from what I had manually tried earlier. Applying THIS PATH to my nonopening tcl & now page works!!! Not sure why the EXACT FILE PATH did not work for page.
It would be helpful if the page error reports the actual tcl path it is trying to use, (or a hint to look at the tcl) I would have found it much quicker (since page reported it was trying the path where the file DOES exist)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PAGE was reporting what it thought the path was. Your problem was that you
started PAGE from the wrong folder. When you start PAGE from the project
folder, it becomes what you saw when it started to work.
All you have to remember is to start PAGE from the project folder and
everything will work fine.
Ah I got it. The button icon of the old file "cant be found", so page
aborts the load. I had looked at the TCL and noticed it had set
imagelist to an old path (the file I'm trying to work has been moved
along with all the icons)....so apparenlty the tcl is giving page bad
info....BUT PAGE IS NOT REPORTING the correct error condition of where it
is actually looking. It reports the folder where the file can plainly be
seen. I tried editing the TCL file to
image_list { '/home/pi/Desktop/sandbox/SENSEb.gif" } ...exactly* where
the file is. NO DICE
That is when I wrote my message here.
I went back and created a dummy page in sandbox with the button
icon...wokrked 100% fine, no issue. also would reload (page is in its own
page directory on the desktop).
I looked at THAT working tcl & it differed slightly from what I expected
set image_list { \ senseb_gif "../sandbox/SENSEb.gif"
}
Note his differs from what I had manually tried earlier. Applying THIS
PATH to my nonopening tcl & now page works!!! Not sure why the EXACT FILE
PATH did not work for page.
It would be helpful if the page error reports the actual tcl path it is
trying to use, (or a hint to look at the tcl) I would have found it much
quicker (since page reported it was trying the path where the file DOES
exist)
-- To be forewarned is to be forearmed. To be forearmed means you can't buy
off the rack.
Greg Walters
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-12-20
NOTE to be clear some astericks got into my paste above somehow, the TCL is:
set image_list { \
senseb_gif "../sandbox/SENSEb.gif" \
}
vTcl:create_project_images $image_list ;# In image.tcl
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-12-20
When you start PAGE from the project folder,*
I'm not sure what you mean by that ....page is in the desktop in a folder called page. I just click on page.py in that folder to run it. How would I run page from the sandbox folder?
Why exactly can't page find the file if it knows the explicit path (/home/pi/desktop/sandbox/senseb.gif) & says it is looking there , but can't find it????
Where EXACTLY was it looking?---why is the error message inaccurate?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm assuming that you are using a version of Raspberry Pi OS. If that is true, then you have a file called ".bashrc". You can edit it by using your default text editor, which should be mousepad.
in a terminal, type "mousepad ~/.bashrc". Then somewhere in the file you will look for a line that says something like this...
"# some more ls aliases"
under that add a new line that says something like this...
replacing the "home/greg/Downloads/Page-6.2/" portion with the actual path to your PAGE installation. So if your installation in directly in the Desktop folder your line would be...
Save the file and then in the terminal window, type...
"source ~/.bashrc"
which reloads the bashrc file in the terminal. Or, you could close the terminal. Then use the filemanager to navigate to your project folder (sandbox) and use the "Tools | Open Current Folder in Terminal" or press the F4 key. That opens a terminal in your project folder. Then just type "page" to start page or "page myproject.tcl" to open the project directly from the command line.
Why doesn't PAGE know where your graphic files are? Because it is designed to be run directly from the project folder. Not from the Desktop, home folder or somewhere else. This is due to the way the Windows does things, and it has caused all of us to do it that way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-12-21
*Why doesn't PAGE know where your graphic files are? *
Well I am still slightly confused about the message...page says in its own error message the file it is trying to load is at /home/pi/Desktop/sandbox, which is exactly where it is located...so:
Is it really trying to load the file from that location??? If not, from where?
If it knows where it is (the message says so), what prevents it from loading. If it can't load the file I'd like the message to say where it is really trying to get the file from.
I'm about to try your suggestion of running page from the project folder to see if that makes a difference. Right now everything is working fine, I just don'tunderstandtheissuewiththeerrormessage.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Having trouble again opening a perfectly working TCL file to edit---why??? This file does work, and the icon is valid (appears when you click on the icon file)....why can't page find the file---it is clearly there & I need to edit!! This has happened in the past & very aggravating. Does the dot after sandbox mean anything (or just a sentence)...any workaround??
I'm not sure why you are saying again, since I don't remember this issue showing up like this before. I understand that you said that it has happened in the past.
Please zip the entire folder (home/pi/Desktop/sandbox) and post it here. The dot after "sandbox" is a period, meaning the end of a sentence.
I'm not sure what icon you are referring to, unless it would be the actual .GIF file.
Are you starting PAGE in the project folder (home/pi/Desktop/sandbox) or from the desktop or somewhere else? You actually should always start PAGE from your project folder by using a terminal.
Ah I got it. The button icon of the old file "cant be found", so page aborts the load. I had looked at the TCL and noticed it had set imagelist to an old path (the file I'm trying to work has been moved along with all the icons)....so apparenlty the tcl is giving page bad info....BUT PAGE IS NOT REPORTING the correct error condition of where it is actually looking.* It reports the folder where the file can plainly be seen. I tried editing the TCL file to
image_list { '/home/pi/Desktop/sandbox/SENSEb.gif" } ...exactly where the file is. NO DICE
That is when I wrote my message here.
I went back and created a dummy page in sandbox with the button icon...wokrked 100% fine, no issue. also would reload (page is in its own page directory on the desktop).
I looked at THAT working tcl & it differed slightly from what I expected
set image_list { \
* senseb_gif "../sandbox/SENSEb.gif" *
}
Note his differs from what I had manually tried earlier. Applying THIS PATH to my nonopening tcl & now page works!!! Not sure why the EXACT FILE PATH did not work for page.
It would be helpful if the page error reports the actual tcl path it is trying to use, (or a hint to look at the tcl) I would have found it much quicker (since page reported it was trying the path where the file DOES exist)
PAGE was reporting what it thought the path was. Your problem was that you
started PAGE from the wrong folder. When you start PAGE from the project
folder, it becomes what you saw when it started to work.
All you have to remember is to start PAGE from the project folder and
everything will work fine.
On Mon, Dec 20, 2021 at 10:36 AM noreply@sourceforge.net wrote:
--
To be forewarned is to be forearmed. To be forearmed means you can't buy
off the rack.
Greg Walters
NOTE to be clear some astericks got into my paste above somehow, the TCL is:
set image_list { \
senseb_gif "../sandbox/SENSEb.gif" \
}
vTcl:create_project_images $image_list ;# In image.tcl
I'm not sure what you mean by that ....page is in the desktop in a folder called page. I just click on page.py in that folder to run it. How would I run page from the sandbox folder?
Why exactly can't page find the file if it knows the explicit path (/home/pi/desktop/sandbox/senseb.gif) & says it is looking there , but can't find it????
Where EXACTLY was it looking?---why is the error message inaccurate?
I'm assuming that you are using a version of Raspberry Pi OS. If that is true, then you have a file called ".bashrc". You can edit it by using your default text editor, which should be mousepad.
in a terminal, type "mousepad ~/.bashrc". Then somewhere in the file you will look for a line that says something like this...
"# some more ls aliases"
under that add a new line that says something like this...
"alias page='python /home/greg/Downloads/Page-6.2/page/page.py'"
replacing the "home/greg/Downloads/Page-6.2/" portion with the actual path to your PAGE installation. So if your installation in directly in the Desktop folder your line would be...
"alias page='python /home/pi/Desktop/Page/page/page.py'"
Save the file and then in the terminal window, type...
"source ~/.bashrc"
which reloads the bashrc file in the terminal. Or, you could close the terminal. Then use the filemanager to navigate to your project folder (sandbox) and use the "Tools | Open Current Folder in Terminal" or press the F4 key. That opens a terminal in your project folder. Then just type "page" to start page or "page myproject.tcl" to open the project directly from the command line.
Why doesn't PAGE know where your graphic files are? Because it is designed to be run directly from the project folder. Not from the Desktop, home folder or somewhere else. This is due to the way the Windows does things, and it has caused all of us to do it that way.
*Why doesn't PAGE know where your graphic files are? *
Well I am still slightly confused about the message...page says in its own error message the file it is trying to load is at /home/pi/Desktop/sandbox, which is exactly where it is located...so:
Is it really trying to load the file from that location??? If not, from where?
If it knows where it is (the message says so), what prevents it from loading. If it can't load the file I'd like the message to say where it is really trying to get the file from.