ADataGman <aarongross...@gmail.com> added the comment:
Here's the full error log I receive when using the code I submitted with both ..effects and sound.effects. It also includes a print out of the sys path as run from vocoder. I tried running this in 3.7.2 and still get the same errors. It seems like it's already on the sys path? I'm not saying there is a bug in python itself, it's just not at all clear from the documentation that what is described as being a way to access sibling packages actually works. Given the attached code sample, as a newb I'd greatly appreciate an example of how to take that sample and turn it into functioning code with whatever modifiers is necessary. Ultimately whatever changes are made I'd like to see reflected in the documentation for the intra-reference section. PS C:\sound> & C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe c:/sound/filters/vocoder.py Traceback (most recent call last): File "c:/sound/filters/vocoder.py", line 7, in <module> vocoder.pp() File "c:/sound/filters/vocoder.py", line 4, in pp from ..effects import echo ValueError: attempted relative import beyond top-level package PS C:\sound> & C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe c:/sound/filters/vocoder.py Traceback (most recent call last): File "c:/sound/filters/vocoder.py", line 7, in <module> vocoder.pp() File "c:/sound/filters/vocoder.py", line 4, in pp from sound.effects import echo ModuleNotFoundError: No module named 'sound' PS C:\sound> & C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe c:/sound/filters/vocoder.py ['c:\\sound\\filters', 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip', 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\DLLs', 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\lib', 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37', 'C:\\Users\\user\\AppData\\Roaming\\Python\\Python37\\site-packages', 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages'] On Fri, Feb 8, 2019 at 2:31 PM Terry J. Reedy <rep...@bugs.python.org> wrote: > > Terry J. Reedy <tjre...@udel.edu> added the comment: > > When reporting problems, copy and paste into the report the complete > exception traceback and error message. For import problems, also copy and > paste sys.path. If you disagree that this should be closed, please do so. > > ---------- > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <https://bugs.python.org/issue35927> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35927> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com