"error_message" : "Cannot encode object

18 views
Skip to first unread message

Will Du

unread,
Dec 24, 2013, 4:11:09 PM12/24/13
to bambo...@googlegroups.com
Hi folks,
Below is how I install bamboo in Ubuntu 12

sudo apt-get install python-pip
sudo apt-get install python-dev
sudo apt-get install build-essential
sudo apt-get install freetype*
sudo apt-get install curl 
apt-get install gfortran libatlas-base-dev
unzip master.zip
cd bamboo-master
$ ./scripts/install.sh

To run the server
$ celery worker --config=bamboo.config.celeryconfig
$ python ./scripts/run_server.py

Post files: 
{"id": "579a55577a9649d2b423eb3d2426642f"}

To check the dat with curl. However, it returns nothing.

I check the data in the mongo, I find as follows
{
        "^^dataset_id" : "579a55577a9649d2b423eb3d2426642f",
        "^^linked_datasets" : {

        },
        "_id" : ObjectId("52b9f30f89b1a72a99ed7176"),
        "created_at" : "2013-12-24 20:48:15",
        "error_message" : "Cannot encode object: 19",
        "num_columns" : 15,
        "num_rows" : 19,
        "pending_updates" : [ ],
        "schema" : {
                "rating" : {
                        "simpletype" : "string",
                        "cardinality" : 2,
                        "olap_type" : "dimension",
                        "label" : "rating"
                },
                "gps_longitude" : {
                        "simpletype" : "string",
                        "cardinality" : 19,
                        "olap_type" : "dimension",
                        "label" : "gps_longitude"
                },
                "location_name" : {
                        "simpletype" : "string",
                        "cardinality" : 17,
                        "olap_type" : "dimension",
                        "label" : "location_name"
                },
                "submit_date" : {
                        "simpletype" : "datetime",
                        "cardinality" : 14,
                        "olap_type" : "measure",
                        "label" : "submit_date"
                },
                "gps_alt" : {
                        "simpletype" : "string",
                        "cardinality" : 13,
                        "olap_type" : "dimension",
                        "label" : "gps_alt"
                },
                "comments" : {
                        "simpletype" : "string",
                        "cardinality" : 12,
                        "olap_type" : "dimension",
                        "label" : "comments"
                },
                "_id" : {
                        "simpletype" : "string",
                        "cardinality" : 2,
                        "olap_type" : "dimension",
                        "label" : "_id"
                },
                "food_photo" : {
                        "simpletype" : "string",
                        "cardinality" : 19,
                        "olap_type" : "dimension",
                        "label" : "food_photo"
                },
                "amount" : {
                        "simpletype" : "float",
                        "cardinality" : 15,
                        "olap_type" : "measure",
                        "label" : "amount"
                },
                "risk_factor" : {
                        "simpletype" : "string",
                        "cardinality" : 2,
                        "olap_type" : "dimension",
                        "label" : "risk_factor"
                },
                "gps_latitude" : {
                        "simpletype" : "string",
                        "cardinality" : 19,
                        "olap_type" : "dimension",
                        "label" : "gps_latitude"
                },
                "food_type" : {
                        "simpletype" : "string",
                        "cardinality" : 8,
                        "olap_type" : "dimension",
                        "label" : "food_type"
                },
                "_percentage_complete" : {
                        "simpletype" : "string",
                        "cardinality" : 1,
                        "olap_type" : "dimension",
                        "label" : "_percentage_complete"
                },
                "gps_precision" : {
                        "simpletype" : "string",
                        "cardinality" : 16,
                        "olap_type" : "dimension",
                        "label" : "gps_precision"
                },
                "gps" : {
                        "simpletype" : "string",
                        "cardinality" : 19,
                        "olap_type" : "dimension",
                        "label" : "gps"
                }
        },
        "state" : "failed",
        "updated_at" : "2013-12-24 20:48:15"
}


I wonder what the "error_message" : "Cannot encode object" mean? Can anyone help to see if I install step is correct? what's the error of encode.

Reply all
Reply to author
Forward
0 new messages