Fix missing templates/, etc in setuptools install. #1

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@philipn
philipn commented Jul 31, 2012

I was checking out gnotty (great stuff so far!) and I was getting this error when running gnottify w/o arguments:

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/gevent/pywsgi.py", line 438, in handle_one_response
    self.run_application()
  File "build/bdist.linux-x86_64/egg/gevent/pywsgi.py", line 424, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "/home/philip/projects/django/gnotty/env/lib/python2.6/site-packages/Gnotty-0.0.1-py2.6.egg/gnotty/server.py", line 164, in __call__
    response = dispatch(environ)
  File "/home/philip/projects/django/gnotty/env/lib/python2.6/site-packages/Gnotty-0.0.1-py2.6.egg/gnotty/server.py", line 99, in respond_static
    content = self.index()
  File "/home/philip/projects/django/gnotty/env/lib/python2.6/site-packages/Gnotty-0.0.1-py2.6.egg/gnotty/server.py", line 118, in index
    with open(os.path.join(template_dir, "base.html"), "r") as f:
IOError: [Errno 2] No such file or directory: '/home/philip/projects/django/gnotty/env/lib/python2.6/site-packages/Gnotty-0.0.1-py2.6.egg/gnotty/templates/gnotty/base.html'
<SocketIOServer fileno=7 address=127.0.0.1:8080>: Failed to handle request:
  request = GET / HTTP/1.1 from ('127.0.0.1', 40472)
  application = <gnotty.server.IRCApplication object at 0xe2fc50>

This pull request adds the missing directories to the installer.

@stephenmcd stephenmcd added a commit that closed this pull request Jul 31, 2012
@stephenmcd Added manifest file. Closes #1 02a520b
@stephenmcd
Owner

Hey Phillip, thanks so much for picking this up. I usually use a manifest file to handle this, which I hadn't added yet. So I've added that now which solves the issue.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment