Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-714

Traceback when simplejson < 2.1.0 is installed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Linux

    • Patch

    Description

      When simplejson 2.0.9 (the version available in RHEL 6) is installed, the following traceback occurs when attempting to use libcloud:

      Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/salt/loader.py", line 951, in _load_module
      ), fn_, fpath, desc)
      File "/usr/lib/python2.6/site-packages/salt/cloud/clouds/rackspace.py", line 46, in <module>
      from libcloud.compute.base import NodeState
      File "/usr/lib/python2.6/site-packages/libcloud/compute/base.py", line 32, in <module>
      from libcloud.pricing import get_size_price
      File "/usr/lib/python2.6/site-packages/libcloud/pricing.py", line 26, in <module>
      JSONDecodeError = json.JSONDecodeError
      AttributeError: 'module' object has no attribute 'JSONDecodeError'

      Upgrading to simplejson 2.1.0 or greater fixes this issue. Applying the following fix to libcloud should resolve the issue: http://www.fpaste.org/225608/49936143/

      Attachments

        Activity

          People

            Unassigned Unassigned
            terminalmage Erik Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: