Skip to content

Getting AttributeError: module 'plotly.validators.layout.mapbox.layer' has no attribute 'CoordinatesValidator' #1789

Closed
@MartinPetrov8

Description

@MartinPetrov8

I am using plotly 3.1 and am getting he below error:
AttributeError: module 'plotly.validators.layout.mapbox.layer' has no attribute 'CoordinatesValidator'
I read around tried with 3.4.2 and 4.1 versions - same error here is an example code i am using:

trace = go.Bar(
    x=cnt_users.year_month,
    y=cnt_users.num_users,
    marker=dict(
        colorscale = 'Picnic',
        reversescale = True
    ),
)
layout = go.Layout(
    title='Count of Unique Users per Month',
    font=dict(size=16)
)
data = [trace]
fig = go.Figure(data=data, layout=layout)
fig['layout'].update(height=500, width=1500)
py.iplot(fig, filename="TargetCount")

This was working for me 4 months ago but now i am getting an error

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions