You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new pyramid_jqm app via pcreate -s pyramid_jqm_starter . && python setup.py develop, which appeared to work; but when I ran the app via pserve --reload development.ini I saw
Starting subprocess with file monitor
Traceback (most recent call last):
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/bin/pserve", line 9, in <module>
load_entry_point('pyramid==1.6a2', 'console_scripts', 'pserve')()
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/pyramid/scripts/pserve.py", line 58, in main
return command.run()
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/pyramid/scripts/pserve.py", line 328, in run
global_conf=vars)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/pyramid/scripts/pserve.py", line 363, in loadapp
return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
global_conf=global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
APP, pipeline[-1], global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 454, in get_context
section)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 406, in get_context
global_conf=global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 620, in get_context
object_type, name=name)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/paste/deploy/loadwsgi.py", line 646, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2355, in load
return self.resolve()
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/venv3.Darwin/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2361, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/pyramid_tinyurl_doodle/__init__.py", line 2, in <module>
from pyramid_tinyurl_doodle.views import www
File "/Users/erichanchrow/git-repositories/me/pyramid-tinyurl-doodle/pyramid_tinyurl_doodle/views.py", line 6, in <module>
from pyramid.view import static_view
ImportError: cannot import name 'static_view'
Simply changing line 6 of views.py_tmpl like this fixed it:
--- a/pyramid_jqm/scaffolds/jqm_starter/+package+/views.py_tmpl
+++ b/pyramid_jqm/scaffolds/jqm_starter/+package+/views.py_tmpl
@@ -3,7 +3,7 @@
from pkg_resources import get_distribution
from pyramid.httpexceptions import HTTPNotFound
-from pyramid.view import static_view
+from pyramid.static import static_view
from pyramid.view import view_config
# www is a view for static files; it will be found when all other
The text was updated successfully, but these errors were encountered:
I created a new pyramid_jqm app via
pcreate -s pyramid_jqm_starter . && python setup.py develop
, which appeared to work; but when I ran the app viapserve --reload development.ini
I sawSimply changing line 6 of views.py_tmpl like this fixed it:
The text was updated successfully, but these errors were encountered: