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.

TypeError on All Plots

See original GitHub issue

When trying to create any plot, I receive the error: TypeError: super(type, obj): obj must be an instance or subtype of type. This occurs even when running the examples as below:

import plotly_express as px
gapminder = px.data.gapminder()
px.choropleth(gapminder, locations="iso_alpha", color="lifeExp", hover_name="country", animation_frame="year",
              color_continuous_scale=px.colors.sequential.Plasma, projection="natural earth")
Screen Shot 2019-03-21 at 09 13 08 EDT

Using plotly-express==0.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaskruchtencommented, Mar 21, 2019

Hmmm that is very strange. Let’s close it for now. I did make a mistake in packaging up the PyPI build which I’ve just corrected (and pushed up as 0.1.1) so maybe that will prevent others from seeing it.

0reactions
WillKoehrsencommented, Mar 21, 2019

Okay, this is strange, but after restarting the notebook server, the plots are working fine. I’m willing to say this was some version issue because I installed plotly express and tried to use it on an existing notebook server.

I can close since things seem to be working on my end unless you were able to reproduce the error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python error in plots hierarchy : TypeError: unhashable type: 'list'
The error tells you that you cannot use a list as a dictionary key. I.e. the following is not possible in python a...
Read more >
How to Fix in Pandas: TypeError: no numeric data to plot
This error occurs when you attempt to plot values from a pandas DataFrame, but there are no numeric values to plot. This error...
Read more >
How to Fix: TypeError: no numeric data to plot - GeeksforGeeks
This error can be fixed by converting the data to be plotted into numeric data. To convert the data to numeric data we...
Read more >
TypeError when trying to plot a combined geopandas ...
The TypeError is being triggered by the fact that this is an empty GeoDataFrame; the plotting code did not expect this edge case....
Read more >
Scatter Plots - Problem Solving with Python
The required positional arguments supplied to ax.scatter() are two lists or arrays. The first positional argument specifies the x-value of each point on...
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