question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolaskruchtencommented, Jul 15, 2020

I’ve just been able to replicate this with an open notebook after installing a different version of plotly while the kernel was running, and restarting the kernel resolved the issue, so this may be part of the solution for some folks.

0reactions
Tkumar21commented, Apr 22, 2021

I am also getting same issue while using CX_Freeze for bundling ,otherwise it is working fine on my system. unable to trace what the issue. Do anyone have solution :

AttributeError: module ‘plotly.validators.layout.xaxis’ has no attribute ‘AnchorValidator’

AttributeError: module ‘plotly.validators.scatter’ has no attribute ‘LegendgroupValidator’

Read more comments on GitHub >

github_iconTop Results From Across the Web

module 'plotly.validators.layout' has no attribute ...
You need to install a new package chart-studio . In your command line type and run: pip install chart-studio.
Read more >
Error when running plotly on python jupyter notebook
module 'plotly.validators.layout.mapbox.layer' has no attribute 'CoordinatesValidator'. and I have only one copy of plotly ( 4.1.0) ...
Read more >
No attribute 'CoordinatesValidator' - plotly.js
We are getting following exception please help me in this module 'plotly.validators.layout.mapbox.layer' has no attribute ...
Read more >
AttributeError: the module 'plotly.validators.bar' does not have ...
I would like to plot eigs_vals with plotly: [2.32775157e+01 ... AttributeError: the module 'plotly.validators.bar' does not have the ...
Read more >
Error when running plotly on python Jupyter
AttributeError : module 'plotly.validators.scatter.marker.colorbar' has no attribute 'TitlefontValidator'. Could you please help me with it?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found