I have a project with the following file structure:
# dice files
# help files
# other parser files
import dice.dice as d
import help.help as h
import parser.parser as p
ImportError: No module named 'parser.parser'; 'parser' is not a package
Make sure that your
parser is not shadowing a built-in or third-party package/module/library.
I am not 100% sure about the specifics of how this name conflict would be resolved, but it seems like you can potentially a). have your module overridden by the existing module (which seems like it might be happening in your Windows case), or b). override the existing module, which could cause bugs down the road. It seems like b is what commonly trips people up.
If you think this might be happening with one of your modules (which seems fairly likely with a name like
parser), try renaming your module.
See this very nice article for more details and more common Python "import traps".