[issue26998] Unable to import "site" in an embedded application

2016-05-13 Thread Steve Dower
Steve Dower added the comment: The PEP doesn't really apply to 2.7, apart from explicitly expecting tools to still detect 32-bit and 64-bit versions despite sys.winver being the same. As for sys.winver being incorrect in 2.7.11, that's been fixed (issue25824), but wasn't deemed critical enough

[issue26998] Unable to import "site" in an embedded application

2016-05-11 Thread AlexWMF
AlexWMF added the comment: I found the following PEP https://www.python.org/dev/peps/pep-0514/ According to this PEP, starting from python 2.7.11 the backward compatibility was broken, because .dll can't read from the following registry keys anymore: HKEY_LOCAL_MACHINE\Software\Python\PythonCor

[issue26998] Unable to import "site" in an embedded application

2016-05-11 Thread AlexWMF
AlexWMF added the comment: The output of both x86 and x86_64 python interpreters is attached -- Added file: http://bugs.python.org/file42814/Clipboard29.png ___ Python tracker __

[issue26998] Unable to import "site" in an embedded application

2016-05-11 Thread AlexWMF
AlexWMF added the comment: Could you provide link to that PEP? As I posted in the previous message, both x86 and x86_64 python27.dll have version string "2.7-32" (shown in sys.winver). Is this right? Any of installers (x86 nor x86_64) don't create "2.7-32" subkey. I understand that python shou

[issue26998] Unable to import "site" in an embedded application

2016-05-11 Thread R. David Murray
R. David Murray added the comment: As far as I know the registry key is a supplament and not a requirement for a correctly functioning python. There is an entire PEP about the registry keys and what to do with them...I'm not sure what the current status is on 2.7, but like I said, I believe t

[issue26998] Unable to import "site" in an embedded application

2016-05-11 Thread AlexWMF
AlexWMF added the comment: I've checked the x86_64 version of python27.dll. It contains "2.7-32" as well as x86 python dll. So strange, seems like "-32" is always there, independently of target bitness. -- ___ Python tracker

[issue26998] Unable to import "site" in an embedded application

2016-05-11 Thread AlexWMF
New submission from AlexWMF: Unable to import "site" error occurs in an embedded application. I have made small research and found why this module isn't visible for python core. I have run the python 2.7.11 x86 (for all users) at my win 7x64. The installer writes the registry key "Software\Wow