Issue 5090: import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++ (original ) (raw )Created on 2009-01-28 14:05 by guxianminer , last changed 2022-04-11 14:56 by admin . This issue is now closed .
Messages (7)
msg80710 - (view)
Author: wang (guxianminer)
Date: 2009-01-28 14:05
import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++
msg80722 - (view)
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *
Date: 2009-01-28 19:21
Please be more specific. What did you try exactly? If you embed python in a C++ application, which compiler did you use? A sample that reproduce the problem would be most useful.
msg80744 - (view)
Author: wang (guxianminer)
Date: 2009-01-29 03:38
my compile is gcc 4.2.1 system is windows xp some other library can be import. such as:sys os c++ code line: Py_Initialize(); Py_SetProgramName(L"MyProgram"); module=PyImport_ImportModule("__main__"); moduledict=PyModule_GetDict(dodule); PySys_SetArgv(1,wxargv); PyRun_StringFlags("\ import tkinter\n\ ",Py_file_input,moduledict,moduledict,NULL); Py_finalize(); the urllib.request also can not import.
msg80746 - (view)
Author: Gabriel Genellina (ggenellina)
Date: 2009-01-29 05:05
os and sys are builtin modules. See if you can import any other pure Python module. Also, see #4566
msg80747 - (view)
Author: Gabriel Genellina (ggenellina)
Date: 2009-01-29 05:14
(In case the fix in #4566 works for you, please let us know)
msg80755 - (view)
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *
Date: 2009-01-29 09:56
Yes, describes exactly the same problem.
msg84266 - (view)
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *
Date: 2009-03-27 15:48
The issue seems fixed now.
History
Date
User
Action
Args
2022-04-11 14:56:44
admin
set
github: 49340
2009-03-27 15:48:26
amaury.forgeotdarc
set
status: pending -> closedmessages: +
2009-01-29 09:56:45
amaury.forgeotdarc
set
status: open -> pendingresolution: duplicatesuperseder: 2.6.1 breaks many applications that embed Python on Windows messages: +
2009-01-29 05:14:24
ggenellina
set
messages: +
2009-01-29 05:05:33
ggenellina
set
nosy: + ggenellina messages: +
2009-01-29 03:38:02
guxianminer
set
type: crashmessages: +
2009-01-28 19:21:33
amaury.forgeotdarc
set
nosy: + amaury.forgeotdarc messages: +
2009-01-28 14:05:24
guxianminer
create