[issue35927] Intra-package References Documentation Incomplete

2019-02-13 Thread ADataGman
ADataGman added the comment: Terry, thank you for the detailed list of alternatives on how to approach this, that's helpful in how to tackle this issue in my current development. Nick, for the relative imports of relative imports I think the error message is fine. It makes sense. It doesn't ne

[issue35927] Intra-package References Documentation Incomplete

2019-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: AData> You log and output show that you problem is as described: package 'sound' is in directory "C:/" and "C:/" is not is sys.path. Possible remedies: 1. Add "C:/" to sys.path at the top of each module that imports sound. This is a nuisance. 2. Move the so

[issue35927] Intra-package References Documentation Incomplete

2019-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: As discussed in http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#executing-the-main-module-twice and https://www.python.org/dev/peps/pep-0395/#why-are-my-imports-broken the cryptic error message here is due to the relative

[issue35927] Intra-package References Documentation Incomplete

2019-02-08 Thread ADataGman
ADataGman 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 t

[issue35927] Intra-package References Documentation Incomplete

2019-02-08 Thread Terry J. Reedy
Terry J. Reedy 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. -- ___

[issue35927] Intra-package References Documentation Incomplete

2019-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.6 only gets security patches. I cannot comment on relative imports as I never use them, but the absolute imports should work and do for me. I just added to idlelib.idle_test a file a.py containing 'from idlelib.idle_test import htest' and it works find.

[issue35927] Intra-package References Documentation Incomplete

2019-02-06 Thread ADataGman
New submission from ADataGman : Attempting to follow https://docs.python.org/3.6/tutorial/modules.html#intra-package-references I was unable to recreate the intra-package reference as described. "For example, if the module sound.filters.vocoder needs to use the echo module in the sound.effe