[help-gnutrition] Problem installing GNUtrition, Python 3.2
Bastien
bzg@altern.org
Thu Mar 15 08:19:35 GMT 2012
Hi Cory,
thanks for your help!
Cory Koch <Cory.koch@eng.utoledo.edu> 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 "<string>", 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
More information about the GNUtrition
mailing list