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 #1624 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

template errors in quickstart

Reported by: andre Owned by: chrisz
Priority: high Milestone: 1.0.x bugfix
Component: TurboGears Version: 1.0.4b3
Severity: minor Keywords: quickstart
Cc:

Description

There are error messages during quickstart.

Here is the configuration:

TG 1.0.4b3 SQLAlchemy 0.4.1 Elixir 0.4 Genshi 0.4.4 gsquickstart 1.0

The same errors occur independent of the parameters for quickstart, including none.

Here is the output with the three error messages (running start-dummy.py works fine and produces no further error messages):

C:\...\projects\turbogears>tg-admin quickstart -e -i -t tggenshi dummy Enter package name [dummy]: Selected and implied templates:

turbogears#tgbase tg base template turbogears#turbogears web framework gsquickstart#tggenshi web framework with genshi

Variables:

egg: dummy elixir: True identity: sqlalchemy package: dummy project: dummy sqlalchemy: True sqlalchemyversion: SQLAlchemy>=0.3.10 sqlobject: False

Creating template tgbase Creating directory .\dummy

Recursing into +einame+.egg-info

Creating .\dummy\dummy.egg-info/ Copying PKG-INFO to .\dummy\dummy.egg-info\PKG-INFO Copying paster_plugins.txt to .\dummy\dummy.egg-info\paster_plugins.txt

Error in file c:\Python25\lib\site-packages\turbogears-1.0.4b3-py2.5.egg\turbogears\qstemplates\qsbase\+einame+.egg-info\sqlobject.txt_tmpl:

Recursing into +package+

Creating .\dummy\dummy/ Copying init.py to .\dummy\dummy\init.py Copying release.py_tmpl to .\dummy\dummy\release.py Recursing into static

Creating .\dummy\dummy\static/ Recursing into css

Creating .\dummy\dummy\static\css/

Error in file c:\Python25\lib\site-packages\turbogears-1.0.4b3-py2.5.egg\turbogears\qstemplates\qsbase\+package+\static\css\empty_tmpl:

Recursing into images

Creating .\dummy\dummy\static\images/ Copying favicon.ico to .\dummy\dummy\static\images\favicon.ico Copying tg_under_the_hood.png to .\dummy\dummy\static\images\tg_under_the_hood.png Copying under_the_hood_blue.png to .\dummy\dummy\static\images\under_the_hood_blue.png

Recursing into javascript

Creating .\dummy\dummy\static\javascript/

Error in file c:\Python25\lib\site-packages\turbogears-1.0.4b3-py2.5.egg\turbogears\qstemplates\qsbase\+package+\static\javascript\empty_tmpl:

Recursing into templates

Creating .\dummy\dummy\templates/ Copying init.py to .\dummy\dummy\templates\init.py

Creating template turbogears

Recursing into +package+

Copying commands.py_tmpl to .\dummy\dummy\commands.py Recursing into config

Creating .\dummy\dummy\config/ Copying init.py to .\dummy\dummy\config\init.py Copying app.cfg_tmpl to .\dummy\dummy\config\app.cfg Copying log.cfg_tmpl to .\dummy\dummy\config\log.cfg

Copying controllers.py_tmpl to .\dummy\dummy\controllers.py Copying json.py_tmpl to .\dummy\dummy\json.py Copying model.py_tmpl to .\dummy\dummy\model.py Recursing into static

Recursing into css

Copying style.css to .\dummy\dummy\static\css\style.css

Recursing into images

Copying header_inner.png to .\dummy\dummy\static\images\header_inner.png

Copying info.png to .\dummy\dummy\static\images\info.png Copying ok.png to .\dummy\dummy\static\images\ok.png

Recursing into templates

Copying login.kid to .\dummy\dummy\templates\login.kid Copying master.kid to .\dummy\dummy\templates\master.kid Copying welcome.kid to .\dummy\dummy\templates\welcome.kid

