I have installed the module "six", and it can be found by the PyCharm Interpreter.
PyCharm Interpreter:
However, PyCharm reports that it cannot resolve reference 'queue' which should be imported from six.
Unresolved reference queue:
I have installed the module "six", and it can be found by the PyCharm Interpreter.
PyCharm Interpreter:
However, PyCharm reports that it cannot resolve reference 'queue' which should be imported from six.
Unresolved reference queue:
Your code is fine. This is because moved attributes and modules in six
are loaded lazily, therefore PyCharm cannot resolve the reference.
See source code for class Module_six_moves_urllib_parse
in six.py
.
I had the same problem, if you have six imported you can import queue as follows:
import six
import queue
It just worked for me, hope it works for you as well.