I am using PyCharm along with Python 3.6 from a virtual environment and when debugging (not when running) a script I get the following error:
/home/developer/master/bin/python3 /snap/pycharm-community/155/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 34977 --file /home/developer/motionplanningthesishector/Planner/control/studywolf_control/controllers/ilqr_truck.py Traceback (most recent call last): File "/snap/pycharm-community/155/helpers/pydev/pydevd.py", line 20, in <module> from _pydevd_bundle.pydevd_constants import IS_JYTH_LESS25, IS_PYCHARM, get_thread_id, get_current_thread_id, \ File "/snap/pycharm-community/155/helpers/pydev/_pydevd_bundle/pydevd_constants.py", line 183, in <module> from _pydev_imps._pydev_saved_modules import thread File "/snap/pycharm-community/155/helpers/pydev/_pydev_imps/_pydev_saved_modules.py", line 22, in <module> import xmlrpc.server as _pydev_SimpleXMLRPCServer File "/usr/lib/python3.6/xmlrpc/server.py", line 115, in <module> import pydoc File "/usr/lib/python3.6/pydoc.py", line 67, in <module> import platform File "/usr/lib/python3.6/platform.py", line 116, in <module> import sys, os, re, subprocess File "/usr/lib/python3.6/subprocess.py", line 50, in <module> import signal File "/home/developer/motionplanningthesishector/Planner/control/studywolf_control/controllers/signal.py", line 18, in <module> import numpy as np File "/home/developer/master/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module> from . import core File "/home/developer/master/lib/python3.6/site-packages/numpy/core/__init__.py", line 100, in <module> from . import _internal File "/home/developer/master/lib/python3.6/site-packages/numpy/core/_internal.py", line 20, in <module> IS_PYPY = platform.python_implementation() == 'PyPy' AttributeError: module 'platform' has no attribute 'python_implementation' My Python installation seems correct because I can debug other files that I had created in the past but cannot debug any script newly created.