Hi.
I'm getting the error "ImportError: cannot import name
SessionMiddleware" when I try to get paster to serve up a pylons page
with no changes to the paste. Beaker is installed and up-to-date.
Running Python 2.5 on WinXP. It's pretty much a vanilla install of
Python and Pylons -- I used "easy_install pylons".
Any ideas?
Thanks!
Adam
P.S. Below is the log of the failure.
---
PS C:\projs\python> paster create --template=pylons foom
Selected and implied templates:
pylons#pylons Pylons application template
Variables:
egg: foom
package: foom
project: foom
Creating template pylons
Creating directory .\foom
Recursing into +egg+.egg-info
Creating .\foom\foom.egg-info/
Copying paste_deploy_config.ini_tmpl_tmpl to .\foom\foom.egg-info
\paste_deploy_config.ini_tmpl
Recursing into +package+
Creating .\foom\foom/
Copying __init__.py_tmpl to .\foom\foom\__init__.py
Recursing into config
Creating .\foom\foom\config/
Copying __init__.py_tmpl to .\foom\foom\config\__init__.py
Copying environment.py_tmpl to .\foom\foom\config\environment.py
Copying middleware.py_tmpl to .\foom\foom\config\middleware.py
Copying routing.py_tmpl to .\foom\foom\config\routing.py
Recursing into controllers
Creating .\foom\foom\controllers/
Copying __init__.py_tmpl to .\foom\foom\controllers\__init__.py
Copying error.py_tmpl to .\foom\foom\controllers\error.py
Copying template.py_tmpl to .\foom\foom\controllers\template.py
Recursing into docs
Creating .\foom\foom\docs/
Copying index.txt_tmpl to .\foom\foom\docs\index.txt
Recursing into i18n
Creating .\foom\foom\i18n/
Copying __init__.py_tmpl to .\foom\foom\i18n\__init__.py
Recursing into lib
Creating .\foom\foom\lib/
Copying __init__.py_tmpl to .\foom\foom\lib\__init__.py
Copying app_globals.py_tmpl to .\foom\foom\lib\app_globals.py
Copying base.py_tmpl to .\foom\foom\lib\base.py
Copying helpers.py_tmpl to .\foom\foom\lib\helpers.py
Recursing into models
Creating .\foom\foom\models/
Copying __init__.py_tmpl to .\foom\foom\models\__init__.py
Recursing into public
Creating .\foom\foom\public/
Copying index.html_tmpl to .\foom\foom\public\index.html
Recursing into templates
Creating .\foom\foom\templates/
Copying autohandler to .\foom\foom\templates\autohandler
Recursing into tests
Creating .\foom\foom\tests/
Copying __init__.py_tmpl to .\foom\foom\tests\__init__.py
Recursing into functional
Creating .\foom\foom\tests\functional/
Copying __init__.py_tmpl to .\foom\foom\tests\functional
\__init__.py
Copying test_models.py_tmpl to .\foom\foom\tests\test_models.py
Copying websetup.py_tmpl to .\foom\foom\websetup.py
Copying README.txt_tmpl to .\foom\README.txt
Copying development.ini_tmpl to .\foom\development.ini
Recursing into ez_setup
Creating .\foom\ez_setup/
Copying README.txt to .\foom\ez_setup\README.txt
Copying __init__.py to .\foom\ez_setup\__init__.py
Copying setup.cfg_tmpl to .\foom\setup.cfg
Copying setup.py_tmpl to .\foom\setup.py
Copying test.ini_tmpl to .\foom\test.ini
Running c:\python25\python.exe setup.py egg_info
Adding Pylons to paster_plugins.txt
Adding WebHelpers to paster_plugins.txt
PS C:\projs\python> cd foom
PS C:\projs\python\foom> paster serve --reload development.ini
Starting subprocess with file monitor
Traceback (most recent call last):
File "c:\python25\scripts\paster-script.py", line 8, in <module>
load_entry_point('pastescript==1.3.4', 'console_scripts', 'paster')
()
File "c:\python25\lib\site-packages\pastescript-1.3.4-py2.5.egg\paste
\script\command.py", line 76, in run
invoke(command, command_name, options, args[1:])
File "c:\python25\lib\site-packages\pastescript-1.3.4-py2.5.egg\paste
\script\command.py", line 115, in invoke
exit_code = runner.run(args)
File "c:\python25\lib\site-packages\pastescript-1.3.4-py2.5.egg\paste
\script\command.py", line 210, in run
result = self.command()
File "c:\python25\lib\site-packages\pastescript-1.3.4-py2.5.egg\paste
\script\serve.py", line 219, in command
relative_to=base, global_conf=vars)
File "c:\python25\lib\site-packages\pastescript-1.3.4-py2.5.egg\paste
\script\serve.py", line 253, in loadapp
**kw)
File "c:\python25\lib\site-packages\pastedeploy-1.3-py2.5.egg\paste
\deploy\loadwsgi.py", line 193, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "c:\python25\lib\site-packages\pastedeploy-1.3-py2.5.egg\paste
\deploy\loadwsgi.py", line 214, in loadobj
return context.create()
File "c:\python25\lib\site-packages\pastedeploy-1.3-py2.5.egg\paste
\deploy\loadwsgi.py", line 606, in create
return self.object_type.invoke(self)
File "c:\python25\lib\site-packages\pastedeploy-1.3-py2.5.egg\paste
\deploy\loadwsgi.py", line 99, in invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File "c:\python25\lib\site-packages\pastedeploy-1.3-py2.5.egg\paste
\deploy\util\fixtypeerror.py", line 57, in fix_call
val = callable(*args, **kw)
File "C:\projs\python\foom\foom\config\middleware.py", line 36, in
make_app
g=app_globals.Globals)
File "c:\python25\lib\site-packages\pylons-0.9.5-py2.5.egg\pylons
\wsgiapp.py", line 247, in __init__
from beaker.session import SessionMiddleware
ImportError: cannot import name SessionMiddleware
PS C:\projs\python\foom>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---