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.

2.10.0 - TraitError: The 'value' trait of a HTML instance must be a unicode string...

See original GitHub issue

Describe the bug

Hi there - Looks like latest release (2.10.0) has broken a to_widgets functionality as outlined in the Getting started section of the docs. Confirmed eolling back to 2.9.0 does not produce the issue.

To Reproduce

# pandas_profiling==2.10.0
import numpy as np
import pandas as pd
from pandas_profiling import ProfileReport

df = pd.DataFrame(
    np.random.rand(100, 5),
    columns=["a", "b", "c", "d", "e"]
)

profile = ProfileReport(df, title='Pandas Profiling Report', explorative=True)

profile.to_widgets()

Returns:

TraitError: The 'value' trait of a HTML instance must be a unicode string, but a value of Numeric <class 'visions.types.type.VisionsBaseTypeMeta'> was specified.

Version information: 2.10.0

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:14

github_iconTop GitHub Comments

3reactions
rynmccrmckcommented, Jan 12, 2021

I have this same issue too, do you know if it has been fixed?

@aidamanzano I don’t think so yet, but you can downgrade to 2.9.0

1reaction
muthugitcommented, Jan 25, 2021

Version 2.9.0 works fine

pip install pandas-profiling==2.9.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

2.10.0 - TraitError: The 'value' trait of a HTML instance must be ...
Returns: TraitError: The 'value' trait of a HTML instance must be a unicode string, but a value of Numeric <class 'visions.
Read more >
Fmriprep: traits.trait_errors.TraitError: The 'run ... - Neurostars
TraitError : The 'run' trait of a ReadSidecarJSONOutputSpec instance must be a unicode string, but a value of 1 <class 'int'> was specified....
Read more >
How to fix "TraitError: The 'input' trait of a ... instance is 'read ...
With every initialization of 'input' traits, I get an error like TraitError: The 'input' trait of a PolyDataMapper instance is 'read only'.
Read more >
Jupyterhub 500 : Internal Server Error
TraitError : The 'bind_dn_template' trait of a LDAPAuthenticator instance must be a unicode string, but a value of ['string value'] <class ...
Read more >
2.10.0 - TraitError: The 'value' trait of a HTML instance must be a ...
TraitError: The 'value ' trait of a HTML instance must be a unicode string, but a value of Numeric <class 'visions.types.type.VisionsBaseTypeMeta'> was specified ......
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