Any ideas why Axiom is acting odd?
Robert Gravina <[email protected]> Tue, 27 Jun 2006 02:08:30 +0900
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
Firsty, I'd just like to say that I can't believe Italy just got a
penalty kick for tripping over a player that was on the ground, and
now Australia lost the game!!!! (I'm Australian, obviously)
Secondly, I'd like to appoligise for reopening one ticket (#1067) and
posting another (#1220)... I didn't think to look for this mailing list.
The issue I am having is outlined in those tickets, but basically
Axiom is working in simple cases but failing with more complex ones.
The examples also fail. Running axiom/examples/bucket.py
PowerMoko:~/Desktop/Axiom-0.5.0/axiom/examples rgravina$ python
bucket.py
Traceback (most recent call last):
File "bucket.py", line 47, in ?
b = Biscuit(fluffiness=100, store=s)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/axiom/item.py", line 394, in __init__
self.__subinit__(**kw)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/axiom/item.py", line 376, in __subinit__
self.store = tostore
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/axiom/slotmachine.py", line 161, in __setattr__
descr.__set__(self, value)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/axiom/item.py", line 301, in set
oid = self.storeID = self.store.executeSchemaSQL(
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/axiom/store.py", line 1094, in getTypeID
self._startup()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/axiom/store.py", line 593, in _startup
namedAny(module)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/twisted/python/reflect.py", line 346, in
namedAny
names = name.split('.')
AttributeError: 'NoneType' object has no attribute 'split'
Also, I'm finding most other examples I run (and my own code) fails
with the same few lines at the end of the traceback.
Does anyone have any clues?
You can see my tickets here <http://divmod.org/trac/ticket/1220> and
comments here <http://divmod.org/trac/ticket/1067> for more details.
Sorry again for opening issues on the tracker. It could just be a
configuration problem? But they odd thing is simple cases like this
work fine (from one of the online examples):
from axiom.store import Store
from axiom.item import Item
from axiom.attributes import text
class Friend(Item):
schemaVersion = 1
typeName = 'friend'
name = text()
address = text()
store = Store('test1.axiom')
bob = Friend(store=store, name=u'Bob', address=u'123 Fake St.')
joe = Friend(store=store, name=u'Joe', address=u'49 Evergren Terr.')
I am using Mac OS X, sqlite 3.3.6, python 2.41, pysqlite 2.3.1,
Twisted 2.4.0 and Epsilon 0.5.0.
Any help would be greatly appreciated,
Robert