Giter Club home page Giter Club logo

Comments (3)

jwalgran avatar jwalgran commented on September 28, 2024

I am receiving the same error when I request http://localhost:3000/help. Looks like shovel can't find or can't access the help template.

$ shovel-server
Bottle server starting up (using WSGIRefServer())...
Listening on http://:3000/
Hit Ctrl-C to quit.

Traceback (most recent call last):
  File "/usr/local/bin/bottle.py", line 737, in _handle
    return route.call(**args)
  File "/usr/local/bin/bottle.py", line 1456, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python2.7/dist-packages/shovel-0.1.9-py2.7.egg/EGG-INFO/scripts/shovel-server", line 139, in     _help
    return bottle.template(pkgutil.get_data('shovel', 'templates/help.tpl'), tasks=[{
  File "/usr/lib/python2.7/pkgutil.py", line 583, in get_data
    return loader.get_data(resource_name)
  File "/usr/lib/python2.7/pkgutil.py", line 247, in get_data

$ cd /usr/local/lib/python2.7/dist-packages/shovel-0.1.9-py2.7.egg/shovel/templates
$ ls
help.tpl  results.tpl

from shovel.

npinto avatar npinto commented on September 28, 2024

This comes from the fact that pkgutil.get_data() resolves shovel to your shovel.py file. A fix would be to use a different name for the shovel file or module.

from shovel.

b4hand avatar b4hand commented on September 28, 2024

Closing this out as well since shovel-server is not part of shovel anymore.

from shovel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.