Форум сайта python.su
Привет.
При созание нового проэката с помощью paster'a вылазит вот такая гадость:
newtonn@localhost ~/Projects/pylons-temp $ paster create --template=pylons HelloWorld
Selected and implied templates:
Pylons#pylons Pylons application template
Variables:
egg: HelloWorld
package: helloworld
project: HelloWorld
Enter template_engine (mako/genshi/jinja/etc: Template language) ['mako']:
Enter sqlalchemy (True/False: Include SQLAlchemy 0.4 configuration) [False]:
Enter google_app_engine (True/False: Setup default appropriate for Google App Engine) [False]:
Creating template pylons
Creating directory ./HelloWorld
Recursing into +package+
Creating ./HelloWorld/helloworld/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/__init__.py
Recursing into config
Creating ./HelloWorld/helloworld/config/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/config/__init__.py
Copying deployment.ini_tmpl_tmpl to ./HelloWorld/helloworld/config/deployment.ini_tmpl
Copying environment.py_tmpl to ./HelloWorld/helloworld/config/environment.py
Copying middleware.py_tmpl to ./HelloWorld/helloworld/config/middleware.py
Copying routing.py_tmpl to ./HelloWorld/helloworld/config/routing.py
Recursing into controllers
Creating ./HelloWorld/helloworld/controllers/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/controllers/__init__.py
Copying error.py_tmpl to ./HelloWorld/helloworld/controllers/error.py
Recursing into lib
Creating ./HelloWorld/helloworld/lib/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/lib/__init__.py
Copying app_globals.py_tmpl to ./HelloWorld/helloworld/lib/app_globals.py
Copying base.py_tmpl to ./HelloWorld/helloworld/lib/base.py
Copying helpers.py_tmpl to ./HelloWorld/helloworld/lib/helpers.py
Recursing into model
Creating ./HelloWorld/helloworld/model/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/model/__init__.py
Recursing into public
Creating ./HelloWorld/helloworld/public/
Copying bg.png to ./HelloWorld/helloworld/public/bg.png
Copying index.html_tmpl to ./HelloWorld/helloworld/public/index.html
Copying pylons-logo.gif to ./HelloWorld/helloworld/public/pylons-logo.gif
Recursing into templates
Creating ./HelloWorld/helloworld/templates/
Recursing into tests
Creating ./HelloWorld/helloworld/tests/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/tests/__init__.py
Recursing into functional
Creating ./HelloWorld/helloworld/tests/functional/
Copying __init__.py_tmpl to ./HelloWorld/helloworld/tests/functional/__init__.py
Copying test_models.py_tmpl to ./HelloWorld/helloworld/tests/test_models.py
Copying websetup.py_tmpl to ./HelloWorld/helloworld/websetup.py
Copying MANIFEST.in_tmpl to ./HelloWorld/MANIFEST.in
Copying README.txt_tmpl to ./HelloWorld/README.txt
Copying development.ini_tmpl to ./HelloWorld/development.ini
Recursing into docs
Creating ./HelloWorld/docs/
Copying index.txt_tmpl to ./HelloWorld/docs/index.txt
Copying ez_setup.py to ./HelloWorld/ez_setup.py
Copying setup.cfg_tmpl to ./HelloWorld/setup.cfg
Traceback (most recent call last):
File "/usr/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.6.4dev-r7539', 'console_scripts', 'paster')()
File "/usr/lib64/python2.5/site-packages/paste/script/command.py", line 79, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib64/python2.5/site-packages/paste/script/command.py", line 118, in invoke
exit_code = runner.run(args)
File "/usr/lib64/python2.5/site-packages/paste/script/command.py", line 213, in run
result = self.command()
File "/usr/lib64/python2.5/site-packages/paste/script/create_distro.py", line 125, in command
template, output_dir, vars)
File "/usr/lib64/python2.5/site-packages/paste/script/create_distro.py", line 167, in create_template
template.run(self, output_dir, vars)
File "/usr/lib64/python2.5/site-packages/paste/script/templates.py", line 57, in run
self.write_files(command, output_dir, vars)
File "/usr/lib64/python2.5/site-packages/paste/script/templates.py", line 126, in write_files
template_renderer=self.template_renderer)
File "/usr/lib64/python2.5/site-packages/paste/script/copydir.py", line 103, in copy_dir
template_renderer=template_renderer)
File "/usr/lib64/python2.5/site-packages/paste/script/copydir.py", line 269, in substitute_content
return template_renderer(content, vars, filename=filename)
File "/usr/lib64/python2.5/site-packages/PIL-1.1.6-py2.5-linux-x86_64.egg/__init__.py", line 306, in paste_script_template_renderer
File "/usr/lib64/python2.5/site-packages/PIL-1.1.6-py2.5-linux-x86_64.egg/__init__.py", line 136, in substitute
File "/usr/lib64/python2.5/site-packages/PIL-1.1.6-py2.5-linux-x86_64.egg/__init__.py", line 142, in _interpret
File "/usr/lib64/python2.5/site-packages/PIL-1.1.6-py2.5-linux-x86_64.egg/__init__.py", line 151, in _interpret_codes
File "/usr/lib64/python2.5/site-packages/PIL-1.1.6-py2.5-linux-x86_64.egg/__init__.py", line 171, in _interpret_code
File "/usr/lib64/python2.5/site-packages/PIL-1.1.6-py2.5-linux-x86_64.egg/__init__.py", line 222, in _eval
File "<string>", line 1, in <module>
NameError: name 'egg_plugins' is not defined at line 39 column 22 in file /usr/lib64/python2.5/site-packages/Pylons-0.9.7rc3dev_20081017-py2.5.egg/pylons/templates/default_project/setup.py_tmpl
Отредактировано (Окт. 17, 2008 20:20:24)
Офлайн
что? все так плохо? =((
Офлайн
Все! помогли в вашей жаббер-конфе =)
Офлайн
Продолжение:
newtonn@localhost ~/Projects/pylons-temp/HelloWorld $ paster controller hello
An unknown error occurred. copy_file() got an unexpected keyword argument 'template_renderer'
Офлайн
напишите пожалуйста версии paster'a и pylons'a которые нормально работают дуг с другом =)… а то я на девовских сижу… наверно изза них косяки
Отредактировано (Окт. 23, 2008 20:14:46)
Офлайн
:)
может PasteScript криво установлен…
посмотри
/pastescript-1.6.4dev_r7539-py2.5.egg/paste/script/filemaker.py
строка 45
def copy_file(self, template, dest, filename=None, add_py=True, package=True,
template_renderer=None):
похоже на это?
т.е. судя по ошибке template_renderer=None отсутствует в описании функции…
Офлайн
вообщем… говорила мне мама - “Не пользуй dev-версии!!!!”
вроде все терь ботает потихоньку :D
Офлайн