Hi, buddies, I'm a newbie to pylons. After I run:
$ paster setup-app development.ini
The following errors raised:
Traceback (most recent call last):
File "C:\Python25\Scripts\paster-script.py", line 8, in <module>
load_entry_point('pastescript==1.7.3', 'console_scripts', 'paster')
()
File "c:\python25\lib\site-packages\PasteScript-1.7.3-py2.5.egg\paste
\script\c
ommand.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "c:\python25\lib\site-packages\PasteScript-1.7.3-py2.5.egg\paste
\script\c
ommand.py", line 123, in invoke
exit_code = runner.run(args)
File "c:\python25\lib\site-packages\PasteScript-1.7.3-py2.5.egg\paste
\script\a
ppinstall.py", line 68, in run
return super(AbstractInstallCommand, self).run(new_args)
File "c:\python25\lib\site-packages\PasteScript-1.7.3-py2.5.egg\paste
\script\c
ommand.py", line 218, in run
result = self.command()
File "c:\python25\lib\site-packages\PasteScript-1.7.3-py2.5.egg\paste
\script\a
ppinstall.py", line 446, in command
self.logging_file_config(config_file)
File "c:\python25\lib\site-packages\PasteScript-1.7.3-py2.5.egg\paste
\script\c
ommand.py", line 755, in logging_file_config
parser.read([config_file])
File "C:\Python25\Lib\ConfigParser.py", line 267, in read
self._read(fp, filename)
File "C:\Python25\Lib\ConfigParser.py", line 462, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section
headers.
file: D:\pylons_ex\SimpleSite\development.ini, line: 1
'\xef\xbb\xbf#\n'
Code in development.ini are:
#
# SimpleSite - Pylons development environment configuration
#
# The %(here)s variable will be replaced with the parent directory of
this file
#
[DEFAULT]
debug = true
smtp_server = localhost
error_email_from = [EMAIL PROTECTED]
[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 5000
[app:main]
use = egg:SimpleSite
full_stack = true
cache_dir = %(here)s/data
beaker.session.key = simplesite
beaker.session.secret = somesecret
# SQLAlchemy database URL
sqlalchemy.url = mysql://simplesite:[EMAIL PROTECTED]:3306/simplesite
sqlalchemy.pool_recycle = 3600
# Logging configuration
[loggers]
keys = root, routes, simplesite, sqlalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_routes]
level = INFO
handlers =
qualname = routes.middleware
[logger_simplesite]
level = DEBUG
handlers =
qualname = simplesite
[logger_sqlalchemy]
level = INFO
handlers =
qualname = sqlalchemy.engine
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %
(message)s
datefmt = %H:%M:%S
My sqlalchemy version is 0.5.0rc4. pylons version is 0.97rc4.
Anybody can help me? Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---