Open SamueleBolotta opened 4 years ago
AttributeError: module 'csv' has no attribute 'Dialect'
This usually means that you create a file called csv.py
in your Users directory, which is interfering with Spyder. Please try to locate it and either remove it or at least rename it.
I was working on a CSV file. All of a sudden Spyder stopped working and I cannot access it anymore. This is the issue I see when launching Spyder from the terminal:
Traceback (most recent call last): File "C:\Users\bolot\anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\bolot\anaconda3\lib\site-packages\spyder\app\start.py", line 201, in main
from spyder.app import mainwindow
File "C:\Users\bolot\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 157, in
from spyder.plugins.help.utils.sphinxify import CSS_PATH, DARK_CSS_PATH
File "C:\Users\bolot\anaconda3\lib\site-packages\spyder\plugins\help\utils\sphinxify.py", line 36, in
from sphinx.application import Sphinx
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\application.py", line 42, in
from sphinx.highlighting import lexer_classes, lexers
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\highlighting.py", line 30, in
from sphinx.ext import doctest
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\ext\doctest.py", line 28, in
from sphinx.builders import Builder
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\builders__init__.py", line 24, in
from sphinx.io import read_doc
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\io.py", line 35, in
from sphinx.transforms.i18n import (
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\transforms\i18n.py", line 22, in
from sphinx.domains.std import make_glossary_term, split_term_classifiers
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\domains\std.py", line 26, in
from sphinx.directives import ObjectDescription
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\directives__init__.py", line 261, in
from sphinx.directives.patches import ( # noqa
File "C:\Users\bolot\anaconda3\lib\site-packages\sphinx\directives\patches.py", line 15, in
from docutils.parsers.rst.directives import images, html, tables
File "C:\Users\bolot\anaconda3\lib\site-packages\docutils\parsers\rst\directives\tables.py", line 173, in
class CSVTable(Table):
File "C:\Users\bolot\anaconda3\lib\site-packages\docutils\parsers\rst\directives\tables.py", line 196, in CSVTable
class DocutilsDialect(csv.Dialect):
AttributeError: module 'csv' has no attribute 'Dialect'
I can't even launch Anaconda navigator. This is what I see:
Thanks!