From foo-script@o2.pl Sat Mar 17 21:50:57 2012 From: foo-script@o2.pl (Adam 'foo-script' Rakowski) Date: Sat, 17 Mar 2012 22:50:57 +0100 Subject: [bug-gnutrition] Rewrite Gnutrition to C Message-ID: <4F650741.8050702@o2.pl> Hello!:) I'm Adam, CS student & passionate developer from UE. I have seen your GSoC ideas and that you look for developer :) I find your ideas for GSoC 2012 very, very attractive, however I need some explaination. I've cloned your repositories both Bazaar and CVS. One of these contains C (+GTK) codes for Gnutrition. One of idea is to rewrite Gnutrition to C. What's bad with current code? Best Adam From jself@gnu.org Sun Mar 18 03:11:00 2012 From: jself@gnu.org (Jason Self) Date: Sat, 17 Mar 2012 23:11:00 -0400 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: <4F650741.8050702@o2.pl> References: <4F650741.8050702@o2.pl> Message-ID: <20120318031100.GA31932@fencepost.gnu.org> Adam 'foo-script' Rakowski wrote: > I find your ideas for GSoC 2012 very, very attractive, however I need > some explaination. I've cloned your repositories both Bazaar and CVS. > One of these contains C (+GTK) codes for Gnutrition. One of idea is to > rewrite Gnutrition to C. What's bad with current code? The GNU Coding Standards [1] recommend that GNU packages use C. [1] http://www.gnu.org/prep/standards/ -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From foo-script@o2.pl Sun Mar 18 15:18:45 2012 From: foo-script@o2.pl (Adam 'foo-script' Rakowski) Date: Sun, 18 Mar 2012 16:18:45 +0100 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: <20120318031100.GA31932@fencepost.gnu.org> References: <4F650741.8050702@o2.pl> <20120318031100.GA31932@fencepost.gnu.org> Message-ID: <4F65FCD5.7030909@o2.pl> Hi Jason, thanks for answering. As far as I understand, GNUtrition is currently in C (and works good enought), but GNU coding standard aren't respected, so GSoC task is to improve coding standards. Am I right? Best Adam From jself@gnu.org Mon Mar 19 01:24:25 2012 From: jself@gnu.org (Jason Self) Date: Sun, 18 Mar 2012 21:24:25 -0400 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: <4F65FCD5.7030909@o2.pl> References: <4F650741.8050702@o2.pl> <20120318031100.GA31932@fencepost.gnu.org> <4F65FCD5.7030909@o2.pl> Message-ID: <20120319012425.GA10593@fencepost.gnu.org> Adam 'foo-script' Rakowski wrote: > thanks for answering. As far as I understand, GNUtrition is currently > in C (and works good enought), but GNU coding standard aren't respected, > so GSoC task is to improve coding standards. Am I right? Not entirely, no. The current version of GNUtrition (0.31) is in Python. There's some C source code in Bazaar but it's only the start and is not complete. Cory Koch has also expressed interest in this. Perhaps the two of you would be willing to coordinate the work? -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From fhour@g.hmc.edu Sun Mar 18 19:07:03 2012 From: fhour@g.hmc.edu (Frederic Hour) Date: Sun, 18 Mar 2012 12:07:03 -0700 Subject: [bug-gnutrition] GSoC rewrite in C_information Message-ID: Hi, I am Frederic, student in France but currently exchange student in California. I have seen your GSoC and I would like to contribute to the GNUtrition. I want to rewrite it in C. I have knowledge in C but I lack basic knowledge in SQL and Gtk+. I only have experience building GUI's in java and python. I have some questions. Shoud the UI be the same? and how many people are going to work on that project? I am looking for documentation right now and I will ask you some questions if needed. Sincerely, Frederic -------------- next part -------------- An HTML attachment was scrubbed... URL: From jself@gnu.org Mon Mar 19 01:36:47 2012 From: jself@gnu.org (Jason Self) Date: Sun, 18 Mar 2012 21:36:47 -0400 Subject: [bug-gnutrition] GSoC rewrite in C_information In-Reply-To: References: Message-ID: <20120319013647.GB10593@fencepost.gnu.org> Frederic Hour wrote: > I lack basic knowledge in SQL and Gtk+. That would be useful knowledge to have. > Shoud the UI be the same? Ideally but if you have suggestions for changes/etc please feel free to talk about them. > how many people are going to work on that project? Probably a small amount I imagine. One? Maybe two? -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From foo-script@o2.pl Mon Mar 19 20:02:03 2012 From: foo-script@o2.pl (Adam 'foo-script' Rakowski) Date: Mon, 19 Mar 2012 21:02:03 +0100 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: <20120319012425.GA10593@fencepost.gnu.org> References: <4F650741.8050702@o2.pl> <20120318031100.GA31932@fencepost.gnu.org> <4F65FCD5.7030909@o2.pl> <20120319012425.GA10593@fencepost.gnu.org> Message-ID: <4F6790BB.9030801@o2.pl> Perhaps the > two of you would be willing to coordinate the work? > A redundancy gives higher chance to getting project done. Please consider the conditions of GSoC forbide team-work. You can ask for 2 slots for same project /redundancy/ or divide the project to similar-sized, dependent parts. However, project is exciting :) I downloaded from CVS and Bazaar, but there's no Python code. Where's the freshest source? Cheers AR From jself@gnu.org Mon Mar 19 20:12:32 2012 From: jself@gnu.org (Jason Self) Date: Mon, 19 Mar 2012 16:12:32 -0400 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: <4F6790BB.9030801@o2.pl> References: <4F650741.8050702@o2.pl> <20120318031100.GA31932@fencepost.gnu.org> <4F65FCD5.7030909@o2.pl> <20120319012425.GA10593@fencepost.gnu.org> <4F6790BB.9030801@o2.pl> Message-ID: <20120319201232.GA14823@fencepost.gnu.org> Adam 'foo-script' Rakowski wrote: > Where's the freshest source? For Python: http://ftpmirror.gnu.org/gnutrition//gnutrition-0.31.tar.gz -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From yunusabd786@gmail.com Mon Mar 19 21:03:18 2012 From: yunusabd786@gmail.com (Cory Koch) Date: Mon, 19 Mar 2012 17:03:18 -0400 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: <20120319201232.GA14823@fencepost.gnu.org> References: <4F650741.8050702@o2.pl> <20120318031100.GA31932@fencepost.gnu.org> <4F65FCD5.7030909@o2.pl> <20120319012425.GA10593@fencepost.gnu.org> <4F6790BB.9030801@o2.pl> <20120319201232.GA14823@fencepost.gnu.org> Message-ID: Hi, Jason said: >Perhaps the > two of you would be willing to coordinate the work? > Coordinating is fine with me. Are you going to be our mentor? Adam 'foo-script' Rakowski wrote: >A redundancy gives higher chance to getting project done. Please >consider the conditions of GSoC forbide team-work. You can ask for 2 >slots for same project /redundancy/ or divide the project to >similar-sized, dependent parts. I've searched the conditions of GSoC and I have not found anything about not working in teams. Can you please provide a link for this? -- Cory Koch Project Member From foo-script@o2.pl Tue Mar 20 23:03:14 2012 From: foo-script@o2.pl (Adam 'foo-script' Rakowski) Date: Wed, 21 Mar 2012 00:03:14 +0100 Subject: [bug-gnutrition] Rewrite Gnutrition to C In-Reply-To: References: <4F650741.8050702@o2.pl> <20120318031100.GA31932@fencepost.gnu.org> <4F65FCD5.7030909@o2.pl> <20120319012425.GA10593@fencepost.gnu.org> <4F6790BB.9030801@o2.pl> <20120319201232.GA14823@fencepost.gnu.org> Message-ID: <4F690CB2.4070103@o2.pl> W dniu 19.03.2012 22:03, Cory Koch pisze: > Hi, > > Jason said: >> Perhaps the >> two of you would be willing to coordinate the work? >> > > Coordinating is fine with me. Are you going to be our mentor? > > Adam 'foo-script' Rakowski wrote: >> A redundancy gives higher chance to getting project done. Please >> consider the conditions of GSoC forbide team-work. You can ask for 2 >> slots for same project /redundancy/ or divide the project to >> similar-sized, dependent parts. > > I've searched the conditions of GSoC and I have not found anything > about not working in teams. Can you please provide a link for this? > > Hi Cory, you can ask for 2 slots and then let us code the same (independently) or divide rewriting to C into 2 pieces, each done by one student. I meant one slot can be occupied only by one student. Best AR From simadragosbogdan@gmail.com Tue Mar 20 19:58:11 2012 From: simadragosbogdan@gmail.com (Dragos-Bogdan Sima) Date: Tue, 20 Mar 2012 21:58:11 +0200 Subject: [bug-gnutrition] Reimplement in C, GSoC 2012 Message-ID: Hello! My name is Bogdan and I am from Bucharest, Romania. I am an undergraduate student in the second year at University Politehnica of Bucharest. I reviewed the idea of rewriting the python code in C, and I found it interesting and challanging. After a quick look after the python sources I believe i am up to this project. I would like to apply for GSoC in your organisation. What should it be the next step I should make? Cheers, D.B. Sima -------------- next part -------------- An HTML attachment was scrubbed... URL: From preethishibani@yahoo.com Wed Mar 21 13:08:48 2012 From: preethishibani@yahoo.com (Preethi Shibani) Date: Wed, 21 Mar 2012 06:08:48 -0700 (PDT) Subject: [bug-gnutrition] Fw: bug-gnutrition In-Reply-To: <1332256214.71144.YahooMailNeo@web65902.mail.ac4.yahoo.com> References: <1332256214.71144.YahooMailNeo@web65902.mail.ac4.yahoo.com> Message-ID: <1332335328.76780.YahooMailNeo@web65906.mail.ac4.yahoo.com> ----- Forwarded Message ----- From: Preethi Shibani To: "bug-gnutrition@gnu.org" Sent: Tuesday, March 20, 2012 8:40 PM Subject: bug-gnutrition Hi,    I am Preethi ,cs student from India.I am interested to participate in GSoC and I would like to write C codes for GNUtrition.I have basic knowledge in c,mysql and python.And my question is what kind of preparations is needed to complete this project. Faithfully Preethi -------------- next part -------------- An HTML attachment was scrubbed... URL: From pc_magas@yahoo.gr Wed Mar 21 09:44:54 2012 From: pc_magas@yahoo.gr (pcmagas) Date: Wed, 21 Mar 2012 11:44:54 +0200 Subject: [bug-gnutrition] Reimplement in C, GSoC 2012 In-Reply-To: References: Message-ID: <1332323094.4174.2.camel@pcmagas> Hello, I am Dimitrios Desyllas Student of Technological Educational Institute of Lamia, Greece. I am Interested into rewriting the GNUtrition into C. @Dragos-Bogdan Sima: I saw it first I will do it. Στις 20-03-2012, ημέρα Τρι, και ώρα 21:58 +0200, ο/η Dragos-Bogdan Sima έγραψε: > Hello! > > > My name is Bogdan and I am from Bucharest, Romania. I am an > undergraduate student in the second year at University Politehnica of > Bucharest. > I reviewed the idea of rewriting the python code in C, and I found it > interesting and challanging. After a quick look after the python > sources I believe i am up to this project. I would like to apply for > GSoC in your organisation. > What should it be the next step I should make? > > > Cheers, > D.B. Sima > _______________________________________________ > https://lists.gnu.org/mailman/listinfo/bug-gnutrition From simadragosbogdan@gmail.com Wed Mar 21 15:22:39 2012 From: simadragosbogdan@gmail.com (Dragos-Bogdan Sima) Date: Wed, 21 Mar 2012 17:22:39 +0200 Subject: [bug-gnutrition] Reimplement in C, GSoC 2012 In-Reply-To: <1332323094.4174.2.camel@pcmagas> References: <1332323094.4174.2.camel@pcmagas> Message-ID: > > @Dragos-Bogdan Sima: I saw it first I will do it. > > @Dimitrios Desyllas: I don't think that this the way things work for GSoC. It is not about who saw it first, but the best compentent and motivated. Good luck though. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pc_magas@yahoo.gr Wed Mar 21 17:04:21 2012 From: pc_magas@yahoo.gr (pc_magas) Date: Wed, 21 Mar 2012 19:04:21 +0200 Subject: [bug-gnutrition] Reimplement in C, GSoC 2012 In-Reply-To: References: <1332323094.4174.2.camel@pcmagas> Message-ID: <1332349461.1816.1.camel@pcmagas-Inspiron-1010> So we can both do it and "the best wins" or something like that or the one that shows the bigest motivation does it? On Τετ, 2012-03-21 at 17:22 +0200, Dragos-Bogdan Sima wrote: > @Dragos-Bogdan Sima: I saw it first I will do it. > > @Dimitrios Desyllas: I don't think that this the way things work for > GSoC. It is not about who saw it first, but the best compentent and > motivated. > > > Good luck though. > _______________________________________________ > https://lists.gnu.org/mailman/listinfo/bug-gnutrition From simadragosbogdan@gmail.com Wed Mar 21 17:26:14 2012 From: simadragosbogdan@gmail.com (Dragos-Bogdan Sima) Date: Wed, 21 Mar 2012 19:26:14 +0200 Subject: [bug-gnutrition] Reimplement in C, GSoC 2012 In-Reply-To: <1332349461.1816.1.camel@pcmagas-Inspiron-1010> References: <1332323094.4174.2.camel@pcmagas> <1332349461.1816.1.camel@pcmagas-Inspiron-1010> Message-ID: believe we should be given a task to complete to show our compentence for a start, but who is the mentor? On Wed, Mar 21, 2012 at 7:04 PM, pc_magas wrote: > So we can both do it and "the best wins" or something like that or the > one that shows the bigest motivation does it? > On Τετ, 2012-03-21 at 17:22 +0200, Dragos-Bogdan Sima wrote: > > @Dragos-Bogdan Sima: I saw it first I will do it. > > > > @Dimitrios Desyllas: I don't think that this the way things work for > > GSoC. It is not about who saw it first, but the best compentent and > > motivated. > > > > > > Good luck though. > > _______________________________________________ > > https://lists.gnu.org/mailman/listinfo/bug-gnutrition > > > > _______________________________________________ > https://lists.gnu.org/mailman/listinfo/bug-gnutrition > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pc_magas@yahoo.gr Wed Mar 21 19:23:44 2012 From: pc_magas@yahoo.gr (pcmagas) Date: Wed, 21 Mar 2012 21:23:44 +0200 Subject: [bug-gnutrition] How mentor will judge who is the most apropriate of taking over reimpementing the Gnutrition Into C Message-ID: <1332357824.2609.4.camel@pcmagas> Good Evening, How the mentor of this project will judje who is the most apropriate to take over the task of reimpementing the Gnutrition in C. I also have seen that the python version sometimes is slow. So I thought how to "speed up" the program using threads. Yours sincerelly, Dimitrios Desyllas From lavinia.bobonete@gmail.com Sun Mar 25 00:06:33 2012 From: lavinia.bobonete@gmail.com (lavinia bobonete) Date: Sun, 25 Mar 2012 02:06:33 +0200 Subject: [bug-gnutrition] [GSoC 2012] GNUtrition Message-ID: Hello, My name is Lavinia Bobonete and I am a 4th year student at Politehnica University of Bucharest (Major in Computer Science). I'm writing to you because I'm highly interested in your proposal for this GSoC season. I have a wide experience in C and MySql Databases, I've made a couple of projects in Python  and I'm also familiar with the basics of SQLite, so there shouldn't be any programming barriers. First of all, I would like to ask you how important is this project for the organization. I'm not so familiar with it, but I saw that there's a significant interest on it, especially on mailing-list. :) I've already downloaded the application and I've taken a look on the source code. I think there will be no problem for me to manage to reimplement the program in C. I'm looking forward to hearing from you and talk some ideas about the project. Hope it's not too late. Thank you, Lavinia From jself@gnu.org Wed Mar 28 17:45:43 2012 From: jself@gnu.org (Jason Self) Date: Wed, 28 Mar 2012 12:45:43 -0400 Subject: [bug-gnutrition] Withdrawing From Summer of Code Message-ID: <20120328164543.GB1442@fencepost.gnu.org> Sorry, folks. While Summer of Code seemed like a great idea after further consideration I'm not sure that I'll have the time to properly mentor people and so I have just made the request to withdraw GNUtrition from the Summer of Code. Sorry for any inconvenience. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jself@gnu.org Sat Mar 31 21:14:03 2012 From: jself@gnu.org (Jason Self) Date: Sat, 31 Mar 2012 16:14:03 -0400 Subject: [bug-gnutrition] GNUtrition Test Release Message-ID: <20120331201403.GA11423@fencepost.gnu.org> A test release of GNUtrition is now available. The test release can be found on alpha.gnu.org: http://alpha.gnu.org/gnu/gnutrition (via HTTP) ftp://alpha.gnu.org/gnu/gnutrition (via FTP) This release is intended to address a bug where recipes are not saved to the MySQL database. Testing is appreciated: 1) Follow the existing INSTALL directions to see that the MySQL database gets correctly setup; both from a 'clean' MySQL install and with an existing MySQL database. I seem to recall that from a clean MySQL install it worked but if you already had MySQL installed then following the instructions resulted in a Python exception. 2) Verify a recipe can be saved, quit the program, and upon a restart pull up the saved recipe. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jself@gnu.org Mon Jun 4 20:57:39 2012 From: jself@gnu.org (Jason Self) Date: Mon, 4 Jun 2012 15:57:39 -0400 Subject: [bug-gnutrition] GNUtrition 0.31.2 Message-ID: <20120604195739.GA28884@gnu.org> GNUtrition version 0.31.2 is available from trunk. The primary differences in this version are notification of updates, and upgrading the food database from SR13 (which was from 1999) to the current SR24. It needs some testing. Is anyone interested in doing that? One thing that still needs addressing is handling people that are updating from the current version, because database updates are needed. That hasn't been implemented yet but I was wondering if anyone might be interested in taking that on? You can get a copy of trunk with this command: bzr branch bzr://bzr.savannah.gnu.org/gnutrition/trunk -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jself@gnu.org Fri Jul 27 18:26:23 2012 From: jself@gnu.org (Jason Self) Date: Fri, 27 Jul 2012 13:26:23 -0400 Subject: [bug-gnutrition] Testing, Please Message-ID: <20120727172623.GA25347@gnu.org> I'm very interested in gathering feedback about the current source code in trunk. A copy can be obtained by running: bzr branch bzr://bzr.savannah.gnu.org/gnutrition/trunk There have been significant changes compared to the current 0.31.1 release. Changes include: * Notifying users of new versions, by checking an online location * Getting rid of SQL -- GNUtrition now uses a SQLite database. People using GNUtrition are no longer expected to be a DBA. :) Upgrades from version 0.31.1 will undergo conversion to SQLite automatically. Testing that is, of course, appreciated. * Updating the database to the current USDA release, SR24 * Many bug fixes, like not prompting users to save changes in a recipe if they didn't actually make any changes. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From sanjay.venkatesh3@gmail.com Tue Sep 11 14:57:06 2012 From: sanjay.venkatesh3@gmail.com (Venkatesh Sanjay) Date: Tue, 11 Sep 2012 19:27:06 +0530 Subject: [bug-gnutrition] GNUtrition -- designing icons Message-ID: Hi, I am interested in working as icon designer for the project -- GNUtrition Gnuid : sanven Kindly do the needful. Thanks, Venkatesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From jself@gnu.org Tue Sep 11 23:34:11 2012 From: jself@gnu.org (Jason Self) Date: Tue, 11 Sep 2012 18:34:11 -0400 Subject: [bug-gnutrition] GNUtrition -- designing icons In-Reply-To: References: Message-ID: <20120911223411.GA28634@gnu.org> Venkatesh Sanjay said: > I am interested in working as icon designer for the project -- GNUtrition Awesome! I think that one of the biggest icons missing in GNUtrition right is an application icon. > Gnuid : sanven > Kindly do the needful. Sure -- I've added you to the project on Savannah. Welcome! -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From brandon@invergo.net Sat Nov 10 11:54:57 2012 From: brandon@invergo.net (Brandon Invergo) Date: Sat, 10 Nov 2012 12:54:57 +0100 Subject: [bug-gnutrition] patch to support staged (DESTDIR) installs Message-ID: <877gpt3c6m.fsf@invergo.net> Hello, Attached is a patch against gnutrition 3.2 to support staged installs using the DESTDIR variable in the Makefiles. This allows gnutrition to be installed successfully with GNU SRC. If there are any problems, please don't hesitate to contact me, but please CC me in any replies to this since I am not a member of this list. Regards, Brandon Invergo -------------- next part -------------- diff -x config.log -x config.status -ru gnutrition-0.32/Makefile.in gnutrition-0.32/Makefile.in --- gnutrition-0.32/Makefile.in 2012-09-01 18:43:08.000000000 +0200 +++ gnutrition-0.32/Makefile.in 2012-11-10 12:44:17.391575616 +0100 @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -41,14 +42,14 @@ for dir in $(SUBDIRS); do \ ${MAKE} -C $$dir install; \ done - mkdir -p ${bindir} - ${INSTALL} run-gnutrition.py ${bindir}/gnutrition - mkdir -p ${prefix}/gnome/apps/Applications/ - ${INSTALL} -m 644 gnutrition.desktop ${prefix}/gnome/apps/Applications/ + mkdir -p $(DESTDIR)${bindir} + ${INSTALL} run-gnutrition.py $(DESTDIR)${bindir}/gnutrition + mkdir -p $(DESTDIR)${prefix}/gnome/apps/Applications/ + ${INSTALL} -m 644 gnutrition.desktop $(DESTDIR)${prefix}/gnome/apps/Applications/ mkinstalldirs: - mkdir -p ${bindir} - mkdir -p ${datadir} + mkdir -p $(DESTDIR)${bindir} + mkdir -p $(DESTDIR)${datadir} clean: for dir in $(SUBDIRS); do \ diff -x config.log -x config.status -ru gnutrition-0.32/data/Makefile.in gnutrition-0.32/data/Makefile.in --- gnutrition-0.32/data/Makefile.in 2012-09-01 18:43:08.000000000 +0200 +++ gnutrition-0.32/data/Makefile.in 2012-11-10 12:44:45.514914056 +0100 @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -27,8 +28,8 @@ all: install: data_prep - mkdir -p ${datadir}/data - ${INSTALL} -m 644 -c *.txt ${datadir}/data + mkdir -p $(DESTDIR)${datadir}/data + ${INSTALL} -m 644 -c *.txt $(DESTDIR)${datadir}/data data_prep: ./prep_data_files.sh *.txt diff -x config.log -x config.status -ru gnutrition-0.32/doc/Makefile.in gnutrition-0.32/doc/Makefile.in --- gnutrition-0.32/doc/Makefile.in 2012-09-01 18:43:08.000000000 +0200 +++ gnutrition-0.32/doc/Makefile.in 2012-11-10 12:46:02.988261395 +0100 @@ -17,6 +17,7 @@ # You should have received a copy of the GNU General Public License # along with GNUtrition. If not, see . +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -40,15 +41,15 @@ rm -rf gnutrition.junk install: gnutrition/book1.html - mkdir -p $(docdir)/stylesheet-images - ${INSTALL} -m 644 $(imagefiles) $(docdir) + mkdir -p $(DESTDIR)$(docdir)/stylesheet-images + ${INSTALL} -m 644 $(DESTDIR)$(imagefiles) $(docdir) for i in gnutrition/*.html ; do \ - ${INSTALL} -m 644 $$i $(docdir) ; \ + ${INSTALL} -m 644 $$i $(DESTDIR)$(docdir) ; \ done for i in gnutrition/stylesheet-images/*.gif ; do \ - ${INSTALL} -m 644 $$i $(docdir)/stylesheet-images ; \ + ${INSTALL} -m 644 $$i $(DESTDIR)$(docdir)/stylesheet-images ; \ done - ${INSTALL} -m 644 topic.dat $(docdir) + ${INSTALL} -m 644 topic.dat $(DESTDIR)$(docdir) uninstall: diff -x config.log -x config.status -ru gnutrition-0.32/intl/Makefile gnutrition-0.32/intl/Makefile --- gnutrition-0.32/intl/Makefile 2012-09-01 18:43:08.000000000 +0200 +++ gnutrition-0.32/intl/Makefile 2012-11-10 12:42:42.554891328 +0100 @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +DESTDIR = PACKAGE = gnutrition VERSION = 0.1 @@ -113,26 +114,26 @@ if test "$(PACKAGE)" = "gettext" \ && test '' = '$(GETTOBJS)'; then \ if test -r $(MKINSTALLDIRS); then \ - $(MKINSTALLDIRS) $(libdir) $(includedir); \ + $(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ else \ - $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \ + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ fi; \ - $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \ - $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \ + $(INSTALL_DATA) intlh.inst $(DESTDIR)$(includedir)/libintl.h; \ + $(INSTALL_DATA) libintl.a $(DESTDIR)$(libdir)/libintl.a; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext"; then \ if test -r $(MKINSTALLDIRS); then \ - $(MKINSTALLDIRS) $(gettextsrcdir); \ + $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ else \ - $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ fi; \ - $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \ + $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ dists="$(DISTFILES.common)"; \ for file in $$dists; do \ - $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \ + $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ diff -x config.log -x config.status -ru gnutrition-0.32/intl/Makefile.in gnutrition-0.32/intl/Makefile.in --- gnutrition-0.32/intl/Makefile.in 2012-09-01 18:43:08.000000000 +0200 +++ gnutrition-0.32/intl/Makefile.in 2012-11-10 12:47:20.914942359 +0100 @@ -14,6 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +DESTDIR = PACKAGE = @PACKAGE@ VERSION = @VERSION@ @@ -113,26 +114,26 @@ if test "$(PACKAGE)" = "gettext" \ && test '@INTLOBJS@' = '$(GETTOBJS)'; then \ if test -r $(MKINSTALLDIRS); then \ - $(MKINSTALLDIRS) $(libdir) $(includedir); \ + $(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ else \ - $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \ + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ fi; \ - $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \ - $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \ + $(INSTALL_DATA) intlh.inst $(DESTDIR)$(includedir)/libintl.h; \ + $(INSTALL_DATA) libintl.a $(DESTDIR)$(libdir)/libintl.a; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext"; then \ if test -r $(MKINSTALLDIRS); then \ - $(MKINSTALLDIRS) $(gettextsrcdir); \ + $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ else \ - $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ fi; \ - $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \ + $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ dists="$(DISTFILES.common)"; \ for file in $$dists; do \ - $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \ + $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ From bransoj@hotmail.com Fri Nov 23 01:23:21 2012 From: bransoj@hotmail.com (Joshua Branson) Date: Thu, 22 Nov 2012 20:23:21 -0500 Subject: [bug-gnutrition] GNUtrition icon Message-ID: Hello, My name's Joshua Branson, and I'd be interested in making an icon for GNUtrition. Disclaimer: I have no prior experience. I've looked up a short GIMP tutorial on how to perhaps get started: http://www.gimp.org/tutorials/Creating_Icons/ What size do you want the icon to be? 48x48 pixels, which is the standard Gnome icon size? Let me know, Joshua From jself@gnu.org Fri Nov 23 17:04:21 2012 From: jself@gnu.org (Jason Self) Date: Fri, 23 Nov 2012 12:04:21 -0500 Subject: [bug-gnutrition] GNUtrition icon In-Reply-To: References: Message-ID: <20121123170421.GA30631@gnu.org> > My name's Joshua Branson, and I'd be interested in making an icon > for GNUtrition. Wonderful! > What size do you want the icon to be? 48x48 pixels, which is the > standard Gnome icon size? In reviewing the current version of the GNOME Human Interface Guidelines [0] it refers to a few differen sizes [1] and provides guidlines on icon development. It seems good to follow the GNOME Human Interface Guidelines here. [0] http://developer.gnome.org/hig-book/ [1] http://developer.gnome.org/hig-book/3.6/icons-types.html.en -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From foo-script@o2.pl Fri Dec 28 21:38:55 2012 From: foo-script@o2.pl (Adam 'foo-script' Rakowski) Date: Fri, 28 Dec 2012 22:38:55 +0100 Subject: [bug-gnutrition] Plans for gnutrition Message-ID: <50DE116F.8060107@o2.pl> Hi! I'd like to get involved. I remember that you have some plans to rewrite it into C(++). Are you still interested in development of implementation in Python ? Beside this, I'd like to add a feature of running Gnutrition 3.2 and 3.1 on single machine. At this moment each version has own config file format. Wouldn't it be good to store config in ~/.gnutrition/VERSION ? -- Pozdrawiam AR From jself@gnu.org Sat Dec 29 01:42:12 2012 From: jself@gnu.org (Jason Self) Date: Fri, 28 Dec 2012 20:42:12 -0500 Subject: [bug-gnutrition] Plans for gnutrition In-Reply-To: <50DE116F.8060107@o2.pl> References: <50DE116F.8060107@o2.pl> Message-ID: <20121229014212.GB18223@gnu.org> Adam 'foo-script' Rakowski wrote: > I'd like to get involved. Great! Welcome! > I remember that you have some plans to > rewrite it into C(++). Are you still interested in development of > implementation in Python ? Yes, and yes. It would likely be a while before any C reimplementation was ready. > Beside this, I'd like to add a feature of running Gnutrition 3.2 and 3.1 > on single machine. At this moment each version has own config file > format. Wouldn't it be good to store config in ~/.gnutrition/VERSION ? Probably. If you could send a patch I would happily apply it. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From Cory.koch@eng.utoledo.edu Mon Mar 12 21:11:12 2012 From: Cory.koch@eng.utoledo.edu (Cory Koch) Date: Mon, 12 Mar 2012 17:11:12 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 Message-ID: Bastien wrote: >Date: Sun, 11 Mar 2012 23:02:16 +0100 >From: Bastien >To: Jason Self >Subject: Re: GNUtrition >User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) > >Hi Jason, > >I'm from OLPC France (http://olpc-france.org) and we spent some time >last year designing mockups for a nutrition activity for Sugar, the >platform that runs on the XO (the computers from the OLPC Foundation -> http://laptop.org) > >I'm interesting in GNUtrition, as our project was somehow related. > >While trying to install GNUtrition on my ArchLinux machine, I got >this error > >,---- >| [guerry@myhost gnutrition-0.31]$ ./configure >| checking for python... /usr/bin/python >| checking for python >= 2.2... yes >| File "", line 1 >| import sys; print sys.version[:3] >| ^ >| SyntaxError: invalid syntax >| File "", line 1 >| import sys; print sys.prefix >| ^ >| SyntaxError: invalid syntax >| checking for a BSD-compatible install... /bin/install -c >| checking whether make sets $(MAKE)... yes >| checking for pygtk... configure: error: >| **** The python interpreter can't find the python bindings for gtk. >`---- > >pygtk-2.24.0-3 is installed on my system and python is bound to >python3.2. > >Do you know what's wrong in my setup? > >Do you have screenshots of your application? > >I'm looking forward testing GNUtrition, as it could help relaunch >our nutrition project... > >Thanks for your help! > >-- > Bastien ---------------------------- Hi Bastien, Bastien wrote: >Do you know what's wrong in my setup? Yes, Python 3.x is not backward compatible with Python 2.x. So you will need to install Python 2.7 or anything after 2.2. (which may already be on your system, you can run the command ' whereis python ' to see which versions are installed) Then you will need to re-run the configure script with the PYTHON varible set to the path of the binary of Python 2.x. On my computer it is this: ./configure PYTHON=/usr/bin/python2.7 >Do you have screenshots of your application? There are a few screen shots in this user manual, which is currently incomplete but I hope it helps. [1] [1] http://www.gnu.org/software/gnutrition/manual/index.html -- Cory Koch Project Member From bzg@altern.org Thu Mar 15 08:19:35 2012 From: bzg@altern.org (Bastien) Date: Thu, 15 Mar 2012 09:19:35 +0100 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: (Cory Koch's message of "Mon, 12 Mar 2012 17:11:12 -0400") References: Message-ID: <87399ai8dk.fsf@laptop.org> Hi Cory, thanks for your help! Cory Koch writes: > Yes, Python 3.x is not backward compatible with Python 2.x. > So you will need to install Python 2.7 or anything after 2.2. > (which may already be on your system, you can run the command > ' whereis python ' > to see which versions are installed) > > Then you will need to re-run the configure script with the PYTHON > varible set to the path of the binary of Python 2.x. > > On my computer it is this: > ./configure PYTHON=/usr/bin/python2.7 That's it. I managed to run ./configure correctly, but I got this error while running "make": ,---- | [guerry@myhost gnutrition-0.31]$ make | for dir in src data pixmaps doc rpm debian; do \ | make -C $dir all; \ | done | make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/src » | chmod +x ../py-compile | ../py-compile *.py | File "", line 5 | print 'Byte-compiling python modules...' | ^ | SyntaxError: invalid syntax | make[1]: *** [all] Erreur 1 | make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/src » | make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/data » | make[1]: Rien à faire pour « all ». | make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/data » | make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/pixmaps » | make[1]: Rien à faire pour « all ». | make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/pixmaps » | make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/doc » | db2html gnutrition.sgml | make[1]: db2html : commande introuvable | make[1]: *** [create-html] Erreur 127 | make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/doc » | make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/rpm » | make[1]: Rien à faire pour « all ». | make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/rpm » | make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/debian » | make[1]: Rien à faire pour « all ». | make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/debian » `---- Weird - because it looks like another python3 vs python2 error to me... but I don't speak python and cannot check syntactic errors. Do you have any idea? >>Do you have screenshots of your application? > > There are a few screen shots in this user manual, which is currently incomplete > but I hope it helps. [1] That helps a lot, thanks again. Best, -- Bastien From Cory.koch@eng.utoledo.edu Sat Mar 17 22:21:13 2012 From: Cory.koch@eng.utoledo.edu (Cory Koch) Date: Sat, 17 Mar 2012 18:21:13 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <87399ai8dk.fsf@laptop.org> References: <87399ai8dk.fsf@laptop.org> Message-ID: Hi Bastien, Bastien said: >thanks for your help! You're welcome! >That's it. I managed to run ./configure correctly, but I got >this error while running "make": > >,---- >| [guerry@myhost gnutrition-0.31]$ make >| for dir in src data pixmaps doc rpm debian; do \ >| make -C $dir all; \ >| done >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/src » >| chmod +x ../py-compile >| ../py-compile *.py >| File "", line 5 >| print 'Byte-compiling python modules...' >| ^ >| SyntaxError: invalid syntax >| make[1]: *** [all] Erreur 1 >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/src » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/data » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/data » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/pixmaps » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/pixmaps » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/doc » >| db2html gnutrition.sgml >| make[1]: db2html : commande introuvable >| make[1]: *** [create-html] Erreur 127 >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/doc » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/rpm » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/rpm » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/debian » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/debian » >`---- > >Weird - because it looks like another python3 vs python2 error to me... >but I don't speak python and cannot check syntactic errors. > >Do you have any idea? You're right; it does seem to be another issue with the version of Python. So just run make with the PYTHON varible set to the path of a 2.x version On my computer it looks like: make PYTHON=/usr/bin/python2.7 just make sure to replace 2.7 with your version of 2.x python. >>>Do you have screenshots of your application? >> >> There are a few screen shots in this user manual, which is currently incomplete >> but I hope it helps. [1] > >That helps a lot, thanks again. You're welcome, I am glad that it is some help to you! --- Cory Koch Project Member From Cory.koch@eng.utoledo.edu Sun Mar 18 01:47:38 2012 From: Cory.koch@eng.utoledo.edu (Cory Koch) Date: Sat, 17 Mar 2012 21:47:38 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: References: <87399ai8dk.fsf@laptop.org> Message-ID: Hi Bastien, Bastien said: >thanks for your help! You're welcome! >That's it.  I managed to run ./configure correctly, but I got >this error while running "make": > >,---- >| [guerry@myhost gnutrition-0.31]$ make >| for dir in src data pixmaps doc rpm debian; do \ >|       make -C $dir all; \ >| done >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/src » >| chmod +x ../py-compile >| ../py-compile *.py >|   File "", line 5 >|     print 'Byte-compiling python modules...' >|                                            ^ >| SyntaxError: invalid syntax >| make[1]: *** [all] Erreur 1 >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/src » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/data » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/data » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/pixmaps » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/pixmaps » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/doc » >| db2html gnutrition.sgml >| make[1]: db2html : commande introuvable >| make[1]: *** [create-html] Erreur 127 >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/doc » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/rpm » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/rpm » >| make[1] : on entre dans le répertoire « /home/guerry/install/src/gnutrition-0.31/debian » >| make[1]: Rien à faire pour « all ». >| make[1] : on quitte le répertoire « /home/guerry/install/src/gnutrition-0.31/debian » >`---- > >Weird - because it looks like another python3 vs python2 error to me... >but I don't speak python and cannot check syntactic errors. > >Do you have any idea? You're right; it does seem to be another issue with the version of Python. So just run make with the PYTHON varible set to the path of a 2.x version On my computer it looks like: make PYTHON=/usr/bin/python2.7 just make sure to replace 2.7 with your version of 2.x python. >>>Do you have screenshots of your application? >> >> There are a few screen shots in this user manual, which is currently incomplete >> but I hope it helps. [1] > >That helps a lot, thanks again. You're welcome, I am glad that it is some help to you! --- Cory Koch Project Member -- Cory Koch CSE Undergrad The University of Toledo Cell:419-277-2032 Email:cory.koch@eng.utoledo.edu Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From bzg@altern.org Sun Mar 18 11:48:31 2012 From: bzg@altern.org (Bastien) Date: Sun, 18 Mar 2012 12:48:31 +0100 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: (Cory Koch's message of "Sat, 17 Mar 2012 18:21:13 -0400") References: <87399ai8dk.fsf@laptop.org> Message-ID: <87aa3e3zao.fsf@laptop.org> Hi Cory, Cory Koch writes: > You're right; it does seem to be another issue with the version of Python. > > So just run make with the PYTHON varible set to the path of a 2.x version > On my computer it looks like: > > make PYTHON=/usr/bin/python2.7 > > just make sure to replace 2.7 with your version of 2.x python. I'm making progress -- configure && make && make install went okay for python2.7. Now I got this error: ,---- | [guerry@myhost ~]$ gnutrition | Traceback (most recent call last): | File "/usr/local/bin/gnutrition", line 28, in | import src.run_app | File "/usr/local/share/gnutrition/src/run_app.py", line 18, in | import config | ImportError: No module named config `---- Still something wrong on my side? Thanks! -- Bastien From simos.lists@googlemail.com Thu Mar 22 14:33:25 2012 From: simos.lists@googlemail.com (Simos Xenitellis) Date: Thu, 22 Mar 2012 16:33:25 +0200 Subject: [help-gnutrition] GSoC projects Message-ID: Are any of these GSoC project ideas still pending? http://www.gnu.org/software/soc-projects/ideas-2012.html#gnutrition >From what I saw in the code, 1. GNUtrition is now in C 2. Switched to SQLite 3. The food database is in version S23 (latest is S24). Are there any task available for GSoC? (I am looking to suggest work for students, not for myself). What I saw is missing is additional l10n support a. Localise food names. b. Localise food ingredient names. c. UI and usability fixes (i.e. show ingredient details as table, not plain text). Is that sufficient for a GSoC project? Simos From cory.koch@eng.utoledo.edu Sat Jul 7 21:59:14 2012 From: cory.koch@eng.utoledo.edu (Cory Koch) Date: Sat, 7 Jul 2012 16:59:14 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <87aa3e3zao.fsf@laptop.org> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> Message-ID: <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> Hi Bastien, I think I may have just figured out how to fix your problem, as I was having a similar problem the other day with a Python app. Execute the commands below and then try to run gnutrition: // First we will check which version of python your computer is using as // "default" I am assuming that it will be Python 3 if so then :) continue // to step two. 1.) python --version // Now that we have found that the "Default" version of Python is 3 we will // change the symbolic link. 2.) whereis python ls -l //Observe that python is just a symbolic link to a version of python. // We will now remove the old symbolic link so that we can replace it. rm /usr/bin/python // Note make sure to replace with your location. // Now that we have removed the old symbolic link we will create a new one 3.) ln -s /usr/bin/python2 /usr/bin/python // NOTE: these are the locations on // my computer they may differ on // yours. NOTE: the symbolic link python2 may or may not exist on your machine, so first check that it does by using whereis python use ls -l on the path of python2 if it exists to verify that it points to python 2.x.x if it does not exist you can create it with ln -s /usr/bin/python2.7 /usr/bin/python2 Now that we have changed the symbolic link to point to python2 4.) we can now run gnutrion with gnutrition. For further information on symbolic links see \ man ln I hope that this fixes you problem sincerely, Cory Koch cory.koch@eng.utoledo.edu On Sun, 18 Mar 2012 12:48:31 +0100 Bastien wrote: > Hi Cory, > > Cory Koch writes: > > > You're right; it does seem to be another issue with the version of Python. > > > > So just run make with the PYTHON varible set to the path of a 2.x version > > On my computer it looks like: > > > > make PYTHON=/usr/bin/python2.7 > > > > just make sure to replace 2.7 with your version of 2.x python. > > I'm making progress -- configure && make && make install went > okay for python2.7. > > Now I got this error: > > ,---- > | [guerry@myhost ~]$ gnutrition > | Traceback (most recent call last): > | File "/usr/local/bin/gnutrition", line 28, in > | import src.run_app > | File "/usr/local/share/gnutrition/src/run_app.py", line 18, in > | import config > | ImportError: No module named config > `---- > > Still something wrong on my side? > > Thanks! > > -- > Bastien > From jself@gnu.org Sat Jul 7 22:23:38 2012 From: jself@gnu.org (Jason Self) Date: Sat, 7 Jul 2012 17:23:38 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> Message-ID: <20120707212338.GA17355@gnu.org> I would be very interested to know what people think about taking the plunge and migrating to Python 3, considering that it's not backward compatible. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From bzg@altern.org Mon Jul 9 06:58:12 2012 From: bzg@altern.org (Bastien) Date: Mon, 09 Jul 2012 07:58:12 +0200 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> (Cory Koch's message of "Sat, 7 Jul 2012 16:59:14 -0400") References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> Message-ID: <87sjd1h3wr.fsf@altern.org> Hi Cory, I do have /usr/bin/python2 and I would expect the configure script to catch this and use the correct python version when compiling. This seems easier than changing symbolic links locally, no? All best, -- Bastien From jself@gnu.org Mon Jul 9 08:03:53 2012 From: jself@gnu.org (Jason Self) Date: Mon, 9 Jul 2012 03:03:53 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <87sjd1h3wr.fsf@altern.org> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> <87sjd1h3wr.fsf@altern.org> Message-ID: <20120709070353.GA22063@gnu.org> Bastien wrote: > This seems easier than changing symbolic links locally, no? Indeed it does. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From cory.koch@eng.utoledo.edu Tue Jul 10 23:29:13 2012 From: cory.koch@eng.utoledo.edu (Cory Koch) Date: Tue, 10 Jul 2012 18:29:13 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <20120707212338.GA17355@gnu.org> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> <20120707212338.GA17355@gnu.org> Message-ID: <20120710182913.78990cb3@TK-laptop.att.net> I think that it's a good idea, are we still porting it over to C as well? On Sat, 7 Jul 2012 17:23:38 -0400 Jason Self wrote: > I would be very interested to know what people think about taking the > plunge and migrating to Python 3, considering that it's not backward > compatible. > > -- > Jason Self > Project Maintainer > GPG Key: 47486962 From jself@gnu.org Wed Jul 11 00:16:20 2012 From: jself@gnu.org (Jason Self) Date: Tue, 10 Jul 2012 19:16:20 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <20120710182913.78990cb3@TK-laptop.att.net> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> <20120707212338.GA17355@gnu.org> <20120710182913.78990cb3@TK-laptop.att.net> Message-ID: <20120710231620.GA16965@gnu.org> Cory Koch wrote: > I think that it's a good idea, are we still porting it over to C as well? It's still on my To Do list but I'm open to being talked out of it if anyone wants to try. :) I'm not sure how much effort would be involved in the switch to Python 3. I suppose it depends on how good the 2to3 thing is which I've never used, and if it would even be a worthwhile use of time if the change to C is going happen? -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From cory.koch@eng.utoledo.edu Wed Jul 11 02:03:50 2012 From: cory.koch@eng.utoledo.edu (Cory Koch) Date: Tue, 10 Jul 2012 21:03:50 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <20120710231620.GA16965@gnu.org> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> <20120707212338.GA17355@gnu.org> <20120710182913.78990cb3@TK-laptop.att.net> <20120710231620.GA16965@gnu.org> Message-ID: <20120710210350.2d40e6a5@eng.utoledo.edu> Jason Self wrote: > It's still on my To Do list but I'm open to being talked out of it if > anyone wants to try. :) > > I'm not sure how much effort would be involved in the switch to > Python 3. I suppose it depends on how good the 2to3 thing is which > I've never used, and if it would even be a worthwhile use of time if > the change to C is going happen? If the plan is to port to C (which I am still aboard with(waiting on paper work still though)) then it is probably not worth the time to upgrade from 2to3. I think that most "main stream" distros of GNU/Linux for example Debian, Fedora, and Ubuntu still have python pointing to python2 by default. So maybe we should just put in a step in the README or INSTALL for checking the version of python that the python symlink is pointing to and then have the user change it to python2. Or is there a way that we can do this with the GNU autotools? Or I suppose that the script could automatically but then we might break other applications that _are_ using python3. For instance I figured out that issue with the symbolic links when I was trying to use Decibel media player (which uses Python2) and my Gentoo install had Python3 as the default. In that case I just changed the shell script that calls the Python app to have it call the direct python2.7 instead of the python symbolic link. I briefly looked over the Gnutrition code that starts the app but there did not appear to be a way to specify this other then to change the #!/bin/python to #!/bin/python2.7 . From jself@gnu.org Thu Jul 12 16:16:35 2012 From: jself@gnu.org (Jason Self) Date: Thu, 12 Jul 2012 11:16:35 -0400 Subject: [help-gnutrition] Problem installing GNUtrition, Python 3.2 In-Reply-To: <20120710210350.2d40e6a5@eng.utoledo.edu> References: <87399ai8dk.fsf@laptop.org> <87aa3e3zao.fsf@laptop.org> <20120707165914.f72823fccd9d45bb3bd372a4@eng.utoledo.edu> <20120707212338.GA17355@gnu.org> <20120710182913.78990cb3@TK-laptop.att.net> <20120710231620.GA16965@gnu.org> <20120710210350.2d40e6a5@eng.utoledo.edu> Message-ID: <20120712151634.GA1825@gnu.org> I'm sure there's a way to automagically determine if /usr/bin/python is a compatible version (or not) and if not to check if the same is true for a /usr/bin/python2. Patches welcome, otherwise I'll look into it when I get some time later. -- Jason Self Project Maintainer GPG Key: 47486962 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: