Skip to content

Tag: importerror

ImportError: No module named six

I’m trying to build OpenERP project, done with dependencies. It’s giving this error now Could someone guide what’s wrong and how it can be fixed??? Answer You probably don’t have the six Python module installed. You can find it on pypi. To install it: (if you have pip installed, use pi…

ImportError: No module named mock

So I am trying to use unittest.mock to mock some of my methods in my unit tests. I do: But I am getting: I tried: It’s still not working. Answer unittest is a built-in module; mock is an external library (pre-3.3 betas, anyway). After installing mock via pip install, you import it not by using but Edit:…