A pycharm incident that caused the loss of ubuntu Desktop

Source: Internet
Author: User

A pycharm incident that caused the loss of ubuntu Desktop
As the saying goes, no zuo, no die,
I use python to write a Data Conversion Program, which can run normally, but there are several minor issues. I want to use debug to check it.
The following error occurs only after debugging.
/Usr/bin/python2.7/buildtools/pycharm-2017.1/helpers/pydev/pydevd. py -- multiproc -- qt-support -- client 127.0.0.1 -- port 36360 -- file/study/python/zookeeper/app. py
Traceback (most recent call last ):
File "/buildtools/pycharm-2017.1/helpers/pydev/pydevd. py", line 17, in
From _ pydev_bundle import pydev_imports, pydev_log
File "/buildtools/pycharm-2017.1/helpers/pydev/_ pydev_bundle/pydev_imports.py", line 59, in
From urllib. parse import quote, quote_plus, unquote_plus # @ UnresolvedImport
ImportError: No module named parse
At first, I suspected it was a pycharm bug. Later I installed the latest version, but it still didn't work.
I have considered that urllib is a ghost of python3,
Because pydev_imports.py has the following code:
Try:
From urllib import quote, quote_plus, unquote_plus
Except t:
From urllib. parse import quote, quote_plus, unquote_plus # @ UnresolvedImport
Only python3 is deleted. This deletion does not matter.
When I started it again, I found that after logging on to ubuntu, I found that the status bar and menu bar were all gone, and there was a slickedit icon left on the desktop.
It doesn't matter if you think about it. I work on command line in ubuntu anyway.
Press Ctrl + Alt + T and find that the console cannot be opened, so you cannot repair ubuntu first.
Use Ctrl + Alt + F6 to enter another tty
Sudo apt-get install dconf-tools
Dconf reset-f/org/compiz/
Setsid unity
The one that logs on to the desktop Ctrl + Alt + F7
Unity -- reset-icons
After restarting, go to the desktop
I found that update-manager is missing, but it doesn't matter. I installed deb using dpkg.
Sudo dpkg-I sogoupinyin_2.1.0.0082_amd64.deb
Without gedit, you don't need to use Atom.
Without the sogouinput method, installation is not easy to use.
Because my pycharm is the main development tool, you must use debug
The file urllib. py is located in the project directory. After the file is deleted, pycharm can be debugged.
A junk ide, because files with the same name as python3 cannot be debugged.
Delete python3 for a spam OS, which is unavailable to the entire system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.