iPython bug?

Noah Gift noah.gift at gmail.com
Wed Jul 11 14:54:47 BST 2007


I was right.  In new versions of OS X other than 10.4 it ships with a
broken python 2.5.1:

Specifically:  r251:54863,

It needs be:

r251:54869,

It is a bit of a PITA to fix your OS X python as we unfortunately
don't have apt-get :)  OS X could learn much from Ubuntu on this.

Anyway everything works fine.  The Mac Python installer won't work
either as it doesn't know about the new version of OS X.  I will send
a bug report to Apple and Mac Python.

All good now....



192% ipython
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
Type "copyright", "credits" or "license" for more information.

IPython 0.8.1 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: cd src
/Users/ngift/src

In [2]: ls
bzrcheckouts/	racemi/		sandbox/	svncheckouts/

In [3]: cd bzr
bzrcheckouts/storm/.bzr      bzrcheckouts/storm/Makefile
bzrcheckouts/storm/storm     bzrcheckouts/storm/tests
bzrcheckouts/storm/LICENSE   bzrcheckouts/storm/TODO
bzrcheckouts/storm/test

In [3]: cd bzrcheckouts/storm/
/Users/ngift/src/bzrcheckouts/storm

In [4]: ls
LICENSE		Makefile	TODO		storm/		test*		tests/

In [5]: cd sto
storm/__init__.py     storm/databases       storm/expr.pyc
storm/properties.pyc  storm/store.pyc       storm/variables.pyc
storm/__init__.pyc    storm/event.py        storm/info.py
storm/references.py   storm/tz.py
storm/base.py         storm/event.pyc       storm/info.pyc
storm/references.pyc  storm/tz.pyc
storm/base.pyc        storm/exceptions.py   storm/locals.py
storm/sqlobject.py    storm/uri.py
storm/database.py     storm/exceptions.pyc  storm/locals.pyc
storm/sqlobject.pyc   storm/uri.pyc
storm/database.pyc    storm/expr.py         storm/properties.py
storm/store.py        storm/variables.py

In [5]: cd storm/
/Users/ngift/src/bzrcheckouts/storm/storm

In [6]: cd ..
/Users/ngift/src/bzrcheckouts/storm

In [7]: ls
LICENSE		Makefile	TODO		storm/		test*		tests/

In [8]: from storm.locals import *

In [9]: class Person(object):
   ...:     __storm_table__="person"
   ...:     id = Int(primary=True)
   ...:     name = Unicode()






On 7/11/07, Noah Gift <noah.gift at gmail.com> wrote:
> It might be.  The os installed this version of python not me.  If my
> memory serves me correctly I saw something like this in an older
> release of python 2.5 that was later fixed.  I bet that is it.  Let me
> see if that is the problem.
>
> On 7/11/07, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
> > Hey Noah,
> >
> > > In [2]: class Person(object):
> > >    ...:  __storm_table__ = "person"
> > > Python(10525) malloc: *** error for object 0x559df4: Non-aligned
> > > pointer being freed
> > > *** set a breakpoint in malloc_error_break to debug
> > > Python(10525) malloc: *** error for object 0x559dec: Non-aligned
> > > pointer being freed
> > > *** set a breakpoint in malloc_error_break to debug
> > >    ...:
> >
> > Wow! Weird.. Storm has no C extensions nor it uses any dirty
> > tricks, so it can't be a problem with it.  I'm curious if it
> > might actually be something on Python itself in that
> > environment.
> >
> > --
> > Gustavo Niemeyer
> > http://niemeyer.net
> >
>
>
> --
> http://www.blog.noahgift.com
>


-- 
http://www.blog.noahgift.com



More information about the storm mailing list