I am running a script and it runs perfectly and produces the output. However, if I try to debug it in Pycharm, it produces a KeyError when trying to load the six module. This module is being called by a package that I am using. I am not familiar with it. Any ideas on what is causing the import error?
# File #1:
import six # this call to import works
from six.moves.urllib_parse import urljoin # line that fails
# File #2 that it calls
def load_module(self, fullname):
try:
# in case of a reload
return sys.modules[fullname]