Not sure about this, but I would try to update the setuptools
installation.

$ easy_install -U setuptools

Hope it helps!

Antti

On 25 syys, 22:56, balisong <[EMAIL PROTECTED]> wrote:
> I tried to install the latest version with commands line you gave me
> but that doesn't work and i have this error message:
>
> [EMAIL PROTECTED]:~/dbsprockets/trunk$ sudo python setup.py develop
> running develop
> unrecognized .svn/entries format; skipping .
> running egg_info
> writing requirements to DBSprockets.egg-info/requires.txt
> writing DBSprockets.egg-info/PKG-INFO
> writing top-level names to DBSprockets.egg-info/top_level.txt
> writing dependency_links to DBSprockets.egg-info/dependency_links.txt
> writing entry points to DBSprockets.egg-info/entry_points.txt
> Traceback (most recent call last):
>   File "setup.py", line 38, in <module>
>     """
>   File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.5/distutils/dist.py", line 974, in
> run_commands
>     self.run_command(cmd)
>   File "/usr/lib/python2.5/distutils/dist.py", line 994, in
> run_command
>     cmd_obj.run()
>   File "/usr/lib/python2.5/site-packages/setuptools/command/
> develop.py", line 27, in run
>     self.install_for_development()
>   File "/usr/lib/python2.5/site-packages/setuptools/command/
> develop.py", line 85, in install_for_development
>     self.run_command('egg_info')
>   File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
>     self.distribution.run_command(command)
>   File "/usr/lib/python2.5/distutils/dist.py", line 994, in
> run_command
>     cmd_obj.run()
>   File "/usr/lib/python2.5/site-packages/setuptools/command/
> egg_info.py", line 171, in run
>     self.find_sources()
>   File "/usr/lib/python2.5/site-packages/setuptools/command/
> egg_info.py", line 252, in find_sources
>     mm.run()
>   File "/usr/lib/python2.5/site-packages/setuptools/command/
> egg_info.py", line 306, in run
>     self.add_defaults()
>   File "/usr/lib/python2.5/site-packages/setuptools/command/
> egg_info.py", line 333, in add_defaults
>     rcfiles = list(walk_revctrl())
>   File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
> line 45, in walk_revctrl
>     for item in ep.load()(dirname):
>   File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
> line 52, in _default_revctrl
>     for path in finder(dirname,path):
>   File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
> line 98, in entries_finder
>     log.warn("unrecognized .svn/entries format in %s", dirname)
> NameError: global name 'log' is not defined
>
> On 25 sep, 18:45, Antti Niinikoski <[EMAIL PROTECTED]> wrote:
>
> > Your code seems fine to me. Which version of dbsprockets you are
> > using? Maybe you should try the latest development version of
> > dbsprockets, because there is something broken with SA 0.5.
>
> >http://groups.google.com/group/dbsprockets/browse_thread/thread/1fc3f...
>
> > To get the latest version:
>
> > $ svn cohttp://dbsprockets.googlecode.com/svn/ dbsprockets
> > $ python setup.py develop
>
> > Antti
>
> > On 25 syys, 14:39, balisong <[EMAIL PROTECTED]> wrote:
>
> > > i have added metadata.bind = engine to my __init__.py and that don't
> > > change anything.
>
> > > here is my model (jeux.py) and my __init__.py
>
> > > ### jeux.py
> > > from sqlalchemy import *
> > > from sqlalchemy.orm import mapper, relation
> > > from mortsvivants.model import metadata
>
> > > jeux_table = Table("jeux", metadata,
> > >     Column("id", Integer, primary_key=True),
> > >     Column("nom", String(255), nullable=False),
> > >     )
>
> > > class Jeux(object):
> > >     def __init__(self, **kw):
> > >         """automatically mapping attributes"""
> > >         for key, value in kw.iteritems():
> > >             setattr(self, key, value)
>
> > > mapper(Jeux, jeux_table)
>
> > > ---------------------------------------------------------------------------------------------
>
> > > ### __init__.py
>
> > > from zope.sqlalchemy import ZopeTransactionExtension
> > > from sqlalchemy.orm import scoped_session, sessionmaker
> > > #from sqlalchemy import MetaData
> > > from sqlalchemy.ext.declarative import declarative_base
>
> > > maker = sessionmaker(autoflush=True, autocommit=False,
> > >                      extension=ZopeTransactionExtension())
>
> > > DBSession = scoped_session(maker)
> > > DeclarativeBase = declarative_base()
>
> > > metadata = DeclarativeBase.metadata
>
> > > def init_model(engine):
> > >     """Call me before using any of the tables or classes in the
> > > model."""
>
> > >     DBSession.configure(bind=engine)
> > >     metadata.bind = engine
>
> > > # Import your model modules here.
> > > from identity import User, Group, Permission
> > > from jeux import Jeux, jeux_table
>
> > > Can anyone tell me if there is an error in this code ?
>
> > > thanks.
> > > Thomas.
>
> > > On 25 sep, 11:35, Antti Niinikoski <[EMAIL PROTECTED]> wrote:
>
> > > > Just do the following in your __init__.py if you are using DBSprockets
> > > > (initially Albertos code):
>
> > > > def init_model(engine):
> > > >     DBSession.configure(bind=engine) # not really needed if engine is
> > > > bound to metadata but anyway...
> > > >     metadata.bind = engine # <-- add this if using dbsprockets
>
> > > > For more informartion 
> > > > seehttp://groups.google.com/group/dbsprockets/browse_thread/thread/ed794...
>
> > > > Antti
>
> > > > On 24 syys, 22:50, balisong <[EMAIL PROTECTED]> wrote:
>
> > > > > I have the same problem and i don't know how to manually bind the
> > > > > metadata in __init__.py
> > > > > can you explain me how to do this please ?
>
> > > > > On 10 sep, 17:10, "Mark Ramm" <[EMAIL PROTECTED]> wrote:
>
> > > > > > Yea, it seems that issue is the metadata not being bound at the 
> > > > > > point
> > > > > > where make_form tries to introspect the model.
>
> > > > > > You may need to "manually" bind the metadata in __init__.py in your
> > > > > > model, as is done in a freshly quickstarted project.
>
> > > > > > On Wed, Sep 10, 2008 at 9:44 AM, Antti Niinikoski
>
> > > > > > <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hello list
>
> > > > > > > I have a problem with thepasterCRUDtool in TG2. I always get the
> > > > > > > following error message:
>
> > > > > > > "Exception: arg1(model) has not been mapped to an sql table
> > > > > > > appropriately"
>
> > > > > > > The exception comes from the make_form method in the 
> > > > > > > form-controller.
> > > > > > > The whole traceback can be found in paste 
> > > > > > > (http://paste.turbogears.org/
> > > > > > > paste/6318).
>
> > > > > > > I have done "pastersetup-app".  And the model works fine without
> > > > > > >CRUD. In my project I use the identity and it uses
> > > > > > > DeclarativeBase.metadata. Could the metadata be the problem?
>
> > > > > > > Does anyone know what I am doing wrong?
>
> > > > > > > TheCRUDtool and TG2 seems very intresting. Thanks!
>
> > > > > > > Regards,
>
> > > > > > > Antti
>
> > > > > > --
> > > > > > Mark Ramm-Christensen
> > > > > > email: mark at compoundthinking dot com
> > > > > > blog:www.compoundthinking.com/blog
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to