Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-313

_cbsonmodule problems on ARM processors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.11, 2.1.1
    • Fix Version/s: 2.7
    • Component/s: None
    • Labels:
    • Environment:
      Linux Debian armel linux 2.6.32-5-orion5x armv5tel
       NAS Qnap 109 CPU Marvell Orion 88F5182 A2, 500 MHz
       MongoDB

      Description

      When doing drop or find on a collection Python returns invalid BSON.
      The collection has to be filled with a couple of entries.

      The script in the end is an example.

      Drop also returns the error but the connection is dropped.

      There could be a problem with BSON,
      the PHP driver also faults, see php issue https://jira.mongodb.org/browse/PHP-267.

      I'm using mongodb from a Qnap server (version 1.8) https://github.com/skrabban/mongo-nonx86.

      I haven't tested remote from python because the behavior is similar to the PHP issue mentioned.

      -----------------------------------------------------------------

      #!/usr/bin/python -w'
      # -*- encoding: utf-8
       
      import sys
      if len(sys.argv)>1:
         computer = sys.argv[1]
      else:
         computer = 'localhost'
       
      from pymongo import Connection
      collection = Connection(computer).test.test
       
      collection.drop()
       
      docs = [
         {'nr':1},
         {'dict':{'nr':1,'str':'2'},},
      ]
       
      for d in docs:
         collection.insert(d)
         for o in collection.find(): print o
         print "..."

        Attachments

          Activity

            People

            Assignee:
            behackett Bernie Hackett
            Reporter:
            mthef Martin Insulander
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: