Reputation: 963
I am trying to run jupyter notebook in windows 10 PC.
After installing miniconda and installed required library, I ran jupyter notebook and got following error.
I have been using jupyter notebook for few years and this is first time to see this error.
Does anyone came across this or know how to solve?
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\lib\site-packages\notebook\notebookapp.py", line 83, in <module>
from .services.contents.manager import ContentsManager
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\lib\site-packages\notebook\services\contents\manager.py", line 17, in <module>
from nbformat import sign, validate as validate_nb, ValidationError
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\lib\site-packages\nbformat\__init__.py", line 33, in <module>
from .validator import validate, ValidationError
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\lib\site-packages\nbformat\validator.py", line 12, in <module>
from jsonschema import ValidationError
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\lib\site-packages\jsonschema\__init__.py", line 12, in <module>
from jsonschema.exceptions import (
File "C:\Users\katsuya.obara\AppData\Local\Continuum\miniconda3\envs\py35\lib\site-packages\jsonschema\exceptions.py", line 141, in <module>
@attr.s(hash=True)
AttributeError: module 'attr' has no attribute 's'
Upvotes: 10
Views: 5318
Reputation: 1863
I believe the error will be solved if you install attrs which actually contains both the above mentioned packages.
$ pip uninstall attr
$ pip install attrs
But for that first you would need to uninstall your attr and then install attrs. It should work as expected after the above changes.
Upvotes: 8
Reputation: 495
Please refer this link for detailed answer for the solution.
https://stackoverflow.com/a/61074103/10362801
Just run below 2 commands in admin mode
pip uninstall attr
conda install --force attrs
Upvotes: 3
Reputation: 410
pip3 install --upgrade setuptools --user
solved the problem for me.
Hope this helps.
Upvotes: 0
Reputation: 1
I got the same problem and solved it by downgrading the attrs module to 19.2.0
Upvotes: 0