ImportError: No module named "threading" in Python?

I have Linux Mint 17 and Python 3.4.0. I downloaded the python3.4 package for utopic to get Python 3.4.2. I downloaded its dependencies as well as IDLE and python3-tk for 3.4.2. After installation, I did not find anything that I liked. So with Synaptic I downgraded the packages to 3.4.0 original packages. I did not experience any problems until there was a problem in the program I was doing to pass the time. I tried to debug my application in PyCharm could no longer debug my applications in PyCharm. In the "Console" section this error occurred: -

/usr/bin/python3.4 /opt/pycharm-community-3.4.1/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 37770 --file "/home/ibrahim/Documents/Python/Team Rocket.py"
Traceback (most recent call last):
  File "/opt/pycharm-community-3.4.1/helpers/pydev/pydevd.py", line 4, in <module>
    from django_debug import DjangoLineBreakpoint
  File "/opt/pycharm-community-3.4.1/helpers/pydev/django_debug.py", line 2, in <module>
    from django_frame import DjangoTemplateFrame, get_template_file_name, get_template_line
  File "/opt/pycharm-community-3.4.1/helpers/pydev/django_frame.py", line 1, in <module>
    from pydevd_file_utils import GetFileNameAndBaseFromFile
  File "/opt/pycharm-community-3.4.1/helpers/pydev/pydevd_file_utils.py", line 44, in <module>
    from pydevd_constants import * #@UnusedWildImport
  File "/opt/pycharm-community-3.4.1/helpers/pydev/pydevd_constants.py", line 80, in <module>
    import threading
  ImportError: No module named 'threading'

Process finished with exit code 1

      

Then I opened IDLE to debug my program to get at least some information from my debugger and it doesn't work either! So I started it directly with help python3 -m idlelib.idle

and it gave me the same error (but different links). Here's a mistake.

Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.4/idlelib/idle.py", line 10, in <module>
    import idlelib.PyShell
  File "/usr/lib/python3.4/idlelib/PyShell.py", line 10, in <module>
    import threading
ImportError: No module named 'threading'

      

I think that including the program code is trivial, but if you want it, I can pass it to you. I just confirmed that I refused all packages.

Version numbers for Python: -

python3.4 = 3.4.0-2ubuntu1
python3.4-minimal = 3.4.0-2ubuntu1
python3-tk = 3.4.0-0ubuntu1
idle-python3.4 = 3.4.0-2ubuntu1
PyCharm Community Edition = 3.4.1; Build = 135.1057; Running on Oracle Java 1.8.0 aka Java 8 for amd64 systems. Not running on OpenJDK.

      

+3


source to share





All Articles