Recursing into tests

Creating .\dummy\dummy\tests/ Copying init.py to .\dummy\dummy\tests\init.py Copying test_controllers.py_tmpl to .\dummy\dummy\tests\test_controllers.py Copying test_model.py_tmpl to .\dummy\dummy\tests\test_model.py

Copying README.txt_tmpl to .\dummy\README.txt Copying dev.cfg_tmpl to .\dummy\dev.cfg Copying sample-prod.cfg_tmpl to .\dummy\sample-prod.cfg Copying setup.py_tmpl to .\dummy\setup.py Copying start-+package+.py_tmpl to .\dummy\start-dummy.py Copying test.cfg_tmpl to .\dummy\test.cfg

Creating template tggenshi

Recursing into +package+

Recursing into config

Replace 5362 bytes with 5736 bytes (6/145 lines changed; 18 lines added)

Copying app.cfg_tmpl to .\dummy\dummy\config\app.cfg

Recursing into templates

Copying login.html to .\dummy\dummy\templates\login.html Copying master.html to .\dummy\dummy\templates\master.html Copying welcome.html to .\dummy\dummy\templates\welcome.html

Replace 2443 bytes with 2470 bytes (0/78 lines changed; 1 lines added)

Copying setup.py_tmpl to .\dummy\setup.py

Removing .\dummy\dummy\templates\login.kid Removing .\dummy\dummy\templates\master.kid Removing .\dummy\dummy\templates\welcome.kid Running c:\Python25\python.exe setup.py egg_info Adding TurboGears to paster_plugins.txt running egg_info writing requirements to dummy.egg-info\requires.txt writing dummy.egg-info\PKG-INFO writing top-level names to dummy.egg-info\top_level.txt writing dependency_links to dummy.egg-info\dependency_links.txt writing entry points to dummy.egg-info\entry_points.txt reading manifest file ' dummy.egg-info\SOURCES.txt' writing manifest file 'dummy.egg-info\SOURCES.txt'

Change History

comment:1 Changed 10 years ago by chrisz

  • Owner changed from anonymous to chrisz
  • Severity changed from normal to minor

These are actually no errors. There are some empty template files which exist only as dummy in an otherwise empty folder. There are also template files which are only needed with SQLObject. In order to skip these empty or unnecessary Cheetah templates, a SkipTemplate? exception is raised. Unfortunately, this is reported on the console as an error.

I'll see if I can do something to that because you're right, this is irritating.

But for now, don't worry about these errors.

comment:2 Changed 10 years ago by chrisz

  • Priority changed from normal to high
  • Severity changed from minor to major

This should actually be fixed in paste.script. I have suggested a fix on the paste mailing list and we need to wait for the response.

comment:3 Changed 10 years ago by chrisz

Since there was no reaction, I have also created a ticket on the paste track:  http://trac.pythonpaste.org/pythonpaste/ticket/219

comment:4 Changed 10 years ago by Chris Arndt

  • Severity changed from major to minor

Setting severity to minor, since, as chrisz has explained, this is mostly a cosmetic issue.

comment:5 Changed 10 years ago by chrisz

This has now been fixed in paste.script i.e. we should just require the next version of paste script in TurboGears. Unfortunately it looks like this will happen after the planned TG 1.0.4 release, but I think we can live with that.

comment:6 Changed 10 years ago by andre

thanks for taking care!

cheers Andre

comment:7 Changed 10 years ago by chrisz

Unfortunately, the fix in PasteScript-1.6.1.1 was not implemented correctly, breaking the TG quickstart command. I have reopened the ticket on the paste track; we will need to wait again.

comment:8 Changed 10 years ago by Chris Arndt

  • Milestone changed from 1.0.4 to 1.0.x bugfix

comment:9 Changed 10 years ago by chrisz

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

Has been fixed in PasteScript 1.6.2 which is now required by TurboGears in r4152.

Note: See TracTickets for help on using tickets.