Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-206

examples/python/ex_access.py is broken

    • Type: Icon: Task Task
    • Resolution: Done
    • WT1.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      The example python script doesn't match the test suite API (the wrong number of arguments to wiredtiger.wiredtiger_open, for example).

      Also, I can't run it from the build_posix directory. If I try running it under Python, it can't import wiredtiger:

      % python ../examples/python/ex_access.py
      Traceback (most recent call last):
        File "../examples/python/ex_access.py", line 32, in <module>
          import wiredtiger
      ImportError: No module named wiredtiger
      

      and if I directly execute it, it just hangs:

      % ../examples/python/ex_access.py
      load: 0.04  cmd: env 26349 [runnable] 0.94r 0.19u 0.74s 9% 596k
      load: 0.04  cmd: env 26349 [runnable] 1.13r 0.24u 0.89s 10% 28k
      load: 0.04  cmd: env 26349 [runnable] 1.30r 0.29u 1.00s 12% 224k
      load: 0.04  cmd: env 26349 [runnable] 1.46r 0.33u 1.12s 13% 424k
      load: 0.04  cmd: env 26349 [runnable] 1.60r 0.36u 1.23s 15% 928k
      load: 0.04  cmd: env 26349 [runnable] 1.76r 0.41u 1.34s 16% 180k
      

      we should probably run this Python example code as part of running the test suite, just to be sure it works?

      Ditto the example C code?

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: