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 paul.moore, rvq, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-04-18.15:30:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555601437.94.0.632313397619.issue36658@roundup.psfhosted.org>
In-reply-to
Content
This is probably a documentation failure more than anything else. We're in the middle of redesigning initialization though, so it's good timing to contribute this feedback.

The short answer is that you need to make sure Python can find the Lib/encodings directory, typically by putting the standard library in sys.path. Py_SetPath clears all inferred paths, so you need to specify all the places Python should look. (The rules for where Python looks automatically are complicated and vary by platform, which is something I'm keen to fix.)

Paths that don't exist are okay, and that's the zip file. You can choose to put the stdlib into a zip, and it will be found automatically if you name it the default path, but you can also leave it unzipped and reference the directory.

A full walk through on embedding is more than I'm prepared to type on my phone. Hopefully that's enough to get you going for now.
History
Date User Action Args
2019-04-18 15:30:37steve.dowersetrecipients: + steve.dower, paul.moore, vstinner, tim.golden, zach.ware, rvq
2019-04-18 15:30:37steve.dowersetmessageid: <1555601437.94.0.632313397619.issue36658@roundup.psfhosted.org>
2019-04-18 15:30:37steve.dowerlinkissue36658 messages
2019-04-18 15:30:37steve.dowercreate