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.

AttributeError: module 'attr' has no attribute 's'

See original GitHub issue

Describe the bug

Hi, I tried to run ProfileReport but raised an error

To Reproduce

from pandas_profiling import ProfileReport

prof = ProfileReport(df1)
prof.to_file(output_file='output.html')

Data: My Dataframe from a CSV which looks like this:

booking_date,city,Count
14-12-17, Balikpapan,2
14-12-17, Bandar Lampung,7
14-12-17, Bandung,71
14-12-17, Banjarmasin,2
14-12-17, Bantul,1
14-12-17, Batam,2
...

Error: :

HBox(children=(FloatProgress(value=0.0, description='variables', max=3.0, style=ProgressStyle(description_widt…

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-ed9145cd6668> in <module>
      1 from pandas_profiling import ProfileReport
      2 
----> 3 prof = ProfileReport(df1)
      4 prof.to_file(output_file='output.html')

~\AppData\Roaming\Python\Python37\site-packages\pandas_profiling\__init__.py in __init__(self, df, minimal, config_file, **kwargs)

~\AppData\Roaming\Python\Python37\site-packages\pandas_profiling\model\describe.py in describe(df)

~\anaconda3\lib\multiprocessing\pool.py in next(self, timeout)
    746         if success:
    747             return value
--> 748         raise value
    749 
    750     __next__ = next                    # XXX

~\anaconda3\lib\multiprocessing\pool.py in worker(inqueue, outqueue, initializer, initargs, maxtasks, wrap_exception)
    119         job, i, func, args, kwds = task
    120         try:
--> 121             result = (True, func(*args, **kwds))
    122         except Exception as e:
    123             if wrap_exception and func is not _helper_reraises_exception:

~\AppData\Roaming\Python\Python37\site-packages\pandas_profiling\model\describe.py in multiprocess_1d(args)

~\AppData\Roaming\Python\Python37\site-packages\pandas_profiling\model\describe.py in describe_1d(series)

~\AppData\Roaming\Python\Python37\site-packages\pandas_profiling\model\describe.py in describe_categorical_1d(series, series_description)

~\AppData\Roaming\Python\Python37\site-packages\visions\__init__.py in <module>
----> 1 from visions import core
      2 from visions import utils
      3 
      4 from visions.core.dtypes.boolean import BoolDtype
      5 from visions.core.implementations.types import *

~\AppData\Roaming\Python\Python37\site-packages\visions\core\__init__.py in <module>
----> 1 from visions.core import model
      2 from visions.core import implementations
      3 from visions.core.functional import (
      4     type_cast_frame,
      5     type_inference_frame,

~\AppData\Roaming\Python\Python37\site-packages\visions\core\model\__init__.py in <module>
----> 1 from visions.core.model.type import VisionsBaseType, TypeRelation
      2 from visions.core.model import typeset
      3 from visions.core.model.typeset import VisionsTypeset

~\AppData\Roaming\Python\Python37\site-packages\visions\core\model\type.py in <module>
     38 
     39 
---> 40 @attr.s(frozen=True)
     41 class TypeRelation:
     42     """Relationship encoder between implementations of :class:`visions.core.models.VisionsBaseType`

AttributeError: module 'attr' has no attribute 's'

–>

Version information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
bhaskoro-muthoharcommented, Apr 11, 2020

Try

pip uninstall attr pip install attrs

Did not work for me

3reactions
suenycommented, Apr 11, 2020

Try

pip uninstall attr pip install attrs

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'attr' has no attribute 's' - Stack Overflow
The attr library on PyPI does not have an API that looks like this. There's no attr.ib or attr.s in it, and so...
Read more >
AttributeError: module 'attr' has no attribute 's' #76 - GitHub
Expected Behavior kb runs. Actual Behavior When trying to run it, there is an error: $ kb Traceback (most recent call last): File ......
Read more >
AttributeError: module 'attr' has no attribute 's' - Streamlit
I am trying to deploy my Streamlit app to Streamlit sharing, but I am running in to some import errors while trying to...
Read more >
AttributeError: module 'attr' has no attribute 's' - talking science
Turns modules attr and attrs exist on my system. Clearly, the error message is understandable, that attr has no attribute 's'.
Read more >
attr error while installing with pip, pip installation shouldn't be ...
... <module> @attr.s(hash=True) AttributeError: module 'attr' has no attribute 's'. so, this has nothing to do with sudo as I was thinking.
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