[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: No problem - glad it's all clear now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: Ok I have downloaded an installed via the Windows installer and the test I run works as expected. I also tried the embedded package without the ._pth and it also works according to the embedded documentation. Sorry for the confusion as I did not specify the em

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: I'm not Steve, but thanks for the compliment :-) You're still running an embedded Python. There's a _python36.pth file next to the executable, that's causing the behaviour you're seeing (and it's there by design - it's what makes the embedded distribution behave t

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: Steve Dower, I understand the purpose of the embedded package. The test was also tried by calling the python executable without modifying the path and the same thing happens. i.e. %~dp0\Python_Embedded_Windows_32bit_v3.6.2\python main.py in the zip package I

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: Hmm, never mind. This is expected behaviour because the embedded distribution includes a ".pth" file which overrides the standard sys.path. For details, see https://docs.python.org/3.6/using/windows.html#finding-modules and https://docs.python.org/3.6/using/window

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: OK, so this is the first time (I believe) you have mentioned that you are using the embedded distribution - which is not designed for general scripting use, but very specifically for embedding Python in a custom application. Can you reproduce with the standard ins

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I run the test.bat file and get the import error. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I have tried from 3 computers now and have been able to reproduce the issue with the same set of files described in my stackoverflow post. Here is a .zip package with all of the files I used in all 3 tests. The python package is the Windows 32bit embedded zip

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Steve Dower
Steve Dower added the comment: The embeddable ZIP is not an "install" - it's a tool for including in your own application. Run the actual installer and try again, or use the package on nuget.org if you need to achieve zero system impact (which it sounds like you don't if you're modifying PATH

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I understand your comments. I will be at computer that has not ever had Python installed in about an hour and will try it there to see if I can produce an example showing the issue. I just found it weird that Python 3.5.2 worked just fine in the same environme

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Paul Moore
Paul Moore added the comment: OK, so the problem is that no-one here (or as far as I can see on the SO discussion, either) can reproduce your issue. So we have to assume that it's something wrong with your environment, and not a Python issue. If you can produce an example that allows us to rep

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I will mark the question appropriately as python3. I don't fully understand your comment about venv. If you mean virtual environment or something, that is not the case. I am running an a standard Windows 7 install with Python3 as the only Python install on my

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Brett Cannon
Brett Cannon added the comment: I also can't reproduce on Python 3.6 on Windows 10, so I'm closing this. Looking at your SO question I noticed you didn't specify `python3` but `python` which suggests a venv, so I'm wondering if that's mucking with things? You also don't need to add __init__.py

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-27 Thread Paul Moore
Paul Moore added the comment: I've tested this on Python 3.6.1 and Python 3.6.2 on Windows 7, 64-bit, and it works as expected. I don't see the problem here - do you have any unusual environment settings or config? -- ___ Python tracker

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-27 Thread Joey DiGiorgio
New submission from Joey DiGiorgio: I am running Windows 7 and Python 3.6.2 trying to import module A from withing module B where both Module A and B are located in the same directory. I get the ModuleNotFoundError. I try the exact same setup with Python 3.5.2 and get no errors and I get the e