Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1603 (closed defect: wontfix)

Opened 12 years ago

Last modified 12 years ago

TG1.0.4b2 needs sqlobject but doesn't install it

Reported by: chrisz Owned by: anonymous
Priority: normal Milestone: 1.0.4
Component: TurboGears Version: 1.0.4b2
Severity: major Keywords: sqlobject import toolbox


I installed a fresh TG 1.0.4b2 with

easy_install "TurboGears==1.0.4b2"

This automatically installed SQLAlchemy, but not SQLObject. It seems I need to

easy_install "TurboGears[standard]==1.0.4b2"

to get SQLObject. Is this by intent?

Second problem: I am trying to create the SQL for a TG project based on SQLAlchemy only, using

tg-admin sql create

But here, TG complains about a missing SQLObject:

  File ".../tg-admin-script.py", line 8, in <module>
    load_entry_point('TurboGears==1.0.4b2', 'console_scripts', 'tg-admin')()
  File ".../turbogears/command/base.py", line 313, in main
    command = entrypoint.load()
  File ".../pkg_resources.py", line 1912, in load
  File ".../turbogears/command/i18n.py", line 23, in <module>
    from turbogears.toolbox.admi18n import pygettext, msgfmt, catalog
  File ".../turbogears/toolbox/__init__.py", line 1, in <module>
    from base import Toolbox
  File ".../turbogears/toolbox/base.py", line 11, in <module>
    import designer
  File "../turbogears/toolbox/designer/__init__.py", line 9, in <module>
    import sqlobject
ImportError: No module named sqlobject

If there is a hard dependency on SQLObject, then it should be installed automatically, just like SQLAlchemy.

The actual problem seems to be that the toolbox package is imported, even when command line tools are used, and toolbox in turn imports SQLObject.

Change History

comment:1 Changed 12 years ago by Chris Arndt

  • Status changed from new to closed
  • Resolution set to wontfix

The supported way to install TurboGears 1.0.x is via tgsetup.py. If you use pure easy_install you have indeed to specify the "standard" component. In TG 1.1.x we shouldn't install SQLObject by default anyway, I guess.

I'm setting this ticket to wontfix. Please reopen, if you don't agree.

For the second problem, please open a separate ticket.

comment:2 Changed 12 years ago by chrisz

You're right, tgsetup does a TurboGears[standard] installation, so it is not such a big issue. I have opened #1620 for the second issue.

Note: See TracTickets for help on using tickets.