This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients ThomasS, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-05-25.15:50:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495727434.45.0.75189593864.issue30446@psf.upfronthosting.co.za>
In-reply-to
Content
I've been meaning to get to looking at this issue for a couple of days now, sorry.

There are two critical pieces here:
* don't delete or move _socket.pyd
* don't delete or move python36._pth (but possibly update it)

The first one should be obvious - I assume you haven't messed that bit up :)

The second one is the "static" way of setting sys.path, as Zach suggests. By default, it should include 'python36.zip' and '.', which is the directory containing python36._pth and python36.dll. If you move any of these around, sys.path will be automatically inferred, which could break things.

Further, if you move/remove python36._pth, the registry and environment will be used to locate files rather than only looking in the application directory. This may be bad.

One final tip - you can rename python36._pth to your_exe_name._pth if you want, and if you are embedding then you can get roughly equivalent behaviour using PySys_SetPath.

If none of this works, we'll need you to provide some information about your application, especially the code used to initialize the interpreter, import socket, and the layout of all the files in your app. (Right now, you're asking us to guess basically every detail that is relevant to the bug, hence we're replying with "read the docs" and "try everything" rather than a specific fix ;) )
History
Date User Action Args
2017-05-25 15:50:34steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, ThomasS
2017-05-25 15:50:34steve.dowersetmessageid: <1495727434.45.0.75189593864.issue30446@psf.upfronthosting.co.za>
2017-05-25 15:50:34steve.dowerlinkissue30446 messages
2017-05-25 15:50:34steve.dowercreate