--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That's what I figured William. As far as I can tell, I am doing the open and write and read like I have with C and as described in https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files. However, I am not getting any error message when I do the open for writing and do the write, just that the file is not getting created and written. It should be so straightforward but it's not working.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/4eMyTYs_lnw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
It seems likely that I'm just doing something wrong, some simple thing and perhaps I simply cannot read and write from Python to my text file, but that seems crazy.

Here's some of my code. Hopefully you'll see something newbie-wrong that I've done. It's been a while since I have done file I/O, so it's likely that I have some syntax error(s).
If the directory /home/baker is showing as owned by root, chaos won't change ownership of it. Try chown {user.group} /home/baker. Then, assuming you are running the application as {user} you should at least have write permissions to that directory, which you would not have of it was owned as root.
Jonathan
Now after all that I've decided not to write anything to the eMMC, fearing that I'll cause some hiccup with the writes.
JohnEh ? What do you mean ? You do realize that you can create a tmpfs directory, that is located in memory, where you could then create files that are also placed in memory ?
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/4eMyTYs_lnw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
Yes indeed. Python 2.7 in the Debian 3.8.13 bone50 on my BBB does flag the error, telling me that w is not correct.I'm not sure as I haven't gone back to my old code to try it again, but I suspect my use of Try/Except sort of hid the error, just telling me that the Try failed and not telling me exactly what the error was and I simply assumed the error was in the name or path in the open command. Clearly I should have just used the open command outside of the Try/Except and then an error message would have popped up telling me that the w was incorrect. Hopefully I have learned from this, first to double-check the syntax and second to dig a little to find out why the open command (or other command) didn't work. I continue to be embarrassed at this dumb mistake but I am going on to probably make other mistakes. However, my code is working perfectly, GUI and all, including writing a logfile to the eMMC.
Thanks for everyone's help. I certainly needed it.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/4eMyTYs_lnw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
Thanks All for the help and suggestions on Try/Catch and other. More evidence of the especially helpful folk on the Beagleboard users forum.
John