Kübra-キュブラ
HOW CAN I FİX TAT PROBLEM ON PYTHON SPYDER?
I TRİED TO UNİNSTALL İT AND İNSTALLED AGAİN BUT THİS ERROR STİLL OCCURRİNG

An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\asus\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\asus\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\asus\Anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in 
start.main()
File "C:\Users\asus\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 287, in main
import_spydercustomize()
File "C:\Users\asus\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 39, in import_spydercustomize
import spydercustomize
File "C:\Users\asus\Anaconda3\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 19, in 
import pdb
File "C:\Users\asus\Anaconda3\lib\pdb.py", line 73, in 
import cmd
File "C:\Users\asus\Anaconda3\lib\cmd.py", line 50, in 
IDENTCHARS = string.ascii_letters + string.digits + '_'
AttributeError: module 'string' has no attribute 'ascii_letters'
12 sep. 2019 16:19
Opmerkingen · 5
1
You should investigate if you have the latest version because internet searches reveal there may be problems about this, yes I have had the same problems with other languages and if you keep trying different things it will work one day.
Version 3.7 causes this error on new installs according to internet searches you have to downgrade or use another kernel if this is your problem.
12 september 2019
1
I am not familiar with python or python spider, but I do know that if you look at the beginning of your code and if there is a small mistake like a missing ; or whatever the language uses to delimit things it will throw many other errors that will disappear once you remove the typing error. This is true of all computer programming languages.

I assume MAIN is the starting point of any program the same as it is in other languages.
File "C:\Users\asus\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)

have you made a silly typo here, this will kill all programs and produce lots of other errors after.

Apparently python spyder has had some changes and is about to be depreciated the changes are to do with accepting empty chars. which you may? have on line 50 here.

File "C:\Users\asus\Anaconda3\lib\cmd.py", line 50, in 
IDENTCHARS = string.ascii_letters + string.digits + '_'
AttributeError: module 'string' has no attribute 'ascii_letters'

All the other errors are to do with imports, and if python has depreciated any libraries you might be attempting to import libraries that are not there.

I think the delimiter for python is : and not ; like on many other languages.

Good luck if you are new to a language it is very frustrating for the six six months.
12 september 2019
John,
I found out! By some help. All I had to do was re-names the file and open up a new Ipython console. It works now! Thanks a lot for the attention! I appreciate your kindness :)
12 september 2019
John,
Thank you very much for the comment. You are right in general but the problem is that actually before I wrote a code that error was there already. So I assumed that this is not about my code but the problem itself was broken or something so I tried to deleting it but unfortunately it didn’t work at all. So I’m not even sure what exactly is the problem here. But thanks for the all good wishes! I’m not planning to give up any soon. :)
12 september 2019
THAT*
12 september 2019