Pyramid build error

93 views
Skip to first unread message

vacation...@gmail.com

unread,
Mar 14, 2017, 12:44:27 PM3/14/17
to pylons-discuss
I am very new to Pyramid new as in I only heard of it a couple of days ago.
I installed it using pip and was creating my first app. but I received the following error when I used the following command.
pserve development.ini
I am not sure what to do. Any help and thanks in advanced. I used the following guide.
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#project-narr
I did not create an virtual environment.

Starting server in PID 30147. Traceback (most recent call last): File "/usr/local/bin/pserve", line 9, in <module> load_entry_point('pyramid==1.8.3', 'console_scripts', 'pserve')() File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 40, in main return command.run() File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 235, in run server(app) File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 189, in server_wrapper **context.local_conf) File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call val = callable(*args, **kw) File "/usr/lib/python2.7/dist-packages/waitress/__init__.py", line 21, in serve_paste serve(app, **kw) File "/usr/lib/python2.7/dist-packages/waitress/__init__.py", line 11, in serve server = _server(app, **kw) File "/usr/lib/python2.7/dist-packages/waitress/server.py", line 39, in create_server adj = Adjustments(**kw) File "/usr/lib/python2.7/dist-packages/waitress/adjustments.py", line 180, in __init__ raise ValueError('Unknown adjustment %r' % k) ValueError: Unknown adjustment 'listen'

Bert JW Regeer

unread,
Mar 14, 2017, 1:55:19 PM3/14/17
to pylons-...@googlegroups.com
The version of waitress is not in-line with a version that supports the listen attribute.

Please see http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/install.html for installing Pyramid and it’s dependencies correctly, you most likely want a virtual environment so that you don’t run into issues with the distributions installed versions of packages.

Bert

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/7409e178-5204-42ee-a47d-1aaca990107a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vacation...@gmail.com

unread,
Mar 14, 2017, 3:02:38 PM3/14/17
to pylons-discuss
Thanks Bert
I will go the virtual environment way.  I just wanted everything the same as it would be in production.

Bert JW Regeer

unread,
Mar 14, 2017, 3:10:35 PM3/14/17
to pylons-...@googlegroups.com
I would highly recommend also using a virtualenv in production for the same reason.

Bert

Steve Piercy

unread,
Mar 14, 2017, 4:50:08 PM3/14/17
to pylons-...@googlegroups.com
You are following documentation for an unsupported version of
Pyramid. See that little red button in the corner, "> Read the
latest version of this page"? Click it. You will have a much
better experience.
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/project.html

--steve


On 3/14/17 at 9:42 AM, vacation...@gmail.com pronounced:

>
>I am very new to Pyramid new as in I only heard of it a couple of days ago.
>I installed it using pip and was creating my first app. but I
>received the following error when I used the following command.
>pserve development.ini
>I am not sure what to do. Any help and thanks in advanced. I
>used the following guide. http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#project-narr
>I did not create an virtual environment.
>
>Starting server in PID 30147.Traceback (most recent call last):
>File "/usr/local/bin/pserve", line 9, in <module>
>load_entry_point('pyramid==1.8.3', 'console_scripts', 'pserve')()
>File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 40, in main
>return command.run()
>File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 235, in run
>server(app)
>File
>"/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py",
>line 189, in server_wrapper
>**context.local_conf)
>File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
>val = callable(*args, **kw)
>File "/usr/lib/python2.7/dist-packages/waitress/__init__.py", line 21, in serve_paste
>serve(app, **kw)
>File "/usr/lib/python2.7/dist-packages/waitress/__init__.py", line 11, in serve
>server = _server(app, **kw)
>File "/usr/lib/python2.7/dist-packages/waitress/server.py", line 39, in create_server
>adj = Adjustments(**kw)
>File "/usr/lib/python2.7/dist-packages/waitress/adjustments.py", line 180, in __init__
>raise ValueError('Unknown adjustment %r' % k)ValueError: Unknown adjustment 'listen'
>

------------------------
Steve Piercy, Soquel, CA

Reply all
Reply to author
Forward
0 new messages