blendedsitegenerator / blended Goto Github PK
View Code? Open in Web Editor NEWThe Most Versatile Static HTML Site Generator
Home Page: http://jmroper.com/blended/
License: GNU General Public License v3.0
The Most Versatile Static HTML Site Generator
Home Page: http://jmroper.com/blended/
License: GNU General Public License v3.0
I receive the following error when attempting to run 'blended init' with no easily identifiable way to resolve the error message:
[root@localhost]# blended init
Traceback (most recent call last):
File "/bin/blended", line 7, in <module>
from blended.__main__ import cli
File "/usr/lib/python3.4/site-packages/blended/__main__.py", line 34, in <module>
from .functions import create_folder, replace_folder, get_html_filename, get_html_clear_filename, getunzipped, checkConfig, createConfig, createBlendedFolders, parseXML
File "/usr/lib/python3.4/site-packages/blended/functions.py", line 76
except IOError, e:
^
SyntaxError: invalid syntax
hi.
root@AR:/usr/local/blended-site# cat content/test-3.md
这是测试3.
root@AR:/usr/local/blended-site#
root@AR:/usr/local/blended-site# blended build
Building your Blended files into a website!
Traceback (most recent call last):
File "/usr/local/bin/blended", line 11, in
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/blended/main.py", line 559, in build
build_files()
File "/usr/local/lib/python2.7/dist-packages/blended/main.py", line 397, in build_files
text_cont1 = convert_text(os.path.join(root, filename))
File "/usr/local/lib/python2.7/dist-packages/blended/main.py", line 251, in convert_text
text_cont1 = "\n"+markdown.markdown(text_content.read())+"\n"
File "/usr/local/lib/python2.7/dist-packages/markdown/init.py", line 494, in markdown
return md.convert(text)
File "/usr/local/lib/python2.7/dist-packages/markdown/init.py", line 359, in convert
source = util.text_type(source)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 2: ordinal not in range(128). -- Note: Markdown only accepts unicode input!
root@AR:/usr/local/blended-site#
test-3.md is written in chinese.how to fix the error?
When doing pip install blended
to do a local build of https://github.com/ArtOfIllusion/AOI-website I got the above error. (thanks for the contribution, BTW!)
I was able to replicate the error by running pip install importlib.
I'm on arch, so my default python package is python 3. I've done some poking around, and found that the importlib
module seems to be intended for use with python 2.x only?
I was able to install a secondary package for python 2.7, and was able to successfully install and run blended with that. However, since the blended website states that blended is for use with both python 2 & 3, I thought I'd drop a line here, just in case I'm missing something.
Unfortunately, 4.1 yields errors:
Building your Blended files into a website!
Traceback (most recent call last): File "/bin/blended", line 11, in sys.exit(cli()) File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in call return self.main(*args, **kwargs) File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python2.7/site-packages/blended/main.py", line 547, in build build_files() File "/usr/lib/python2.7/site-packages/blended/main.py", line 469, in build_files file_modified = str(time.ctime(os.path.getmtime(subfolder_folder))) File "/usr/lib64/python2.7/genericpath.py", line 62, in getmtime return os.stat(filename).st_mtime OSError: [Errno 2] No such file or directory: '/home/jv/src/tt2site/Sites/JohanVromans/blended/build/foo/coloured_notes.html'
Note that there is no source content/foo/coloured_notes.html, so I wonder why it wants to put it in build.
It seems that Blended processes content items in the content directory, but not in subdirectories.
On (MacOS High Sierra) Python 3.6.4, fresh install and creation of a Blended site, I get this error on build :
Traceback (most recent call last): File "/usr/local/bin/blended", line 11, in <module> load_entry_point('blended==5.0.2', 'console_scripts', 'blended')() File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/blended/__main__.py", line 723, in build reload(sys) NameError: name 'reload' is not defined
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.