Re: need help with 'fix clock' problem...
Please send us a shipping address and we will send you a couple of the serial adapters and cables. Regards, John On May 23, 2010, at 11:16 PM, F Young wrote: Hello! I purchased the very first versions of the XO laptop through the buy one give one program in 2007. Although we used several right away and they worked without any problems...we stored 6 of them away and recently discovered that none of the screens turn on when powering up. It appears to be the fix clock problem and since I live in Kyrgyzstan it is too expensive to ship back to the US to get them repaired. I would like to try to fix this myself but it would be great if I can get more specific instructions for the following (from http://wiki.laptop.org/go/Fix_Clock): Using an OLPC serial adapter, connect the laptop to your personal laptop. On the laptop's motherboard, the serial adapter should be connected to J1. J1 is a small white connector near the wireless module. Since I am not familiar with computer hardware at all, here are my questions: (1) Can you tell me specifically which OLPC serial adapter to buy if I do NOT want to solder any wires? It would be ideal if you could send me a link where I can purchase the exact serial adapter online. (2) I understand that the OLPC serial adapter must be connected to the J1 Serial Port on the XO's motherboard but I am not sure what kind of cable is required and how to connect the serial adapter to this port...Can you send me a photo which illustrates how to connect the serial adapter to the J1 Serial Port? (It would also be good if you can include a link to where I can buy the specific cable online.) Thanks in advance for your help! We want to start training local Kyrgz kids here but we're surprised when many of these new XO laptops could not boot up. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help: mounting usb devices on headless machines
On Thu, Aug 7, 2008 at 6:37 PM, Martin Langhoff [EMAIL PROTECTED] wrote: Option two - help me package tweak usbmount for F7 and F9. The codebase is *tiny*, we can carry it. ... I'll probably start chipping away at #2 tomorrow... FWIW, I've imported the history into git, made some minor changes and it installs and works on F7. git git://dev.laptop.org/users/martin/usbmount.git gitweb http://dev.laptop.org/git?p=users/martin/usbmount.git;a=summary Now, about those beeps... m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help: mounting usb devices on headless machines
On Thu, Aug 7, 2008 at 9:19 PM, Martin Langhoff [EMAIL PROTECTED] wrote: FWIW, I've imported the history into git, made some minor changes and it installs and works on F7. git git://dev.laptop.org/users/martin/usbmount.git gitweb http://dev.laptop.org/git?p=users/martin/usbmount.git;a=summary Right, Makefile and spec file in the repo linked above, initial SRPM right here. http://fedora.laptop.org/xs/testing/olpc/7/source/SRPMS/usbmount-0.15.4.olpc-1.xs7.src.rpm It's a trivial rpm, review patches welcome. cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help: mounting usb devices on headless machines
On Fri, Aug 8, 2008 at 12:18 PM, Rahul Sundaram [EMAIL PROTECTED] wrote: Are you going to submit it for review in Fedora? I don't think so - as I mentioned before, upstream is mostly dead, so I doubt it'll be accepted. Trivial as it is, I am happy to support it for as long as we have a use for it within XS. If something better comes up, we'll switch in a blink. Supporting it for Fedora is a wider (more varied uses) and longer timeframe. cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help: mounting usb devices on headless machines
Martin Langhoff wrote: On Thu, Aug 7, 2008 at 9:19 PM, Martin Langhoff [EMAIL PROTECTED] wrote: FWIW, I've imported the history into git, made some minor changes and it installs and works on F7. git git://dev.laptop.org/users/martin/usbmount.git gitweb http://dev.laptop.org/git?p=users/martin/usbmount.git;a=summary Right, Makefile and spec file in the repo linked above, initial SRPM right here. http://fedora.laptop.org/xs/testing/olpc/7/source/SRPMS/usbmount-0.15.4.olpc-1.xs7.src.rpm It's a trivial rpm, review patches welcome Are you going to submit it for review in Fedora? Rahul ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help creating .xo file
On 04.06.2008, at 08:11, shivaprasad javali wrote: Hi All , I was wondering if you could help me out with this. I got the activity working fine on the OLPC. Now I want to create a .xo file for my activity so that I can install the activity on other XO's. My activity structure is as follows: -activity --has the .info file and the icon -bin -- has a shell script and the exe which i have to run -lib -- has the libs which my application is dependent on - MANIFEST file There is a shell script in the bin folder which I have included in the exec tag in activity.info. I created the activity bundle according to the information in the post http://olpcnews.com/forum/index.php?topic=1555.0 . I have named my .xo file name.activity.xo If I unzip the .xo in the Activities folder and then restart the X- server it gets installed and I get the icon in the activity tray. I tried installing it by copying the .xo to a thumb drive and then running sugar-install-bundle on the XO but it gave me a DBUS timeout error. I also tried to install it through the browse activity as given in http://wiki.laptop.org/go/Activities#Manual_installation and through the Journal without success. Can you figure out where I am going wrong?? Not without logs. See http://wiki.laptop.org/go/Attaching_Sugar_Logs_to_Tickets - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help creating .xo file
2008/6/4 shivaprasad javali [EMAIL PROTECTED]: Can you figure out where I am going wrong?? What's your problem? The bundle seems to install correctly as its icon appears in the shell. Is the problem that the activity doesn't start? Logs will help in any case, as Bert said. Regards, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help creating .xo file
The Bundle installs correctly only when I unzip it manually and then restart the X-server. I want to do this through sugar-install-bundle or through browse activity or through Journal. None of which seem to work. Anyway when I tried to install through the sugar-install-bundle command It failed giving a DBus timeout. Here are the log files I got. Thanks Shivaprasad P.S: I didnt which log file would really be useful to you guys so I attached all of them which I thought had some relevant information. On Wed, Jun 4, 2008 at 5:12 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: 2008/6/4 shivaprasad javali [EMAIL PROTECTED]: Can you figure out where I am going wrong?? What's your problem? The bundle seems to install correctly as its icon appears in the shell. Is the problem that the activity doesn't start? Logs will help in any case, as Bert said. Regards, Tomeu 1212594090.268322 INFO root: Starting Datastore /home/olpc/.sugar/default/datastore 1212594090.300597 DEBUG root: IndexManager.connect() 1212594090.333430 DEBUG root: IndexManager.flush: True 0 1212594098.207695 DEBUG root: IndexManager.connect() 1212594098.229774 ERROR root: Error while trying to load mount point /media/RED_DEVIL/.olpc.store: Db block overwritten - are there multiple writers?. Will try to renitialize and load again. 1212594098.247106 DEBUG root: IndexManager.connect() 1212594099.492161 DEBUG root: IndexManager.flush: True 0 1212594099.963942 DEBUG root: Content.suggestName: dbus.String(u'WeDo.activity.xo') 'xo' 1212594099.988344 DEBUG root: FileBackingStore._targetFile: '62f2e012-5c7e-4f72-95e9-56f2b1c7fe76' u'WeDo.activity.xo' None None 1212594101.686014 INFO org.sugar.datastore.xapianindex: created e67e8fd4-7cc6-43ef-a006-0ebb96bcd333:1.0 1212594101.688182 DEBUG root: IndexManager.flush: False 0 1212594101.982632 INFO org.sugar.datastore.xapianindex: updated e67e8fd4-7cc6-43ef-a006-0ebb96bcd333:1.0 1212594102.022779 DEBUG root: IndexManager.flush: False 1 1212594102.089718 INFO org.sugar.datastore.xapianindex: created 95900480-ec3c-495f-8176-276035b01085:1.0 1212594102.091860 DEBUG root: IndexManager.flush: False 2 1212594102.294715 INFO org.sugar.datastore.xapianindex: updated 95900480-ec3c-495f-8176-276035b01085:1.0 1212594102.297006 DEBUG root: IndexManager.flush: False 3 1212594102.505951 INFO org.sugar.datastore.xapianindex: created 7e2a419f-2ce7-47a1-8290-2b66d595c302:1.0 1212594102.509034 DEBUG root: IndexManager.flush: False 4 1212594102.617162 INFO org.sugar.datastore.xapianindex: updated 7e2a419f-2ce7-47a1-8290-2b66d595c302:1.0 1212594102.619336 DEBUG root: IndexManager.flush: False 5 1212594102.728013 INFO org.sugar.datastore.xapianindex: created 7843b2ed-4c8d-41bb-bdfd-99638e3c709b:1.0 1212594102.730134 DEBUG root: IndexManager.flush: False 6 1212594102.821709 INFO org.sugar.datastore.xapianindex: updated 7843b2ed-4c8d-41bb-bdfd-99638e3c709b:1.0 1212594102.823852 DEBUG root: IndexManager.flush: False 7 1212594102.962378 INFO org.sugar.datastore.xapianindex: created 507f7e86-0d97-4cd7-bcba-6c9aa46585a4:1.0 1212594102.964514 DEBUG root: IndexManager.flush: False 8 1212594103.032338 INFO org.sugar.datastore.xapianindex: updated 507f7e86-0d97-4cd7-bcba-6c9aa46585a4:1.0 1212594103.034422 DEBUG root: IndexManager.flush: False 9 1212594103.153525 INFO org.sugar.datastore.xapianindex: created 99937bd5-548c-476f-a3db-982fbba85513:1.0 1212594103.155660 DEBUG root: IndexManager.flush: False 10 1212594103.229656 INFO org.sugar.datastore.xapianindex: updated 99937bd5-548c-476f-a3db-982fbba85513:1.0 1212594103.232318 DEBUG root: IndexManager.flush: False 11 1212594103.310825 INFO org.sugar.datastore.xapianindex: created 2d2f3e8b-63a3-4575-9013-0493d595f27c:1.0 1212594103.312964 DEBUG root: IndexManager.flush: False 12 1212594103.367179 INFO org.sugar.datastore.xapianindex: updated 2d2f3e8b-63a3-4575-9013-0493d595f27c:1.0 1212594103.369309 DEBUG root: IndexManager.flush: False 13 1212594103.444890 INFO org.sugar.datastore.xapianindex: created 5e60098d-0228-46f5-9ab1-4ec4bf9c0aeb:1.0 1212594103.447130 DEBUG root: IndexManager.flush: False 14 1212594103.508198 INFO org.sugar.datastore.xapianindex: updated 5e60098d-0228-46f5-9ab1-4ec4bf9c0aeb:1.0 1212594103.510326 DEBUG root: IndexManager.flush: False 15 1212594103.595810 INFO org.sugar.datastore.xapianindex: created 3de8c1ae-010d-4a6a-9d16-40f992b15bd9:1.0 1212594103.597936 DEBUG root: IndexManager.flush: False 16 1212594103.695864 INFO org.sugar.datastore.xapianindex: updated 3de8c1ae-010d-4a6a-9d16-40f992b15bd9:1.0 1212594103.698615 DEBUG root: IndexManager.flush: False 17 1212594103.776684 INFO org.sugar.datastore.xapianindex: created a1d20289-075c-4309-a413-aad249027ad6:1.0 1212594103.778820 DEBUG root: IndexManager.flush: False 18 1212594103.847745 INFO org.sugar.datastore.xapianindex: updated a1d20289-075c-4309-a413-aad249027ad6:1.0 1212594103.849883 DEBUG root: IndexManager.flush: False 19 1212594103.908298 INFO org.sugar.datastore.xapianindex: created
Re: Need help creating .xo file
Could you upload your .xo somewhere so I can give it a look? Thanks, Tomeu On Wed, Jun 4, 2008 at 3:07 PM, shivaprasad javali [EMAIL PROTECTED] wrote: The Bundle installs correctly only when I unzip it manually and then restart the X-server. I want to do this through sugar-install-bundle or through browse activity or through Journal. None of which seem to work. Anyway when I tried to install through the sugar-install-bundle command It failed giving a DBus timeout. Here are the log files I got. Thanks Shivaprasad P.S: I didnt which log file would really be useful to you guys so I attached all of them which I thought had some relevant information. On Wed, Jun 4, 2008 at 5:12 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: 2008/6/4 shivaprasad javali [EMAIL PROTECTED]: Can you figure out where I am going wrong?? What's your problem? The bundle seems to install correctly as its icon appears in the shell. Is the problem that the activity doesn't start? Logs will help in any case, as Bert said. Regards, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help creating .xo file
So can you replace the proprietary code from the bundle, see if you have the same problem then upload? Tomeu On Wed, Jun 4, 2008 at 4:31 PM, shivaprasad javali [EMAIL PROTECTED] wrote: Sorry Tomeu. Its a propreitary product .So cannot upload the.xo. On Wed, Jun 4, 2008 at 7:51 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: Could you upload your .xo somewhere so I can give it a look? Thanks, Tomeu On Wed, Jun 4, 2008 at 3:07 PM, shivaprasad javali [EMAIL PROTECTED] wrote: The Bundle installs correctly only when I unzip it manually and then restart the X-server. I want to do this through sugar-install-bundle or through browse activity or through Journal. None of which seem to work. Anyway when I tried to install through the sugar-install-bundle command It failed giving a DBus timeout. Here are the log files I got. Thanks Shivaprasad P.S: I didnt which log file would really be useful to you guys so I attached all of them which I thought had some relevant information. On Wed, Jun 4, 2008 at 5:12 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: 2008/6/4 shivaprasad javali [EMAIL PROTECTED]: Can you figure out where I am going wrong?? What's your problem? The bundle seems to install correctly as its icon appears in the shell. Is the problem that the activity doesn't start? Logs will help in any case, as Bert said. Regards, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help creating .xo file
ok. I will try that. Thanks Shivaprasad On Wed, Jun 4, 2008 at 8:05 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: So can you replace the proprietary code from the bundle, see if you have the same problem then upload? Tomeu On Wed, Jun 4, 2008 at 4:31 PM, shivaprasad javali [EMAIL PROTECTED] wrote: Sorry Tomeu. Its a propreitary product .So cannot upload the.xo. On Wed, Jun 4, 2008 at 7:51 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: Could you upload your .xo somewhere so I can give it a look? Thanks, Tomeu On Wed, Jun 4, 2008 at 3:07 PM, shivaprasad javali [EMAIL PROTECTED] wrote: The Bundle installs correctly only when I unzip it manually and then restart the X-server. I want to do this through sugar-install-bundle or through browse activity or through Journal. None of which seem to work. Anyway when I tried to install through the sugar-install-bundle command It failed giving a DBus timeout. Here are the log files I got. Thanks Shivaprasad P.S: I didnt which log file would really be useful to you guys so I attached all of them which I thought had some relevant information. On Wed, Jun 4, 2008 at 5:12 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: 2008/6/4 shivaprasad javali [EMAIL PROTECTED]: Can you figure out where I am going wrong?? What's your problem? The bundle seems to install correctly as its icon appears in the shell. Is the problem that the activity doesn't start? Logs will help in any case, as Bert said. Regards, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
http://wiki.laptop.org/go/Activities#Manual_installation from Browse: http://wiki.laptop.org/go/Browse#Install_an_activity Best, Simon shivaprasad javali wrote: Hi, I prepared a .xo file for my application to be installed on the XO. I created the .xo file by running the zip command on the activity folder. Now if I have to install the activity through a thumb drive, I go to the terminal move to Activities folder and then unzip the .xo file there. Then I have to restart the xserver for my activity to show up on the home page. Is there any way I can install the activity like this without having to restart the xserver or restart the xserver implicitly?? Also can I do the installation through the journal if I have the .xo file on a thumb drive?? Thanks Shivaprasad ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
2008/6/2 shivaprasad javali [EMAIL PROTECTED]: Sorry didnt observe it properly. It is a D-BUS timeout. I am runing the command from the terminal activity on an actual XO. Which version of the software are you using? Some old versions would give you that error if the bundle was malformed. As always, logs would help: http://wiki.laptop.org/go/Attaching_Sugar_Logs_to_Tickets Regards, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
Hi Bert, I tried sugar-install-bundle its giving me an error timeout in the network connection. Do i have to be connected in the network before I can run that command?? Also i tried Simon's suggestion in the follow up mail. When i try to install it through the browse activity it just stays on that page for a long time with a waiting mouse cursor and then abruptly quits without installing the activity. Also i cannot find an entry for that download in the journal Can you think of anything that i might be doing wrong?? When I use unzip to unzip the .xo file in the appropriate directory and restart the xserver it works fine. On Mon, Jun 2, 2008 at 2:10 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: On 02.06.2008, at 10:29, shivaprasad javali wrote: Hi, I prepared a .xo file for my application to be installed on the XO. I created the .xo file by running the zip command on the activity folder. Now if I have to install the activity through a thumb drive, I go to the terminal move to Activities folder and then unzip the .xo file there. Then I have to restart the xserver for my activity to show up on the home page. Is there any way I can install the activity like this without having to restart the xserver or restart the xserver implicitly?? Yes. Use sugar-install-bundle /path/to/bundle.xo from the Terminal activity, which unzips the activity and tells the Sugar shell that it was installed. Also can I do the installation through the journal if I have the .xo file on a thumb drive?? Yes. Clicking the .xo in the Journal view of your USB drive will install it. - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
Are you sure it is a network timeout, not a D-Bus timeout? Also, the script will not work from the console, only from the Terminal activity. If this does not work, please open a bug report. - Bert - On 02.06.2008, at 12:23, shivaprasad javali wrote: Hi Bert, I tried sugar-install-bundle its giving me an error timeout in the network connection. Do i have to be connected in the network before I can run that command?? Also i tried Simon's suggestion in the follow up mail. When i try to install it through the browse activity it just stays on that page for a long time with a waiting mouse cursor and then abruptly quits without installing the activity. Also i cannot find an entry for that download in the journal Can you think of anything that i might be doing wrong?? When I use unzip to unzip the .xo file in the appropriate directory and restart the xserver it works fine. On Mon, Jun 2, 2008 at 2:10 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: On 02.06.2008, at 10:29, shivaprasad javali wrote: Hi, I prepared a .xo file for my application to be installed on the XO. I created the .xo file by running the zip command on the activity folder. Now if I have to install the activity through a thumb drive, I go to the terminal move to Activities folder and then unzip the .xo file there. Then I have to restart the xserver for my activity to show up on the home page. Is there any way I can install the activity like this without having to restart the xserver or restart the xserver implicitly?? Yes. Use sugar-install-bundle /path/to/bundle.xo from the Terminal activity, which unzips the activity and tells the Sugar shell that it was installed. Also can I do the installation through the journal if I have the .xo file on a thumb drive?? Yes. Clicking the .xo in the Journal view of your USB drive will install it. - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
On 02.06.2008, at 10:29, shivaprasad javali wrote: Hi, I prepared a .xo file for my application to be installed on the XO. I created the .xo file by running the zip command on the activity folder. Now if I have to install the activity through a thumb drive, I go to the terminal move to Activities folder and then unzip the .xo file there. Then I have to restart the xserver for my activity to show up on the home page. Is there any way I can install the activity like this without having to restart the xserver or restart the xserver implicitly?? Yes. Use sugar-install-bundle /path/to/bundle.xo from the Terminal activity, which unzips the activity and tells the Sugar shell that it was installed. Also can I do the installation through the journal if I have the .xo file on a thumb drive?? Yes. Clicking the .xo in the Journal view of your USB drive will install it. - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
Sorry didnt observe it properly. It is a D-BUS timeout. I am runing the command from the terminal activity on an actual XO. On Mon, Jun 2, 2008 at 4:06 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: Are you sure it is a network timeout, not a D-Bus timeout? Also, the script will not work from the console, only from the Terminal activity. If this does not work, please open a bug report. - Bert - On 02.06.2008, at 12:23, shivaprasad javali wrote: Hi Bert, I tried sugar-install-bundle its giving me an error timeout in the network connection. Do i have to be connected in the network before I can run that command?? Also i tried Simon's suggestion in the follow up mail. When i try to install it through the browse activity it just stays on that page for a long time with a waiting mouse cursor and then abruptly quits without installing the activity. Also i cannot find an entry for that download in the journal Can you think of anything that i might be doing wrong?? When I use unzip to unzip the .xo file in the appropriate directory and restart the xserver it works fine. On Mon, Jun 2, 2008 at 2:10 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: On 02.06.2008, at 10:29, shivaprasad javali wrote: Hi, I prepared a .xo file for my application to be installed on the XO. I created the .xo file by running the zip command on the activity folder. Now if I have to install the activity through a thumb drive, I go to the terminal move to Activities folder and then unzip the .xo file there. Then I have to restart the xserver for my activity to show up on the home page. Is there any way I can install the activity like this without having to restart the xserver or restart the xserver implicitly?? Yes. Use sugar-install-bundle /path/to/bundle.xo from the Terminal activity, which unzips the activity and tells the Sugar shell that it was installed. Also can I do the installation through the journal if I have the .xo file on a thumb drive?? Yes. Clicking the .xo in the Journal view of your USB drive will install it. - Bert - ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help installing an activity
My directory structure for the activity is: -activity --has the .info file and the icon -bin -- has a shell script and the exe which i have to run -lib -- has the libs which my application is dependent on - MANIFEST file I used the information in this link : http://www.catmoran.com/olpc/#sugxterm to sugarize my activity. Is there any problem with the structure of this bundle?? Also I am relatively new to development on the XO. Is there any command where I can know the version of my sugar so that I can provide that information to you?? Thanks Shivaprasad On Mon, Jun 2, 2008 at 4:22 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: 2008/6/2 shivaprasad javali [EMAIL PROTECTED]: Sorry didnt observe it properly. It is a D-BUS timeout. I am runing the command from the terminal activity on an actual XO. Which version of the software are you using? Some old versions would give you that error if the bundle was malformed. As always, logs would help: http://wiki.laptop.org/go/Attaching_Sugar_Logs_to_Tickets Regards, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
Hello All, Thanks, I found 2 things reading this thread, let me explain what I did, a) my activity directory was writable by world, why i did this was becuase i was creating a config file and didnt know the user which initiates my activity b) the scripts which were executeable i.e. my Activity main script, was only readable but still works ( can some one elaborate that for me? i am a bit confused that how its readable but still executed ) 1 thing more, when my activity is running, going to home view shows 2 icons, 1 is the activity icon that i created, 2nd is the black circle in the right that is associated with my activity. can some body give me a hint that where i am wrong ? as i am using glade with gtk Regards -- Waqas Toor member of OLPC Pakistan Team On 3/5/08, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Stone wrote: | On Tue, Mar 04, 2008 at 08:22:31PM -0500, Benjamin M. Schwartz wrote: | Michael Stone wrote: | | My central error-handling goal has been to compactly express my | | assumptions in a form that will prevent them from being violated in | | ignorance. Should I have different goals? | | 1. I find Rainbow very impressive, and I am sure you are well aware of the | various arguments made regarding error handling. | | Thank you. While it's true that I'm aware of some arguments regarding error | handling, I'm always interested in improving. It seems like one of the | most regularly failed challenges in the craft of programming. | | In my view, restricting assertions to internal invariants provides an | easy way of distinguishing problems in Rainbow from problems in | Activities and other parts of the system. | | True, but the convention that I have established of separating error | messages into contract-violations and 'everything else', recorded in | per-activity logs and in a daemon-wide log (/var/log/rainbow) would seem | to accomplish similar goals. I have not read the relevant Rainbow source, so I cannot comment very intelligently on this. However, if Rainbow wishes to log a contract violation, it should insert the phrase contract violation into the logfile. Otherwise, how is a person reading the log to know this? | 2. Among your goals, you might consider maximizing the ability of novice | programmers to figure out what they've done wrong. | | It's not my primary goal, but I'll agree that it's worth considering. | | The wiki page on translation even goes so far as to | recommend using gettext for error strings, so that users and | administrators may debug the system without knowing English. I used the phrase debug the system. That was a poor choice. I should say recognize bugs in the system, and additionally distinguish between bugs in the system and bugs in the activities they're developing. | | I'm still not convinced. Wouldn't we be better served by translating the | source code itself, or an overview of the source code like my 'Taste the | Rainbow' pages? | | Consider: in my experience, debugging consists of searching the diff | between one's mental model and reality from which it follows that the | material which should be translated is the material which provides the | clearest, most accurate mental model of the problem. Your experience is extremely unusual and non-representative. You are an expert computer scientist who frequently reads source code written by others. You are familiar with the OLPC operating system details, including D-Bus and the Bitfrost requirements, perhaps moreso than anyone else in the world. The people who will be reading these logfiles will be developers who are trying to debug their activities. The activity may have crashed because it attempted to violate a Bitfrost rule and was killed by Rainbow. These developers (ideally mostly children) will likely be building their activities by making small modifications to existing activities. That means most won't even understand their own code. How could you possibly expect them to understand yours? | Also consider: had there been an actual bug in Rainbow, which would have | been more useful to Waqas in diagnosing and fixing the problem: | translated error messages or better written or documented source code? Not fixing. It is absurd to imagine that any appreciable number of users will be able fix Rainbow bugs. Rather, when Rainbow experiences an internal error, it should be extremely obvious that the problem is with Rainbow. For example, an excellent type of behavior would be for Rainbow to print, in the logfile: RAINBOW BUG: Rainbow has encountered an internal error. This indicates a bug in Rainbow. The error code is 752. This line would be sufficient for activity developers to understand that the problem is not simply in their code. It also makes it possible for users to participate usefully in the development process, by reporting the bug in an
Re: Need Help
On Tue, Mar 4, 2008 at 6:54 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: Waqas Toor wrote: | Hello All, | | I am having a problem and unable to find any solution regarding that, | I have written an activity in using GTK and glade, and have sugarized | it according to the hello world tutorial in wiki. but still i dont | know what is going on as the icon of the activity stays in the ring | and then disappears after some time, i have rechecked my code again | and again and cant find any thing that is of Coding error | | | can anybody please see the log i am attaching and tell me is rainbow | stoping it ?? You appear to have discovered a bug in Rainbow, which is dying with an assertion failure. Until Rainbow is fixed, you should do as Walter suggested and disable Rainbow. Ben is right. I think the problem is that your activity dir is world writable, you could try changing that and continue testing your activity inside Rainbow. Compare the permissions of your activity dir and contents with other activities. Can you enter a ticket about this? I don't know if Rainbow should abort the launch in these cases, but certainly should give a more helpful message. Thanks, Tomeu ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
On Tue, Mar 04, 2008 at 10:12:35AM +0100, Tomeu Vizoso wrote: On Tue, Mar 4, 2008 at 6:54 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: Waqas Toor wrote: | can anybody please see the log i am attaching and tell me is rainbow | stoping it ?? As Tomeu said, Rainbow has detected that your activity's directory, /home/olpc/activities/Qirat.activity, is writable by the activity. Activities are not permitted to modify their own bundles. Consequently, Rainbow scuttled the launch. You appear to have discovered a bug in Rainbow, which is dying with an assertion failure. Until Rainbow is fixed, you should do as Walter suggested and disable Rainbow. Is there some reason why activities need to write to their (or to other activities') bundle directories? Can you enter a ticket about this? I don't know if Rainbow should abort the launch in these cases, but certainly should give a more helpful message. Tomeu: what do you suggest Rainbow should do in response to this kind of assertion failure? Should we really try to print a more readable explanation of what failed, given the degree to which such explanations would bloat the code-base? Also, if so, does this message need to be localized? I'm happy to try to improve the legibility of both the failures and the code itself; however, the fact that you were able to correctly diagnose the error (which has never been reported before) and to propose a fix (change the permissions on the bundle dir) suggests to me that I got at least one thing right... :) Michael ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
On Tue, 4 Mar 2008, Michael Stone wrote: As Tomeu said, Rainbow has detected that your activity's directory, /home/olpc/activities/Qirat.activity, is writable by the activity. Activities are not permitted to modify their own bundles. Consequently, Rainbow scuttled the launch. That's good of it. Tomeu: what do you suggest Rainbow should do in response to this kind of assertion failure? Should we really try to print a more readable explanation of what failed, given the degree to which such explanations would bloat the code-base? Also, if so, does this message need to be localized? I would suggest printing a URL to a page on wiki.laptop.org that has more information and/or an error code with a link to look up the error code. (I prefer the former, but the latter could save a few bytes (that I think are probably not worth saving) by storing only one URL for looking up the problems, plus the error code strings/numbers, combining them at error print time.) -- Asheesh. -- If you do something right once, someone will ask you to do it again. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
On Tue, 2008-03-04 at 17:37 -0500, Michael Stone wrote: On Tue, Mar 04, 2008 at 10:12:35AM +0100, Tomeu Vizoso wrote: On Tue, Mar 4, 2008 at 6:54 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: Waqas Toor wrote: | can anybody please see the log i am attaching and tell me is rainbow | stoping it ?? As Tomeu said, Rainbow has detected that your activity's directory, /home/olpc/activities/Qirat.activity, is writable by the activity. Activities are not permitted to modify their own bundles. Consequently, Rainbow scuttled the launch. You appear to have discovered a bug in Rainbow, which is dying with an assertion failure. Until Rainbow is fixed, you should do as Walter suggested and disable Rainbow. Is there some reason why activities need to write to their (or to other activities') bundle directories? I would argue that activities should not be allowed to write to their bundle directories, and that Rainbow is enforcing the correct requirement. I am calling this a bug because Rainbow should achieve this without an assertion failure. According to my software engineering professors, a program should always handle any input data without an assertion failure. Assertions are for catching bugs in internal invariants. Therefore, any time an assertion failure is reached, it represents a bug. If Rainbow wants to disallow this, it should raise a specific exception. Can you enter a ticket about this? I don't know if Rainbow should abort the launch in these cases, but certainly should give a more helpful message. #6640. --Ben ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
On Tue, Mar 04, 2008 at 06:16:34PM -0500, Benjamin M. Schwartz wrote: According to my software engineering professors, a program should always handle any input data without an assertion failure. Assertions are for catching bugs in internal invariants. Therefore, any time an assertion failure is reached, it represents a bug. My central error-handling goal has been to compactly express my assumptions in a form that will prevent them from being violated in ignorance. Should I have different goals? If Rainbow wants to disallow this, it should raise a specific exception. Given your knowledge of Rainbow's clients, both human and software, what would be gained by spending the time, documentation, and code required to create and raise a specific exception for each unique way to violate my assumptions? Can you enter a ticket about this? I don't know if Rainbow should abort the launch in these cases, but certainly should give a more helpful message. Again, who is the audience for the message? It was clearly helpful for Tomeu and me; it was clearly not as helpful for Waqas. Waqas - what could Rainbow have done better for you? Michael ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Stone wrote: | On Tue, Mar 04, 2008 at 06:16:34PM -0500, Benjamin M. Schwartz wrote: | According to my software engineering professors, a program should | always handle any input data without an assertion failure. Assertions | are for catching bugs in internal invariants. Therefore, any time an | assertion failure is reached, it represents a bug. | | My central error-handling goal has been to compactly express my | assumptions in a form that will prevent them from being violated in | ignorance. Should I have different goals? 1. I find Rainbow very impressive, and I am sure you are well aware of the various arguments made regarding error handling. In my view, restricting assertions to internal invariants provides an easy way of distinguishing problems in Rainbow from problems in Activities and other parts of the system. 2. Among your goals, you might consider maximizing the ability of novice programmers to figure out what they've done wrong. OLPC's goals include bringing in many developers who have no experience, so it is important the system be friendly to, say, Python programs written by people who don't know Python. The wiki page on translation even goes so far as to recommend using gettext for error strings, so that users and administrators may debug the system without knowing English. 3. Did this assertion failure result in the termination of the Rainbow daemon? It certainly seems like it could have, though your response suggests otherwise. Most programs simply exit after an assertion failure, because the failure indicates that the program's internal state is no longer sensible. Raising exceptions for input errors has the distinct advantage of allowing one to catch exceptions thrown further down the call stack, instead of exiting. Note that when I say specific exceptions, it would be perfectly reasonable to wrap up all errors due to permissions in a PermissionsException, etc. - --Ben -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHzfXXUJT6e6HFtqQRAhSwAJ4lobW9HT6OWtonFQjQI93ppGlGwACfTgBv AaXnBTOaXz1QrfGlc80xupU= =YfUX -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
On Tue, Mar 04, 2008 at 08:22:31PM -0500, Benjamin M. Schwartz wrote: Michael Stone wrote: | My central error-handling goal has been to compactly express my | assumptions in a form that will prevent them from being violated in | ignorance. Should I have different goals? 1. I find Rainbow very impressive, and I am sure you are well aware of the various arguments made regarding error handling. Thank you. While it's true that I'm aware of some arguments regarding error handling, I'm always interested in improving. It seems like one of the most regularly failed challenges in the craft of programming. In my view, restricting assertions to internal invariants provides an easy way of distinguishing problems in Rainbow from problems in Activities and other parts of the system. True, but the convention that I have established of separating error messages into contract-violations and 'everything else', recorded in per-activity logs and in a daemon-wide log (/var/log/rainbow) would seem to accomplish similar goals. 2. Among your goals, you might consider maximizing the ability of novice programmers to figure out what they've done wrong. It's not my primary goal, but I'll agree that it's worth considering. The wiki page on translation even goes so far as to recommend using gettext for error strings, so that users and administrators may debug the system without knowing English. I'm still not convinced. Wouldn't we be better served by translating the source code itself, or an overview of the source code like my 'Taste the Rainbow' pages? Consider: in my experience, debugging consists of searching the diff between one's mental model and reality from which it follows that the material which should be translated is the material which provides the clearest, most accurate mental model of the problem. Also consider: had there been an actual bug in Rainbow, which would have been more useful to Waqas in diagnosing and fixing the problem: translated error messages or better written or documented source code? Put another way, doesn't this kind of error message uselessly duplicate information that is best recorded in the failing assertion itself (and in the name of the function containing it, in this case, check_cwd(... [cwd=]/home/olpc/Activities/Qirat.activity) assert ck.negative(W_OK, 0) ? 3. Did this assertion failure result in the termination of the Rainbow daemon? The present implementation calls clone() before executing any activity-launching code. Termination of the child by failure to handle the AssertionError is a design goal. Raising exceptions for input errors has the distinct advantage of allowing one to catch exceptions thrown further down the call stack, instead of exiting. Note that when I say specific exceptions, it would be perfectly reasonable to wrap up all errors due to permissions in a PermissionsException, etc. First, what can I reasonably expect to accomplish by catching such an exception? Second, given that the exception is being raised in a child process that may have been compromised by malicious data, I'm not terribly interested in informing the main daemon to the particulars of the failure; the log file is quite sufficient for my purposes. Michael ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Stone wrote: | On Tue, Mar 04, 2008 at 08:22:31PM -0500, Benjamin M. Schwartz wrote: | Michael Stone wrote: | | My central error-handling goal has been to compactly express my | | assumptions in a form that will prevent them from being violated in | | ignorance. Should I have different goals? | | 1. I find Rainbow very impressive, and I am sure you are well aware of the | various arguments made regarding error handling. | | Thank you. While it's true that I'm aware of some arguments regarding error | handling, I'm always interested in improving. It seems like one of the | most regularly failed challenges in the craft of programming. | | In my view, restricting assertions to internal invariants provides an | easy way of distinguishing problems in Rainbow from problems in | Activities and other parts of the system. | | True, but the convention that I have established of separating error | messages into contract-violations and 'everything else', recorded in | per-activity logs and in a daemon-wide log (/var/log/rainbow) would seem | to accomplish similar goals. I have not read the relevant Rainbow source, so I cannot comment very intelligently on this. However, if Rainbow wishes to log a contract violation, it should insert the phrase contract violation into the logfile. Otherwise, how is a person reading the log to know this? | 2. Among your goals, you might consider maximizing the ability of novice | programmers to figure out what they've done wrong. | | It's not my primary goal, but I'll agree that it's worth considering. | | The wiki page on translation even goes so far as to | recommend using gettext for error strings, so that users and | administrators may debug the system without knowing English. I used the phrase debug the system. That was a poor choice. I should say recognize bugs in the system, and additionally distinguish between bugs in the system and bugs in the activities they're developing. | | I'm still not convinced. Wouldn't we be better served by translating the | source code itself, or an overview of the source code like my 'Taste the | Rainbow' pages? | | Consider: in my experience, debugging consists of searching the diff | between one's mental model and reality from which it follows that the | material which should be translated is the material which provides the | clearest, most accurate mental model of the problem. Your experience is extremely unusual and non-representative. You are an expert computer scientist who frequently reads source code written by others. You are familiar with the OLPC operating system details, including D-Bus and the Bitfrost requirements, perhaps moreso than anyone else in the world. The people who will be reading these logfiles will be developers who are trying to debug their activities. The activity may have crashed because it attempted to violate a Bitfrost rule and was killed by Rainbow. These developers (ideally mostly children) will likely be building their activities by making small modifications to existing activities. That means most won't even understand their own code. How could you possibly expect them to understand yours? | Also consider: had there been an actual bug in Rainbow, which would have | been more useful to Waqas in diagnosing and fixing the problem: | translated error messages or better written or documented source code? Not fixing. It is absurd to imagine that any appreciable number of users will be able fix Rainbow bugs. Rather, when Rainbow experiences an internal error, it should be extremely obvious that the problem is with Rainbow. For example, an excellent type of behavior would be for Rainbow to print, in the logfile: RAINBOW BUG: Rainbow has encountered an internal error. This indicates a bug in Rainbow. The error code is 752. This line would be sufficient for activity developers to understand that the problem is not simply in their code. It also makes it possible for users to participate usefully in the development process, by reporting the bug in an unambiguous way. Error codes are also important because they allow users to identify problems even when e-mailing logfiles is impossible due to software bugs or lack of connectivity. This error line is also nice because it only needs to be translated once, with the error code number substituted programmatically. This output could be improved further by adding an additional sentence, such as: This error code indicates that Rainbow's directory permissions have reached an inconsistent state. This line, like a BSOD, serves mainly to make users feel like the system's designers want them to know what's going on in case of a failure. However, the implementation overhead is undeniably high, especially given the need for many translations. On the plus side, these strings also serve as documentation when reading the source code. | | Put another way, doesn't this kind of error message uselessly duplicate
Re: Need Help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Waqas Toor wrote: | Hello All, | | I am having a problem and unable to find any solution regarding that, | I have written an activity in using GTK and glade, and have sugarized | it according to the hello world tutorial in wiki. but still i dont | know what is going on as the icon of the activity stays in the ring | and then disappears after some time, i have rechecked my code again | and again and cant find any thing that is of Coding error | | | can anybody please see the log i am attaching and tell me is rainbow | stoping it ?? You appear to have discovered a bug in Rainbow, which is dying with an assertion failure. Until Rainbow is fixed, you should do as Walter suggested and disable Rainbow. - --Ben -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHzOQBUJT6e6HFtqQRAp/UAJ43nJwJBbCSbZdBEOnPU9KAG7UAuQCfasdz J571RBiFo6T5quGBz4BSAW8= =2hyy -END PGP SIGNATURE- ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help to resolve any problems
Hi Cihan, Your icon tries to embed a gif file. The actual image data, however, is not in there. Try drawing a couple of lines in inkscape and it'll probably work. As for your MANIFEST file: you need to list the files like this: just.png question.png DefaultConfig So remove the Ghost.activity/ from the beginning of the lines. Also I don't think you have to include the activity/ directory, as activity.info and the icon will be included automatically. Also leave out other directories, and list the individual files. Cheers, Reinier Cihan Akkurt wrote: Hi, I have any problems with my program : Ghost.activity Can someone help me to resolve them. Thanks. Problem with activity-icon.svg : I created an icon svg format with Inkscape that I see in my development machine, but the icon is not displayed in the emulator XO. why I am committed the icon.svg at this mail Problem with Manifest in .xo generation : I can not create Ghost.xo(my program) because I get this error that appears each time. I am committed the manifest file at this mail [EMAIL PROTECTED]:~/Activities/Ghost.activity$ ./setup.py dist WARNING: NEWS file is missing. Traceback (most recent call last): File ./setup.py, line 4, in module bundlebuilder.start(Ghost) File /home/cihan/sugar-jhbuild/build/lib/python2.5/site-packages/sugar/activity/bundlebuilder.py, line 386, in start cmd_dist(bundle_name, manifest) File /home/cihan/sugar-jhbuild/build/lib/python2.5/site-packages/sugar/activity/bundlebuilder.py, line 188, in cmd_dist bundle_zip.write(filename, os.path.join (base_dir, filename)) File /usr/lib/python2.5/zipfile.py, line 541, in write st = os.stat(filename) OSError: [Errno 2] No such file or directory: 'Ghost.activity' [EMAIL PROTECTED]:~/Activities/Ghost.activity$ -- ** Cihan Akkurt E-mail : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Msn : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Skype : akkuciha ** ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel