Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix manual installs using setup.py #21

Merged
merged 1 commit into from Aug 16, 2013
Merged

fix manual installs using setup.py #21

merged 1 commit into from Aug 16, 2013

Conversation

briancappello
Copy link
Contributor

Installing from source wasn't copying the html templates:

$ mkvirtualenv grip
$ workon grip
(grip)$ python setup.py install
(grip)$ grip
Traceback (most recent call last):
  File "/home/brian/.virtualenvs/grip/bin/grip", line 9, in <module>
    load_entry_point('grip==1.2.0', 'console_scripts', 'grip')()
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 2307, in load_entry_point
    return ep.load()
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 2013, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/grip-1.2.0-py2.7.egg/grip/__init__.py", line 14, in <module>
    from . import command
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/grip-1.2.0-py2.7.egg/grip/command.py", line 28, in <module>
    from .server import serve
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/grip-1.2.0-py2.7.egg/grip/server.py", line 6, in <module>
    from .renderer import render_page
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/grip-1.2.0-py2.7.egg/grip/renderer.py", line 7, in <module>
    index_template = env.get_template('index.html')
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 719, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 693, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/loaders.py", line 115, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/brian/.virtualenvs/grip/local/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/loaders.py", line 227, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: index.html

@joeyespo
Copy link
Owner

Oh man, I broke this. I removed package_data in a cleanup effort.

Pulling this fix in now, but I'll research this weekend which solution is the right one, package_data, data_files, or another approach. Do you have any insight to this?

Thanks for the fix!

joeyespo added a commit that referenced this pull request Aug 16, 2013
fix manual installs using setup.py
@joeyespo joeyespo merged commit 3c6a991 into joeyespo:master Aug 16, 2013
@joeyespo joeyespo added the bug label Jun 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants