Skip to content

Tkinter modules built successfully but removed because they could not be imported #69434

Closed

Description

@abrantesasf
BPO 25247
Nosy @ned-deily, @serhiy-storchaka
Superseder
  • bpo-31817: Compilation Error with Python 3.6.1/3.6.3 with Tkinter
  • 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 2020-05-29.10:26:45.154>
    created_at = <Date 2015-09-27.14:09:15.953>
    labels = ['build', 'expert-tkinter']
    title = 'Tkinter modules built successfully but removed because they could not be imported'
    updated_at = <Date 2020-05-29.10:26:45.153>
    user = 'https://bugs.python.org/abrantesasf'

    bugs.python.org fields:

    activity = <Date 2020-05-29.10:26:45.153>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-29.10:26:45.154>
    closer = 'ned.deily'
    components = ['Tkinter']
    creation = <Date 2015-09-27.14:09:15.953>
    creator = 'abrantesasf'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 25247
    keywords = []
    message_count = 5.0
    messages = ['251703', '251704', '251728', '251791', '370292']
    nosy_count = 3.0
    nosy_names = ['ned.deily', 'serhiy.storchaka', 'abrantesasf']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '31817'
    type = 'compile error'
    url = 'https://bugs.python.org/issue25247'
    versions = ['Python 3.5']

    Activity

    1. abrantesasf commented on Sep 27, 2015

      abrantesasfmannequin
      MannequinAuthor

      I'm trying to compile Python 3.5 on a CentOS 7.1, with TCL 8.6.4, but make always give me the following message:

      *** WARNING: renaming "_tkinter" since importing it failed: build/lib.linux-x86_64-3.5/_tkinter.cpython-35m-x86_64-linux-gnu.so: undefined symbol: Tcl_GetCharLength

      Following modules built successfully but were removed because they could not be imported:
      _tkinter

      The configure command was the following (both, Tcl and Tk are installed under /usr/local/lib/tcl8.6.4):

      CXX=g++ ./configure --prefix=/usr/local/python3 --enable-shared --enable-loadable-sqlite-extensions --enable-ipv6 --with-tcltk-includes="-I/usr/local/lib/tcl8.6.4/include" --with-tcltk-libs="-L/usr/local/lib/tcl8.6.4/lib"

      I could not found a solution for this issue, and I do not know if this is a bug.

    2. serhiy-storchaka commented on Sep 27, 2015

      @serhiy-storchaka
      Member

      Do you have other Tcl versions in 8.6 branch installed? Try to set

      export LD_LIBRARY_PATH=/usr/local/lib/tcl8.6.4/lib

    3. abrantesasf commented on Sep 27, 2015

      abrantesasfmannequin
      MannequinAuthor

      No, I do not have any other Tcl version on my system, and my LD_LIBRARY_PATH alredy points to Tcl directory.

      The problem with tkinter persist even if I explicity export LD_LIBRARY_PATH before the compilation.

      Any other ideas?

      Thanks!

    4. abrantesasf commented on Sep 28, 2015

      abrantesasfmannequin
      MannequinAuthor

      I tried with LD_RUN_PATH, but the same compile error still there.

    5. ned-deily commented on May 29, 2020

      @ned-deily
      Member

      It looks like this is the same issue that has been discussed in later bpo-31817. Since there has been more discussion there, let's close this as a duplicate of that one.

    6. 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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions