Thread:Manual talk:Pywikibot/Unable to log in with core login.py

I am using the latest 2.x.x Python, and when I try to login (using login.py), it says there's no module to import (the PWB module, TBP). Its doesn't work out in core, but in compat, it works just fine. Is this by an chance a dir problem, does the user-config need to be in the same dir along with login.py?