Comments (4)
ps: same error when trying with getstatik-site sources.
from statik.
Strange. Could be related to #31. Please update to v0.7.1
and send your exception traceback? I've enabled verbose exception logging now in v0.7.1
.
I can build the getstatik-site
sources just fine with Python 3.5.1 and 3.5.2 at the moment.
from statik.
Now I can build getstatik-site sources.
My traceback for my project (statik 0.8):
$ statik *[master]
Project path configured as: /home/vince/bacasable/statiktest
Using encoding: None
Error caught: while parsing a block mapping
in "<unicode string>", line 1, column 1:
path:
^
expected <block end>, but found '<block mapping start>'
in "<unicode string>", line 5, column 2:
template: post
^
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/statik/project.py", line 91, in generate
self.views = self.load_views()
File "/usr/local/lib/python2.7/dist-packages/statik/project.py", line 200, in load_views
template_env=self.template_env,
File "/usr/local/lib/python2.7/dist-packages/statik/views.py", line 25, in __init__
super(StatikView, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/statik/common.py", line 43, in __init__
self.vars = yaml.load(self.file_content) if len(self.file_content) else {}
File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
return loader.get_single_data()
File "/usr/local/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected <block end>, but found %r" % token.id, token.start_mark)
ParserError: while parsing a block mapping
in "<unicode string>", line 1, column 1:
path:
^
expected <block end>, but found '<block mapping start>'
in "<unicode string>", line 5, column 2:
template: post
^
Unable to clean up properly: 'NoneType' object has no attribute 'shutdown'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/statik/project.py", line 123, in generate
self.db.shutdown()
AttributeError: 'NoneType' object has no attribute 'shutdown'
It wasn't super clear, but because of "template: post" I recognized there's a pb in a yaml file. Indeed, I had a badly indented line. Fixed !
from statik.
Awesome - glad the traceback helped! 😁
from statik.
Related Issues (20)
- URL / URI support HOT 2
- Add support for extending Models
- SFTP Remote Upload not working HOT 1
- Statik needs a good plugin system HOT 8
- Implement new version of Statik docs for getstatik.com
- Expand on blog example
- Add an example portfolio web site
- Add example technical documentation site HOT 1
- Custom build steps?
- Quickstart fails when directory doesn't exist
- Keeping images with models
- Make it possible to reuse a view HOT 4
- How to fetch/grab related post/item item in views HOT 1
- TypeError: count() takes exactly one argument (0 given) HOT 2
- Any Statik community around to ask questions related to flask..? HOT 3
- Misformed YAML context crashes with unhelpful error HOT 1
- Add a context variable with current path
- Specify dependencies using ranges HOT 2
- Support floats
- TypeError: load() missing 1 required positional argument: 'Loader' in database.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statik.