el_pup_le
el_pup_le

Reputation: 12189

ImportError: No module named wsgi.simple_server

I've followed the installation instructions for Pyramid:

http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/install.html

Then trying to run the hello world program:

../bin/python helloworld.py
Traceback (most recent call last):
  File "helloworld.py", line 1, in <module>
    from wsgi.simple_server import make_server

Googling hasn't yielded answers possibly because I'm new to python.

Reading from here: http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/firstapp.html#firstapp-chapter

Upvotes: 0

Views: 1061

Answers (1)

eminor
eminor

Reputation: 933

According to the link you provided, the name of the wsgi module is wsgiref, so line 1 should be:

from wsgiref.simple_server import make_server

Upvotes: 3

Related Questions