Code Monkey home page Code Monkey logo

Comments (4)

vindarel avatar vindarel commented on June 8, 2024

ps: same error when trying with getstatik-site sources.

from statik.

thanethomson avatar thanethomson commented on June 8, 2024

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.

vindarel avatar vindarel commented on June 8, 2024

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.

thanethomson avatar thanethomson commented on June 8, 2024

Awesome - glad the traceback helped! 😁

from statik.

Related Issues (20)

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.