Re: exploring Mantissa/Axiom/Epsilon/etc..
Edward Muller <[email protected]> Tue, 13 Feb 2007 18:15:56 -0600
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
I removed the newer than publicly released versions and installed the
currently released versions and I get the "same" error:
edwardam@Zifnab:~/devel/Interlix$ axiomatic -d interlix.axiom mantissa
Enter Divmod Mantissa password for 'admin@localhost':
Confirm Divmod Mantissa password for 'admin@localhost':
Traceback (most recent call last):
File "/sw/bin/axiomatic", line 3, in ?
axiomatic.main()
File "/sw/lib/python2.4/site-packages/axiom/scripts/axiomatic.py",
line 229, in main
o.parseOptions(argv)
File "/sw/lib/python2.4/site-packages/twisted/python/usage.py",
line 189, in parseOptions
self.subOptions.parseOptions(rest)
File "/sw/lib/python2.4/site-packages/twisted/python/usage.py",
line 199, in parseOptions
self.postOptions()
File "/sw/lib/python2.4/site-packages/axiom/plugins/
mantissacmd.py", line 65, in postOptions
s.transact(self.installSite, s, publicURL)
File "/sw/lib/python2.4/site-packages/axiom/store.py", line 971,
in transact
result = f(*a, **k)
File "/sw/lib/python2.4/site-packages/axiom/plugins/
mantissacmd.py", line 70, in installSite
s.findOrCreate(userbase.LoginSystem).installOn(s)
File "/sw/lib/python2.4/site-packages/axiom/userbase.py", line
365, in installOn
other.powerUp(self, IRealm)
File "/sw/lib/python2.4/site-packages/axiom/item.py", line 183, in
powerUp
powerup=powerup)
File "/sw/lib/python2.4/site-packages/axiom/store.py", line 700,
in findOrCreate
newItem = userItemClass(store=self, **attrs)
File "/sw/lib/python2.4/site-packages/axiom/item.py", line 394, in
__init__
self.__subinit__(**kw)
File "/sw/lib/python2.4/site-packages/axiom/item.py", line 376, in
__subinit__
self.store = tostore
File "/sw/lib/python2.4/site-packages/axiom/slotmachine.py", line
161, in __setattr__
descr.__set__(self, value)
File "/sw/lib/python2.4/site-packages/axiom/item.py", line 301, in
set
oid = self.storeID = self.store.executeSchemaSQL(
File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1329,
in executeSchemaSQL
return self.executeSQL(sql, args)
File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1335,
in executeSQL
sql = self._execSQL(sql, args)
File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1323,
in _execSQL
rows = self._queryandfetch(sql, args)
File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1300,
in _queryandfetch
self.cursor.execute(sql, args)
File "/sw/lib/python2.4/site-packages/axiom/_pysqlite2.py", line
70, in execute
return self._cursor.execute(sql, args)
pysqlite2.dbapi2.IntegrityError: axiom_objects.type_id may not be NULL
FYI: This is python 2.4.2 on Mac OSX
On Feb 12, 2007, at 7:52 PM, Edward Muller wrote:
> We are looking at writing a new hosting system and are taking a
> look at various python frameworks. We really like the idea of Axiom
> and have played with it in the past. We don't have any experience
> with Nevow/Mantissa/etc thought.
>
> We checked out the latest tagged releases of the framework from
> svn. Everything looks fine ... but when we run the following
> command...
>
> (after creating a new project with axiomatic)
> axiomatic -d interlix.axiom mantissa
>
> We get this error:
>
> Traceback (most recent call last):
> File "/sw/bin/axiomatic", line 3, in ?
> axiomatic.main()
> File "/sw/lib/python2.4/site-packages/axiom/scripts/
> axiomatic.py", line 228, in main
> o.parseOptions(argv)
> File "/sw/lib/python2.4/site-packages/twisted/python/usage.py",
> line 189, in parseOptions
> self.subOptions.parseOptions(rest)
> File "/sw/lib/python2.4/site-packages/twisted/python/usage.py",
> line 199, in parseOptions
> self.postOptions()
> File "/sw/lib/python2.4/site-packages/axiom/plugins/
> mantissacmd.py", line 67, in postOptions
> s.transact(self.installSite, s, publicURL)
> File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1457,
> in transact
> result = f(*a, **k)
> File "/sw/lib/python2.4/site-packages/axiom/plugins/
> mantissacmd.py", line 75, in installSite
> installOn(s.findOrCreate(userbase.LoginSystem), s)
> File "/sw/lib/python2.4/site-packages/axiom/dependency.py", line
> 111, in installOn
> _installOn(self, target, True)
> File "/sw/lib/python2.4/site-packages/axiom/dependency.py", line
> 168, in _installOn
> explicitlyInstalled=__explicitlyInstalled)
> File "/sw/lib/python2.4/site-packages/axiom/item.py", line 528,
> in __init__
> self.__subinit__(**kw)
> File "/sw/lib/python2.4/site-packages/axiom/item.py", line 510,
> in __subinit__
> self.store = tostore
> File "/sw/lib/python2.4/site-packages/axiom/slotmachine.py", line
> 161, in __setattr__
> descr.__set__(self, value)
> File "/sw/lib/python2.4/site-packages/axiom/item.py", line 425,
> in set
> oid = self.storeID = self.store.executeSchemaSQL(
> File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1959,
> in executeSchemaSQL
> return self.executeSQL(sql, args)
> File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1966,
> in executeSQL
> sql = self._execSQL(sql, args)
> File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1952,
> in _execSQL
> rows = self._queryandfetch(sql, args)
> File "/sw/lib/python2.4/site-packages/axiom/store.py", line 1919,
> in _queryandfetch
> self.cursor.execute(sql, args)
> File "/sw/lib/python2.4/site-packages/axiom/_pysqlite2.py", line
> 90, in execute
> return self._cursor.execute(sql, args)
> pysqlite2.dbapi2.IntegrityError: axiom_objects.type_id may not be NULL
>
> We added some debug print statements to store.py and this is the
> SQL we believe is being called and the arguments being passed to it:
>
> ('INSERT INTO main.axiom_objects (type_id) VALUES (?)', [2])
>
> I don't see anything wrong with that myself.
>
> Any help getting us started would be appreciated.
>
> Thanks
>
> --
> Edward Muller
> Interlix, LLC
> Owner
>
> Zope, Plone & Zimbra Hosting
>
> phone: +1.417.862.0573
> fax: +1.770.818.5437
> --
>
>
>
> _______________________________________________
> Divmod-dev mailing list
> [email protected]
> http://divmod.org/users/mailman.twistd/listinfo/divmod-dev
--
Edward Muller
Interlix, LLC
Owner
Zope, Plone & Zimbra Hosting
phone: +1.417.862.0573
fax: +1.770.818.5437
--