Problem w/Tkinter on 2.5 (Panther)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • w chun

    #1

    Problem w/Tkinter on 2.5 (Panther)

    i've built a Python 2.5a0 interpreter on my iBook using gcc 3.3-1666
    using the tarball from last nite...

    $ uname -a
    Darwin myMac.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30
    20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power
    Macintosh powerpc
    $
    $ python
    Python 2.5a0 (trunk, Mar 28 2006, 02:53:21)
    [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
    Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
    >>> ^D[/color][/color][/color]

    it has a particular symptom with Tkinter where if i run the
    interactive interpreter, "import Tkinter", etc., things work great...
    i can bring up and create Tk objects which work as expected using
    XDarwin 1.3.0/XFree86 4.4.0, BUT when i try to run anything as a
    script, even the 1-liner: "import _tkinter", it bombs out with a Bus
    Error. here is the output in GDB:

    $ gdb /usr/local/bin/python2.5
    GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
    Copyright 2003 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "powerpc-apple-darwin".
    Reading symbols for shared libraries .. done
    (gdb) set args tk-test.py
    (gdb) run
    Starting program: /usr/local/bin/python2.5 tk-test.py
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done
    Reading symbols for shared libraries . done

    Program received signal EXC_BAD_ACCESS, Could not access memory.
    0x901c5118 in __CFStringCreat eImmutableFunne l3 ()
    (gdb)

    has anyone else seen this error before? the script (obviously) works
    using earlier versions of Python. i have Tcl/Tk 8.4 on my system and
    have T{CL,K}_LIBRARY pointed at the right place(s) when i built my 2.5
    interpreter.

    thanks,
    -wesley
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "Core Python Programming", Prentice Hall, (c)2007,2001
    Python consulting,Python training,Python courses,Unix training,C training,CyberWeb Consulting,Technical Consultants,Software Engineering,Web Site Design,Corporate Training,Technical Editing,Beginning Python,Core Python,Core Python Programming,Internet Programming With Python,Internet Programming with Python,Internet Programming with python,Internet programming with Python,Introduction To Python,Introduction to Python,Introduction to python,Jython,Jython classes,Jython courses,Jython training,Learning Python,Practical Python,Programming Python,PyPI,Python,Python Cheese Shop,Python In A Nutshell,Python Language Reference,Python Library Reference,Python Package Index,Python Programming,Python Standard Library,Python Training,Python Training Courses,Python Tutor,Python Tutorials,Python Web Programming,Python books,Python classes,Python consultancy,Python consultant,Python course,Python employment,Python help,Python in a Nutshell,Python in a nutshell,Python introduction,Python intros,Python jobs,Python language reference,Python library reference,Python package index,Python programming,Python standard library,Python training classes,Python training courses,Python tutor,Python tutorials,Python tutoring,Python user groups,Python web programming,beginning Python,beginning python,classes in python,classes in Python,core Python,core python,core python programming,core python applications programming,help with Python,internet programming with Python,internet programming with python,introduction to Python,introduction to python,jython classes,jython courses,jython training,learning Python,learning python,practical Python,practical python,programming Python,programming python,pypi,python,python books,python cheese shop,python classes,python consultancy,python consultant,python consulting,python course,python courses,python employment,python exercises,python help,python in a nutshell,python introduction,python intros,python jobs,python language reference,python library reference,python nutshell,python package index,python programming,python standard library,python training,python training classes,python training courses,python tutor,python tutorials,python tutoring,python user groups,python web programming,starting Python,starting python,starting with Python,starting with python,teaching Python,teaching python,web programming with Python,Google App Engine,google app engine,PyPy,Wesley Chun,wesley chun,Django,django,Django training,Django courses,IronPython,ironpython,cheeseshop,RaspberryPi,Raspberry Pi,WesleyChun,Pyramid,AppEngine,appengine,GoogleAppEngine


    wesley.j.chun :: wescpy-at-gmail.com
    cyberweb.consul ting : silicon valley, ca
    Wesley Chun, Python consulting, Python training, Python courses, Unix training, CyberWeb Consulting, Technical Consultants, Software Engineering, web, Corporate Training, Technical Editing, Beginning Python, Core Python, Core Python Programming, Internet Programming With Python, Internet Programming with Python, Internet Programming with python, Internet programming with Python, Introduction To Python, Introduction to Python, Introduction to python, Jython, Jython classes, Jython courses, Jython training, Learning Python, Practical Python, Programming Python, PyPI, Python, Python In A Nutshell, Python Language Reference, Python Library Reference, Python Package Index, Python Programming, Python Standard Library, Python Training, Python Training Courses, Python Tutor, Python Tutorials, Python Web Programming, Python books, Python classes, Python consultancy, Python consultant, Python course, Python employment, Python help, Python in a Nutshell, Python in a nutshell, Python introduction, Python intros, Python jobs, Python language reference, Python library reference, Python package index, Python programming, Python standard library, Python training classes, Python training courses, Python tutor, Python tutorials, Python tutoring, Python user groups, Python web programming, beginning Python, beginning python, classes in python, classes in Python, core Python, core python, core python programming, help with Python, internet programming with Python, internet programming with python, introduction to Python, introduction to python, jython classes, jython courses, jython training, learning Python, learning python, practical Python, practical python, programming Python, programming python, pypi, python, python books, python book, python classes, python consultancy, python consultant, python consulting, python course, python courses, python employment, python exercises, python help, python in a nutshell, python introduction, python intros, python jobs, python language reference, python library reference, python nutshell, python package index, python programming, python standard library, python training, python training classes, python training courses, python tutor, python tutorials, python tutoring, python user groups, python web programming, starting Python, starting python, starting with Python, starting with python, teaching Python, teaching python, web programming with Python, Google App Engine, google app engine, PyPy, wesley chun, Google, Google Cloud, GCP, Google Cloud Platform, cloud, cloud computing, Google Workspace, Google Apps, G Suite, Gmail, Drive, Calendar, Docs, Sheets, Slides, Forms, Apps Script, AppsScript, serverless, migration, modernization

  • Russell E. Owen

    #2
    Re: Problem w/Tkinter on 2.5 (Panther)

    I don't know, and I'm sorry this isn't more helpful, but...if you don't
    get an answer here, I suggest you post to the python apple mailing list.
    If you prefer a newsgroup interface (as I do), use gmane's news server
    and subscribe to gmane.comp.pyth on.apple (you may still have to join the
    mailing list to post -- I'm not sure -- but if so, you can disable mail
    delivery).

    -- Russell

    In article <mailman.3789.1 143577524.27775 .python-list@python.org >,
    "w chun" <wescpy@gmail.c om> wrote:
    [color=blue]
    > i've built a Python 2.5a0 interpreter on my iBook using gcc 3.3-1666
    > using the tarball from last nite......[/color]

    Comment

    Working...