Giter Site home page Giter Site logo

bobtemplates.niteoweb's People

Contributors

cedricmessiant avatar domenkozar avatar zupo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

svx gotcha

bobtemplates.niteoweb's Issues

AttributeError: 'module' object has no attribute '__file__'

Running this command (taken from readme):

> mrbob --config mrbob.ini -O collective.foo bobtemplates:plone

I get this traceback before mr.bob asks any questions:

Traceback (most recent call last):
  File "/home/matej/bin/mrbob", line 8, in <module>
    load_entry_point('mr.bob==0.1a9', 'console_scripts', 'mrbob')()
  File "/home/matej/workarea/mrbob/lib/python2.7/site-packages/mrbob/cli.py", line 162, in main
    defaults=defaults)
  File "/home/matej/workarea/mrbob/lib/python2.7/site-packages/mrbob/configurator.py", line 138, in __init__
    self.template_dir, self.is_tempdir = parse_template(template)
  File "/home/matej/workarea/mrbob/lib/python2.7/site-packages/mrbob/configurator.py", line 92, in parse_template
    path = resolve_dotted_path(template_name)
  File "/home/matej/workarea/mrbob/lib/python2.7/site-packages/mrbob/configurator.py", line 40, in resolve_dotted_path
    return os.path.join(os.path.dirname(module.__file__), dir_name)
AttributeError: 'module' object has no attribute '__file__'

iElectric is convinced that this is not issue of mr.bob

But this procedure works:

easy_install -U mr.bob
git clone git://github.com/niteoweb/bobtemplates.niteoweb.git
mrbob -O plone.hud_dummy --config mrbob.ini bobtemplates.niteoweb/bobtemplates/plone/

even make command exits with 0.

Some issues with variables

There is no question for the variable 'package.url' but it is required

(I got this error when I tried the template :
File "", line 34, in top-level template code
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'url'

and when I added a question for package.url, the template works perfectly)

Also, I think that the variables 'package.keywords' and 'author.irc' should not be required (author.irc is not used in the template)

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.