first attempt at "paster quickstart" crashes

6 views
Skip to first unread message

teamnoir

unread,
Sep 14, 2009, 4:48:13 PM9/14/09
to TurboGears
I've just made my first attempt to run "paster quickstart" and it's
crashed.

I'm not sure what this says about turbogears.

--rich

(turbogears)rich@kangaroo> paster quickstart
Enter project name: zoo-animals
Enter package name [zooanimals]: zoo-animals
Do you need authentication and authorization in this project? [yes] no
Selected and implied templates:
tg.devtools#turbogears2 TurboGears 2.0 Standard Quickstart Template

Variables:
auth: None
egg: zoo_animals
geo: None
package: zoo-animals
project: zoo-animals
sqlalchemy: True
sqlobject: False
tgversion: 2.0.3
Creating template turbogears2
Creating directory ./zoo-animals
Recursing into +package+
Creating ./zoo-animals/zoo-animals/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/__init__.py
Recursing into config
Creating ./zoo-animals/zoo-animals/config/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/config/
__init__.py
Copying app_cfg.py_tmpl to ./zoo-animals/zoo-animals/config/
app_cfg.py
Copying deployment.ini_tmpl_tmpl to ./zoo-animals/zoo-animals/
config/deployment.ini_tmpl
Copying environment.py_tmpl to ./zoo-animals/zoo-animals/config/
environment.py
Copying middleware.py_tmpl to ./zoo-animals/zoo-animals/config/
middleware.py
Recursing into controllers
Creating ./zoo-animals/zoo-animals/controllers/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/controllers/
__init__.py
Copying controller.template_tmpl to ./zoo-animals/zoo-animals/
controllers/controller.template
Copying error.py_tmpl to ./zoo-animals/zoo-animals/controllers/
error.py
Copying root.py_tmpl to ./zoo-animals/zoo-animals/controllers/
root.py
Copying secure.py_tmpl to ./zoo-animals/zoo-animals/controllers/
secure.py
Copying template.py_tmpl to ./zoo-animals/zoo-animals/controllers/
template.py
Recursing into i18n
Creating ./zoo-animals/zoo-animals/i18n/
Recursing into ru
Creating ./zoo-animals/zoo-animals/i18n/ru/
Recursing into LC_MESSAGES
Creating ./zoo-animals/zoo-animals/i18n/ru/LC_MESSAGES/
Copying +package+.po_tmpl to ./zoo-animals/zoo-animals/i18n/
ru/LC_MESSAGES/zoo-animals.po
Recursing into lib
Creating ./zoo-animals/zoo-animals/lib/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/lib/
__init__.py
Copying app_globals.py_tmpl to ./zoo-animals/zoo-animals/lib/
app_globals.py
Copying base.py_tmpl to ./zoo-animals/zoo-animals/lib/base.py
Copying helpers.py_tmpl to ./zoo-animals/zoo-animals/lib/
helpers.py
Recursing into model
Creating ./zoo-animals/zoo-animals/model/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/model/
__init__.py
Copying auth.py_tmpl to ./zoo-animals/zoo-animals/model/auth.py
Copying model.template_tmpl to ./zoo-animals/zoo-animals/model/
model.template
Recursing into public
Creating ./zoo-animals/zoo-animals/public/
Recursing into css
Creating ./zoo-animals/zoo-animals/public/css/
Copying style.css to ./zoo-animals/zoo-animals/public/css/
style.css
Copying favicon.ico to ./zoo-animals/zoo-animals/public/
favicon.ico
Recursing into images
Creating ./zoo-animals/zoo-animals/public/images/
Copying contentbg.png to ./zoo-animals/zoo-animals/public/
images/contentbg.png
Copying error.png to ./zoo-animals/zoo-animals/public/images/
error.png
Copying header_inner2.png to ./zoo-animals/zoo-animals/public/
images/header_inner2.png
Copying headerbg.png to ./zoo-animals/zoo-animals/public/images/
headerbg.png
Copying info.png to ./zoo-animals/zoo-animals/public/images/
info.png
Copying inputbg.png to ./zoo-animals/zoo-animals/public/images/
inputbg.png
Copying loginbg.png to ./zoo-animals/zoo-animals/public/images/
loginbg.png
Copying loginbottombg.png to ./zoo-animals/zoo-animals/public/
images/loginbottombg.png
Copying loginheader-left.png to ./zoo-animals/zoo-animals/
public/images/loginheader-left.png
Copying loginheader-right.png to ./zoo-animals/zoo-animals/
public/images/loginheader-right.png
Copying menu-item-actibg-first.png to ./zoo-animals/zoo-animals/
public/images/menu-item-actibg-first.png
Copying menu-item-actibg.png to ./zoo-animals/zoo-animals/
public/images/menu-item-actibg.png
Copying menu-item-border.png to ./zoo-animals/zoo-animals/
public/images/menu-item-border.png
Copying menubg.png to ./zoo-animals/zoo-animals/public/images/
menubg.png
Copying ok.png to ./zoo-animals/zoo-animals/public/images/
ok.png
Copying pagebg.png to ./zoo-animals/zoo-animals/public/images/
pagebg.png
Copying star.png to ./zoo-animals/zoo-animals/public/images/
star.png
Copying strype2.png to ./zoo-animals/zoo-animals/public/images/
strype2.png
Copying under_the_hood_blue.png to ./zoo-animals/zoo-animals/
public/images/under_the_hood_blue.png
Copying warning.png to ./zoo-animals/zoo-animals/public/images/
warning.png
Recursing into templates
Creating ./zoo-animals/zoo-animals/templates/
Copying __init__.py to ./zoo-animals/zoo-animals/templates/
__init__.py
Copying about.html to ./zoo-animals/zoo-animals/templates/
about.html
Copying authentication.html to ./zoo-animals/zoo-animals/
templates/authentication.html
Copying debug.html to ./zoo-animals/zoo-animals/templates/
debug.html
Copying error.html to ./zoo-animals/zoo-animals/templates/
error.html
Copying footer.html to ./zoo-animals/zoo-animals/templates/
footer.html
Copying header.html to ./zoo-animals/zoo-animals/templates/
header.html
Copying index.html to ./zoo-animals/zoo-animals/templates/
index.html
Copying login.html to ./zoo-animals/zoo-animals/templates/
login.html
Copying master.html to ./zoo-animals/zoo-animals/templates/
master.html
Copying sidebars.html to ./zoo-animals/zoo-animals/templates/
sidebars.html
Recursing into tests
Creating ./zoo-animals/zoo-animals/tests/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/tests/
__init__.py
Recursing into functional
Creating ./zoo-animals/zoo-animals/tests/functional/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/tests/
functional/__init__.py
Copying test_authentication.py_tmpl to ./zoo-animals/zoo-
animals/tests/functional/test_authentication.py
Copying test_root.py_tmpl to ./zoo-animals/zoo-animals/tests/
functional/test_root.py
Recursing into models
Creating ./zoo-animals/zoo-animals/tests/models/
Copying __init__.py_tmpl to ./zoo-animals/zoo-animals/tests/
models/__init__.py
Copying test_auth.py_tmpl to ./zoo-animals/zoo-animals/tests/
models/test_auth.py
Copying websetup.py_tmpl to ./zoo-animals/zoo-animals/websetup.py
Copying MANIFEST.in_tmpl to ./zoo-animals/MANIFEST.in
Copying README.txt_tmpl to ./zoo-animals/README.txt
Copying development.ini_tmpl to ./zoo-animals/development.ini
Recursing into ez_setup
Creating ./zoo-animals/ez_setup/
Copying README.txt to ./zoo-animals/ez_setup/README.txt
Copying __init__.py to ./zoo-animals/ez_setup/__init__.py
Copying setup.cfg_tmpl to ./zoo-animals/setup.cfg
Copying setup.py_tmpl to ./zoo-animals/setup.py
Copying test.ini_tmpl to ./zoo-animals/test.ini
Running /home/rich/turbogears/bin/python setup.py egg_info
Traceback (most recent call last):
File "/home/rich/turbogears/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/home/rich/turbogears/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/home/rich/turbogears/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in
invoke
exit_code = runner.run(args)
File "/home/rich/turbogears/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
result = self.command()
File "/home/rich/turbogears/lib/python2.6/site-packages/
tg.devtools-2.0.2-py2.6.egg/devtools/commands/quickstart.py", line
214, in command
command.run(cmd_args)
File "/home/rich/turbogears/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
result = self.command()
File "/home/rich/turbogears/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/create_distro.py", line 170,
in command
egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)
File "/home/rich/turbogears/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/pluginlib.py", line 134, in
egg_info_dir
% ', '.join(all))
IOError: No egg-info directory found (looked in ./zoo-animals/./
zoo_animals.egg-info, ./zoo-animals/zoo-animals/zoo_animals.egg-
info, ./zoo-animals/setup.cfg/zoo_animals.egg-info, ./zoo-animals/
test.ini/zoo_animals.egg-info, ./zoo-animals/README.txt/
zoo_animals.egg-info, ./zoo-animals/development.ini/zoo_animals.egg-
info, ./zoo-animals/setup.py/zoo_animals.egg-info, ./zoo-animals/
MANIFEST.in/zoo_animals.egg-info, ./zoo-animals/ez_setup/
zoo_animals.egg-info)

Diez B. Roggisch

unread,
Sep 15, 2009, 2:01:38 AM9/15/09
to turbo...@googlegroups.com
teamnoir schrieb:

> I've just made my first attempt to run "paster quickstart" and it's
> crashed.
>
> I'm not sure what this says about turbogears.

I'm sure it says something about you not knowing that python packages
can't contain dashes because

foo-bar

is interpreted as "take foo and subtract bar from it".

Thus it can't be imported, and trying so causes all kinds of problems.

About TG it says that me might consider putting some validation code in
there that prevents this from happening.

Diez

Crusty

unread,
Sep 15, 2009, 6:13:51 AM9/15/09
to turbo...@googlegroups.com
well, actually this validation shouldnt be necessary, as you can
expect people to at least have a minimum of python understanding, such
as giving valid names to variables and packages. I dont think its your
job to validate this stuff. Remember the python "we are all consenting
adults" thingy.

btw: this post is some funny shit :P

greetings, Tom
Reply all
Reply to author
Forward
0 new messages