[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-23 Thread Steve Dower
Steve Dower added the comment: Glad to hear it. Hopefully as we redesign the embedding initialization APIs this kind of problem will become easier to solve (it's certainly one of my concerns with the current API). -- resolution: -> not a bug stage: -> resolved status: open ->

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-23 Thread RimacV
RimacV added the comment: As you said, I just had to set all paths, when using Py_SetPath. >From my side this issue could be closed. Thank you! :-) -- components: +Library (Lib) -Windows ___ Python tracker

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-18 Thread RimacV
RimacV added the comment: Thanks for your quick response! I will try your suggestion on tuesday and will then let you know, if it worked as expected. -- ___ Python tracker

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-18 Thread Steve Dower
Steve Dower added the comment: 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

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- components: +Windows -Library (Lib) nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-18 Thread RimacV
New submission from RimacV : I compiled the source of CPython 3.7.3 myself on Windows with Visual Studio 2017 together with some packages like e.g numpy. When I start the Python Interpreter I am able to import and use numpy. However when I am running the same script via the C-API I get an