Hi looking forward to getting going but I didn't get very
far.
Installed via ez_setup -U -D Pylons==dev. I'm on Win XP,
Python 2.3
with pylons-0.8dev_r631. Install went fine. Also, paster
create
helloworld worked, yet when I go to launch the server, I'm
getting a
trackback. Here is the command:
H:\Python23\Scripts\helloworld>python ../paster serve
--reload
development.ini
Starting subprocess with file monitor
And here is the traceback:
Traceback (most recent call last):
File "../paster", line 5, in ?
pkg_resources.run_script('pastescript==0.5dev-r4722',
'paster')
File
"h:\python23\lib\site-packages\setuptools-0.6a9-py
2.3.egg\pkg_resources.p
y", line 407, in run_script
self.require(requires)[0].run_script(script_name, ns)
File
"h:\python23\lib\site-packages\setuptools-0.6a9-py
2.3.egg\pkg_resources.p
y", line 920, in run_script
execfile(script_filename, namespace, namespace)
File
"h:\python23\lib\site-packages\pastescript-0.5dev_
r4722-py2.3.egg\EGG-INF
O\scripts\paster", line 18, in ?
command.run()
File
"h:\python23\lib\site-packages\pastescript-0.5dev_
r4722-py2.3.egg\paste\s
cript\command.py", line 70, in run
invoke(command, command_name, options, args[1:])
File
"h:\python23\lib\site-packages\pastescript-0.5dev_
r4722-py2.3.egg\paste\s
cript\command.py", line 110, in invoke
exit_code = runner.run(args)
File
"h:\python23\lib\site-packages\pastescript-0.5dev_
r4722-py2.3.egg\paste\s
cript\command.py", line 205, in run
result = self.command()
File
"h:\python23\lib\site-packages\pastescript-0.5dev_
r4722-py2.3.egg\paste\s
cript\serve.py", line 171, in command
relative_to=base)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 183, in loadapp
return loadobj(APP, uri, name=name, **kw)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 203, in loadobj
global_conf=global_conf)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 225, in loadcontext
global_conf=global_conf)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 245, in _loadconfig
return loader.get_context(object_type, name,
global_conf)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 365, in get_context
section)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 386, in _context_from_use
context = self.get_context(
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 317, in get_context
global_conf=global_conf)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 225, in loadcontext
global_conf=global_conf)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 252, in _loadegg
return loader.get_context(object_type, name,
global_conf)
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 513, in get_context
entry_point, protocol, ep_name =
self.find_egg_entry_point(
File
"h:\python23\lib\site-packages\pastedeploy-0.5dev_
r4624-py2.3.egg\paste\d
eploy\loadwsgi.py", line 540, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File
"h:\python23\lib\site-packages\setuptools-0.6a9-py
2.3.egg\pkg_resources.p
y", line 1625, in load
entry = __import__(self.module_name,
globals(),globals(),
['__name__'])
File
"h:\python23\scripts\helloworld\helloworld\__init
__.py", line 8,
in ?
from helloworld.config.middleware import make_app
File
"h:\python23\scripts\helloworld\helloworld\config
\middleware.py", line
10
, in ?
from helloworld.config.environment import load_config,
paths
File
"h:\python23\lib\site-packages\Myghty-1.0-py2.3.eg
g\myghty\importer.py",
line 54, in import_module
return builtin_importer(name, globals, locals, fromlist)
File
"h:\python23\scripts\helloworld\helloworld\config
\environment.py", line
5
, in ?
from helloworld.config.routing import map
File
"h:\python23\lib\site-packages\Myghty-1.0-py2.3.eg
g\myghty\importer.py",
line 54, in import_module
return builtin_importer(name, globals, locals, fromlist)
File
"h:\python23\scripts\helloworld\helloworld\config
\routing.py",
line 9, in
?
map = Mapper(directory=root_path+'/controllers')
TypeError: __init__() got an unexpected keyword argument
'directory'
I hope this is enough info. Please let me know if more
information is
needed. Any help would be much appreciated.
Thanks, Mike
|