On Fri, Jul 7, 2017 at 2:00 PM, Andrew Z <form...@gmail.com> wrote: > [az@hp tst1]$ python3 ./uno.py > Traceback (most recent call last): > File "./uno.py", line 1, in <module> > from . import db > SystemError: Parent module '' not loaded, cannot perform relative import
That error message is a bit confusing, but relative imports are relative to packages, not directories. If the module is not part of a package then it can't do a relative import. You can use an absolute import, though: import db -- https://mail.python.org/mailman/listinfo/python-list