0

I don't yet remember, what I did few days back. Everything was working fine, but when I download a package ipwhois from pip, everything suddenly stopped working (I don't think installing packages would have messed up everything?). Since then, I'm not able to import any local modules. I uninstalled python a hundred times, I even tried uninstalling my IDE (Visual Studio 13 Ultimate, sometimes PyCharm Community Edition), and I checked whether the path is included in PYTHONPATH or not. It was there. And I also don't think that this is 'Cyclic' import problem.

My directory -

__init__.py 
subfolder
|
|-- __init__.py
    handler.py
    sub-subfolder
    |
    |-- __init__.py
        try_module.py

Now, in handler.py, I've an import statement, import subfolder.sub-subfolder.try_module, but it throws error, no module name 'subfolder', even if I import with from .. import ... Now when I try to perform relative import, it throws parent module '' not loaded. I'm not having ANY ideas, what to do now.

Will Vousden
  • 32,488
  • 9
  • 84
  • 95

0 Answers0