Git Product home page Git Product logo

ofsitejp's People

Contributors

daigo3 avatar feb19 avatar fumikistrider avatar hiz1 avatar motoishmz avatar tado avatar takuhito-h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ofsitejp's Issues

blogofileのbuildが通らない

田所さんもつまずいていたようですが、自分も同じくつまずきました。
今日半日blogofileと格闘したんですが、どうにもbuildが通りません。

ERROR:blogofile.filter:Cannot load filter: syntax_highlight
Traceback (most recent call last):
  File "/usr/local/bin/blogofile", line 8, in 
    load_entry_point('Blogofile==0.8b1', 'console_scripts', 'blogofile')()
  File "/Library/Python/2.7/site-packages/blogofile/main.py", line 58, in main
    args.func(args)
  File "/Library/Python/2.7/site-packages/blogofile/main.py", line 382, in do_build
    config.init_interactive(args)
  File "/Library/Python/2.7/site-packages/blogofile/config.py", line 47, in init_interactive
    _load_config("_config.py")
  File "/Library/Python/2.7/site-packages/blogofile/config.py", line 74, in _load_config
    plugin.load_plugins()
  File "/Library/Python/2.7/site-packages/blogofile/plugin.py", line 85, in load_plugins
    directory=os.path.join(plugin_dir, "site_src", "_filters"))
  File "/Library/Python/2.7/site-packages/blogofile/filter.py", line 72, in preload_filters
    load_filter(fn[:-3], module_path=p, namespace=namespace)
  File "/Library/Python/2.7/site-packages/blogofile/filter.py", line 132, in load_filter
    "{0}_{1}".format(name, uuid.uuid4()), module_path)
  File "/Library/Python/2.7/site-packages/blogofile_blog/site_src/_filters/syntax_highlight.py", line 7, in 
    from pygments import formatters, util, lexers
  File "/Library/Python/2.7/site-packages/Pygments-1.5-py2.7.egg/pygments/formatters/__init__.py", line 14, in 
    from pygments.formatters._mapping import FORMATTERS
  File "/Library/Python/2.7/site-packages/Pygments-1.5-py2.7.egg/pygments/formatters/_mapping.py", line 21, in 
    from pygments.formatters.img import BmpImageFormatter
  File "/Library/Python/2.7/site-packages/Pygments-1.5-py2.7.egg/pygments/formatters/img.py", line 13, in 
    from commands import getstatusoutput
ImportError: cannot import name getstatusoutput

最初のうちのエラーは、ただ必要なモジュールが無かったりパスが通ってないだけだったんですが、
そのうち訳の分からないエラーになってしまっています。

分かる人が居ましたら教えていただけると助かります。
よろしくお願いします。

_controllers/community.pyでXMLSyntaxError

blogofileでbuildしようとしてみたのですが、うまくビルドできませんでした。エラーのログは以下です。

Traceback (most recent call last):
  File "/usr/local/bin/blogofile", line 9, in <module>
    load_entry_point('Blogofile==1.0.0-DEV', 'console_scripts', 'blogofile')()
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Blogofile-1.0.0_DEV-py2.7.egg/blogofile/main.py", line 135, in main
    args.func(args)
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Blogofile-1.0.0_DEV-py2.7.egg/blogofile/main.py", line 201, in do_build
    writer.write_site()
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Blogofile-1.0.0_DEV-py2.7.egg/blogofile/writer.py", line 52, in write_site
    self.__run_controllers()
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Blogofile-1.0.0_DEV-py2.7.egg/blogofile/writer.py", line 136, in __run_controllers
    controller.run_all()
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Blogofile-1.0.0_DEV-py2.7.egg/blogofile/controller.py", line 203, in run_all
    controller.run()
  File "_controllers/community.py", line 26, in run
    xml = objectify.fromstring(users_list)
  File "lxml.objectify.pyx", line 1802, in lxml.objectify.fromstring (src/lxml/lxml.objectify.c:22312)
  File "lxml.etree.pyx", line 3003, in lxml.etree.fromstring (src/lxml/lxml.etree.c:67277)
  File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:101626)
  File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:100455)
  File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:95637)
  File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:90446)
  File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:91632)
  File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:90928)
lxml.etree.XMLSyntaxError: AttValue: " or ' expected, line 9, column 24

原因

https://github.com/tado/ofSiteJp/blob/master/_controllers/community.py#L23
原因はこの部分のようです。リンクが切れていました。

とりあえず、_controllers/community.pyを削除して、community部分のソースをopenframeworks/ofSiteのものにしてみると動きました。具体的には以下の二つのファイルを落としてきました。

試しに少し翻訳を進めてみようかな?と思ったのですが、ずいぶん本家と離れてしまっている感じも否めないので、とりあえず本家のドキュメントを充実させるのに力を注いでみようかなと思っていますが…。
一応困った方が居た時のために情報共有も兼ねてIssue立てさせていただきました。

community/user/base.mako が見つからずビルドできない

新規にローカル環境を構築しようとしているのですが、以下のエラーで blogfile build が通りません。
おそらく community/user/base.mako が無いためだと思うのですが、対策ご存知でしょうか?

ERROR:blogofile.template:Error rendering template: community/user/index.html.mako


Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/template.py", line 154, in render
    rendered = self.mako_template.render(**self)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/template.py", line 445, in render
    return runtime._render(self, self.callable_, args, data)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 829, in _render
    **_kwargs_for_callable(callable_, data))
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 863, in _render_context
    (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 805, in _populate_self_namespace
    ret = template.module._mako_inherit(template, context)
  File "community/user/index.html.mako", line 1, in _mako_inherit
    #coding:utf-8
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 762, in _inherit_from
    template = _lookup_template(context, uri, calling_uri)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 795, in _lookup_template
    raise exceptions.TemplateLookupException(str(compat.exception_as()))
TemplateLookupException: Cant locate template for uri u'community/user/base.mako'

ERROR:blogofile:Fatal build error occured, calling bf.config.build_exception()
Traceback (most recent call last):
  File "/usr/local/bin/blogofile", line 9, in <module>
    load_entry_point('Blogofile==0.8.3', 'console_scripts', 'blogofile')()
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/main.py", line 58, in main
    args.func(args)
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/main.py", line 388, in do_build
    writer.write_site()
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/writer.py", line 50, in write_site
    self.__write_files()
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/writer.py", line 127, in __write_files
    util.path_join(root, html_path))
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/template.py", line 386, in materialize_template
    template.render(location)
  File "/Library/Python/2.7/site-packages/Blogofile-0.8.3-py2.7.egg/blogofile/template.py", line 154, in render
    rendered = self.mako_template.render(**self)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/template.py", line 445, in render
    return runtime._render(self, self.callable_, args, data)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 829, in _render
    **_kwargs_for_callable(callable_, data))
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 863, in _render_context
    (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 805, in _populate_self_namespace
    ret = template.module._mako_inherit(template, context)
  File "community_user_index_html_mako", line 25, in _mako_inherit
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 762, in _inherit_from
    template = _lookup_template(context, uri, calling_uri)
  File "/Library/Python/2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py", line 795, in _lookup_template
    raise exceptions.TemplateLookupException(str(compat.exception_as()))
mako.exceptions.TemplateLookupException: Cant locate template for uri u'community/user/base.mako'

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.