[pyar] El libro de web2py: 5a edición

Mariano Reingart reingart en gmail.com
Mar Ago 6 11:55:53 ART 2013


2013/8/6 Luis <esteban en princesa.pri.sld.cu>:
> On Fri, 02 Aug 2013 08:20:22 -0400, Alan Etkin <spametki en gmail.com> wrote:
>
>> Ya está disponible online la traducción de la 5a edición del manual de
>> web2py. La dirección para idioma español es
>>
>> http://www.web2py.com/books/default/chapter/41
>>
>
> Ya tengo el material  :)
>
> Resulta que nunca he trabajado con este framework web y cuando ejecuto,
>
> python web2py.py
>
> Me tira esto,
>
> esteban en jerusalen:~/Desktop/python/web2py/software/web2py$ python web2py.py
> -S welcome
> Traceback (most recent call last):
>   File "web2py.py", line 17, in <module>
>     import gluon.widget
>   File
> "/home/esteban/Desktop/python/web2py/software/web2py/gluon/widget.py", line
> 29, in <module>
>     from main import HttpServer
>   File "/home/esteban/Desktop/python/web2py/software/web2py/gluon/main.py",
> line 35, in <module>
>     from globals import Request, Response, Session
>   File
> "/home/esteban/Desktop/python/web2py/software/web2py/gluon/globals.py", line
> 18, in <module>
>     from compileapp import run_view_in
>   File
> "/home/esteban/Desktop/python/web2py/software/web2py/gluon/compileapp.py",
> line 28, in <module>
>     from sql import SQLDB, SQLField, DAL, Field
>   File "/home/esteban/Desktop/python/web2py/software/web2py/gluon/sql.py",
> line 44, in <module>
>     from serializers import json
>   File
> "/home/esteban/Desktop/python/web2py/software/web2py/gluon/serializers.py",
> line 9, in <module>
>     import contrib.simplejson as simplejson
>   File
> "/home/esteban/Desktop/python/web2py/software/web2py/gluon/contrib/simplejson/__init__.py",
> line 238, in <module>
>     _default_decoder = JSONDecoder(encoding=None, object_hook=None)
>   File
> "/home/esteban/Desktop/python/web2py/software/web2py/gluon/contrib/simplejson/decoder.py",
> line 322, in __init__
>     self.scan_once = make_scanner(self)
> AttributeError: 'JSONDecoder' object has no attribute 'object_pairs_hook'
> esteban en jerusalen:~/Desktop/python/web2py/software/web2py$
>
> Quisiera saber qué debo hacer con esto:  'JSONDecoder' object has no
> attribute 'object_pairs_hook'

¿Que versión de web2py estas usando?
¿Que versión de python?
¿Tenes instalado alguna biblioteca en especial para manejo de JSON?

> Debo instalar algo más o será que mi web2py no está bueno?

No deberías tener que descargar nada adicional, posiblemente hayas
descargado una versión de desarrollo de web2py, te recomiendo para
empezar bajar la versión estable:

http://www.web2py.com/examples/default/download

> Agredezco anticipadamente cualquier sugerencia.
>

Cualquier duda avisanos, recordá que esta el grupo de usuarios de
web2py en español, donde seguramente también te puedan ayudar con
estas consultas puntuales:

https://groups.google.com/forum/?fromgroups#!forum/web2py-usuarios

Sds

Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com


More information about the pyar mailing list