-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError when opening a project #15340
Comments
Hey @leavor, thanks for reporting. We'll take a look at this in our next version. For now please run
and don't create projects in directories that contain non-latin characters. |
After use the "spyder --reset" in Anaconda,Spyder can start, but there is another problem. --- Logging error ---
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 113, in get_comm
return self.comms[comm_id]
KeyError: '7802ea37a0b611eb8dcb1c1b0da66787'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 48, in _dispatch
getattr(self, msg_type)(msg)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 172, in comm_msg
comm = self.get_comm(comm_id)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 117, in get_comm
self.log.warning("No such comm: %s", comm_id)
Message: 'No such comm: %s'
Arguments: ('7802ea37a0b611eb8dcb1c1b0da66787',)
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 113, in get_comm
return self.comms[comm_id]
KeyError: '7802ea37a0b611eb8dcb1c1b0da66787'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 48, in _dispatch
getattr(self, msg_type)(msg)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 172, in comm_msg
comm = self.get_comm(comm_id)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 117, in get_comm
self.log.warning("No such comm: %s", comm_id)
Message: 'No such comm: %s'
Arguments: ('7802ea37a0b611eb8dcb1c1b0da66787',)
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 113, in get_comm
return self.comms[comm_id]
KeyError: '7802ea37a0b611eb8dcb1c1b0da66787'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 48, in _dispatch
getattr(self, msg_type)(msg)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 172, in comm_msg
comm = self.get_comm(comm_id)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 117, in get_comm
self.log.warning("No such comm: %s", comm_id)
Message: 'No such comm: %s'
Arguments: ('7802ea37a0b611eb8dcb1c1b0da66787',)
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 113, in get_comm
return self.comms[comm_id]
KeyError: '7802ea37a0b611eb8dcb1c1b0da66787'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 48, in _dispatch
getattr(self, msg_type)(msg)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 172, in comm_msg
comm = self.get_comm(comm_id)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 117, in get_comm
self.log.warning("No such comm: %s", comm_id)
Message: 'No such comm: %s'
Arguments: ('7802ea37a0b611eb8dcb1c1b0da66787',)
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 113, in get_comm
return self.comms[comm_id]
KeyError: '7802ea37a0b611eb8dcb1c1b0da66787'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 48, in _dispatch
getattr(self, msg_type)(msg)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 172, in comm_msg
comm = self.get_comm(comm_id)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 117, in get_comm
self.log.warning("No such comm: %s", comm_id)
Message: 'No such comm: %s'
Arguments: ('7802ea37a0b611eb8dcb1c1b0da66787',)
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 113, in get_comm
return self.comms[comm_id]
KeyError: '7802ea37a0b611eb8dcb1c1b0da66787'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 48, in _dispatch
getattr(self, msg_type)(msg)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 172, in comm_msg
comm = self.get_comm(comm_id)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\qtconsole\comms.py", line 117, in get_comm
self.log.warning("No such comm: %s", comm_id)
Message: 'No such comm: %s'
Arguments: ('7802ea37a0b611eb8dcb1c1b0da66787',)
Finally, I opened the existing new project "aaa" , succeeded |
Please close Spyder, open the Anaconda prompt and run there
That should solve your problem. |
I found the second you reported above (i.e. the one with the very long error traceback) is a duplicate of issue #15356. We'll fix it in our next release. |
Hi, @ccordoba12 , I have fixed this bug. I changed the code in this file, "python\Lib\site-packages\spyder\plugins\projects\plugin.py" |
Hey @leavor, that's really good to hear! Do you want me to submit a pull request for this? Or do you prefer to do it? |
@ccordoba12 Yes, you submit a PR. |
Ok, no problem. I'll do it. |
Problem Description
Use the following command to upgrade to 5.0.1, can not start.
What steps reproduce the problem?
Paste Traceback/Error Below (if applicable)
Versions
The text was updated successfully, but these errors were encountered: