Importing modules into PyCharm

1

I'm trying to import modules into PyCharm:

from mymodule import fileHandler

However, IDLE reports error ImportError: cannot import name FileHandle

I have tried to follow the most common suggestions:

  • Identify the root folder as src ;

  • Add to PYTHONPATH the sources from the previous step.

  • and none worked

        
    asked by anonymous 20.12.2017 / 20:46

    1 answer

    1

    Where the projects are, right-click "Mark directory as ..." then "Sources Root"

        
    20.12.2017 / 21:00