Skip to content

import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++ #49340

Closed

Description

@guxianminer
BPO 5090
Nosy @amauryfa
Superseder
  • bpo-4566: 2.6.1 breaks many applications that embed Python on Windows
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-03-27.15:48:26.439>
    created_at = <Date 2009-01-28.14:05:24.190>
    labels = ['expert-tkinter', 'type-crash']
    title = 'import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++'
    updated_at = <Date 2009-03-27.15:48:26.438>
    user = 'https://bugs.python.org/guxianminer'

    bugs.python.org fields:

    activity = <Date 2009-03-27.15:48:26.438>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-03-27.15:48:26.439>
    closer = 'amaury.forgeotdarc'
    components = ['Tkinter']
    creation = <Date 2009-01-28.14:05:24.190>
    creator = 'guxianminer'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 5090
    keywords = []
    message_count = 7.0
    messages = ['80710', '80722', '80744', '80746', '80747', '80755', '84266']
    nosy_count = 3.0
    nosy_names = ['amaury.forgeotdarc', 'ggenellina', 'guxianminer']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '4566'
    type = 'crash'
    url = 'https://bugs.python.org/issue5090'
    versions = ['Python 3.0']

    Activity

    1. guxianminer commented on Jan 28, 2009

      guxianminermannequin
      MannequinAuthor
      import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when 
      embeded python in c++
    2. amauryfa commented on Jan 28, 2009

      @amauryfa
      Contributor

      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.

    3. guxianminer commented on Jan 29, 2009

      guxianminermannequin
      MannequinAuthor

      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.

    4. added
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Jan 29, 2009
    5. ggenellina commented on Jan 29, 2009

      ggenellinamannequin
      Mannequin

      os and sys are builtin modules. See if you can import any other pure
      Python module.
      Also, see bpo-4566

    6. ggenellina commented on Jan 29, 2009

      ggenellinamannequin
      Mannequin

      (In case the fix in bpo-4566 works for you, please let us know)

    7. amauryfa commented on Jan 29, 2009

      @amauryfa
      Contributor

      Yes, bpo-4566 describes exactly the same problem.

    8. amauryfa commented on Mar 27, 2009

      @amauryfa
      Contributor

      The issue seems fixed now.

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      topic-tkintertype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions