[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Papo-hackers] No puedo ver el Primer ejemplo de Cimarron+Modeling
From: |
John Lenton |
Subject: |
Re: [Papo-hackers] No puedo ver el Primer ejemplo de Cimarron+Modeling |
Date: |
Wed, 31 Mar 2004 18:13:24 -0300 |
User-agent: |
Mutt/1.3.28i |
Sender: John Lenton <address@hidden>
On Wed, Mar 31, 2004 at 04:19:59PM -0300, visualnex wrote:
> Estube tratando de probar el ejemplo pero tengo problemas para que funcione
> cimarron.
> Modeling funciona bien. Las pruebas fueron las siguientes:
>
>
> baje del cvs de papo/cimarron el proyecto al 30/03/2004 y lo copie
> a la carpeta /home/marcelo/cimarron. (Lo baje archivo por archivo)
>
> al ejecutar make install obtengo el siguiente error:
> #------
> address@hidden:~$ cd cimarron
> address@hidden:~/cimarron$ ls
> copying doc images Makefile po pru src test
> address@hidden:~/cimarron$ make install
> PYTHONPATH=src: python -c 'f=file(".config", "w");from Utils.Parser import
> Parser; p=Parser(); p.readfp(file("src/cimarron.cfg"));
> [f.write("%s=%s\nexport %s\n" % (K, p.getlist("DEFAULT", k)[0], K)) for k, K
> in [(i, i.upper()+"_CONF") for i in
> ("locales","images","shared","prefix","config_files")]]' || rm .config
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> NameError: name 'file' is not defined
> rm: no se puede borrar `.config': No existe el fichero o el directorio
> make: *** [.config] Error 1
aparentemente tu 'python' es python2.1 o anterior. Necesitás 2.2 o
posterior. Recomiendado 2.3 o posterior, porque hace mejor el tema de
linearización del grafo de herencia, y anda más rápido. Necesitás 2.2
o superior porque usamos clases `nuevas'.
Si tenés instalado python 2.2 pero no es 'python', editá el Makefile.
>
> #------
> Si quiero ejecutar el hello.py de cimarron/doc
> me da el error
> address@hidden:~/cimarron/doc$ PAYTHONPATH=/home/marcelo/cimarron/src
> address@hidden:~/cimarron/doc$ python2.2 hello.py
> Traceback (most recent call last):
> File "hello.py", line 4, in ?
> import cimarron
> ImportError: No module named cimarron
probá con
PYTHONPATH="$HOME/cimarron/src:$PYTHONPATH" python2.2 hello.py
luego si eso funciona podés poner
export PYTHONPATH="$HOME/cimarron/src:$PYTHONPATH"
en tu .profile, .bashrc, o donde fuere para que se ejecute todas las
veces.
> address@hidden:~/cimarron/src$ ls
> cimarron.cfg cimarron.pyc Generic hello.py mvc.py
> cimarron.py example.py Gtk2 Makefile Utils
> address@hidden:~/cimarron/src$ python2.2 hello.py
> Traceback (most recent call last):
> File "hello.py", line 4, in ?
> import cimarron
> File "cimarron.py", line 61, in ?
> _ = translation("cimarron", __config.get("DEFAULT", "locales")).ugettext
> File "/usr/lib/python2.2/gettext.py", line 241, in translation
> raise IOError(ENOENT, 'No translation file found for domain', domain)
> IOError: [Errno 2] No translation file found for domain: 'cimarron'
> address@hidden:~/cimarron/src$
no has hecho `make install' con éxito.
--
John Lenton (address@hidden) -- Random fortune:
The sum of the intelligence of the world is constant. The population is,
of course, growing.