Skip to content

PlotlyJSONEncoder doesn't work with simplejson installed #1556

Closed
@jayvdb

Description

@jayvdb

Similar to past issues (#415), installation of simplejson breaks plotly.py.

Example failure:

======================================================================
ERROR: test_default_plot_generates_expected_html (test_offline.PlotlyOfflineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/abuild/rpmbuild/BUILD/plotly.py-3.9.0/plotly/tests/test_core/test_offline/test_offline.py", line 92, in test_default_plot_generates_expected_html
    cls=plotly.utils.PlotlyJSONEncoder)
  File "/usr/lib64/python2.7/site-packages/simplejson/__init__.py", line 419, in dumps
    **kw).encode(obj)
TypeError: __init__() got an unexpected keyword argument 'iterable_as_array'

The build environment can be seen at https://build.opensuse.org/package/show/home:jayvdb:py-wheels/python-plotly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions