tado / ofsitejp Goto Github PK
View Code? Open in Web Editor NEWopenFrameworks website translate in Japanese
openFrameworks website translate in Japanese
田所さんもつまずいていたようですが、自分も同じくつまずきました。
今日半日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
最初のうちのエラーは、ただ必要なモジュールが無かったりパスが通ってないだけだったんですが、
そのうち訳の分からないエラーになってしまっています。
分かる人が居ましたら教えていただけると助かります。
よろしくお願いします。
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立てさせていただきました。
新規にローカル環境を構築しようとしているのですが、以下のエラーで 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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.