Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Maxim Ivanov
    @ulidtko
    Hey all, checkin in to a (no longer) empty room :wave:
    tonycpsu
    @tonycpsu
    hey ulidtko, welcome!
    glad there's an IRC gateway at least
    we should probably replace the IRC info in the docs with a link here
    i've never built the docs before
    and not sure how the deployment of those works
    Ian Ward
    @wardi
    pretty sure I left a script somewhere that does it. the resulting docs get pushed to a branch and are published with github pages
    tonycpsu
    @tonycpsu
    there's a Makefile in the docs subdir but it gives me an error
    hm. bin/build-pages.sh maybe
    writing output... [ 10%] index
    Theme error:
    An error happened in rendering the page index.
    Reason: TemplateNotFound()
    Traceback (most recent call last):
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/builders/html.py", line 1092, in handle_page
        output = self.templates.render(templatename, ctx)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/jinja2glue.py", line 207, in render
        return self.environment.get_template(template).render(context)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
        return original_render(self, *args, **kwargs)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
        return self.environment.handle_exception(exc_info, True)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
        reraise(exc_type, exc_value, tb)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
        raise value.with_traceback(tb)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/themes/basic/page.html", line 10, in top-level template code
        {%- extends "layout.html" %}
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/themes/classic/layout.html", line 10, in top-level template code
        {%- extends "basic/layout.html" %}
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/themes/default/../basic/layout.html", line 172, in top-level template code
        {%- block content %}
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/themes/default/../basic/layout.html", line 190, in block "content"
        {%- block sidebar2 %}{{ sidebar() }}{% endblock %}
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/themes/default/../basic/layout.html", line 190, in block "sidebar2"
        {%- block sidebar2 %}{{ sidebar() }}{% endblock %}
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/jinja2/sandbox.py", line 427, in call
        return __context.call(__obj, *args, **kwargs)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/jinja2/runtime.py", line 579, in _invoke
        rv = self._func(*arguments)
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/themes/default/../basic/layout.html", line 64, in template
        {%- include sidebartemplate %}
      File "/Users/tonyc/.pyenv/versions/3.7.2/lib/python3.7/site-packages/sphinx/jinja2glue.py", line 231, in get_source
        raise TemplateNotFound(template)
    j    inja2.exceptions.TemplateNotFound: i
    tonycpsu
    @tonycpsu
    would be nice if it told me which template it was processing, since "i' isn't so easy to grep for
    Maxim Ivanov
    @ulidtko
    succeeded for me (on an older master though):
    ulidtko@ismenius-lacus /m/s/s/urwid> python setup.py build_sphinx
    running build_sphinx
    creating /mnt/spinbulk/src/urwid/build/sphinx
    creating /mnt/spinbulk/src/urwid/build/sphinx/doctrees
    creating /mnt/spinbulk/src/urwid/build/sphinx/html
    Running Sphinx v1.6.7
    loading pickled environment... not yet created
    building [mo]: targets for 0 po files that are out of date
    building [html]: targets for 29 source files that are out of date
    updating environment: 29 added, 0 changed, 0 removed
    reading sources... [100%] tutorial/index                                                                                                                                                
    looking for now-outdated files... none found
    pickling environment... done
    checking consistency... done
    preparing documents... done
    writing output... [100%] tutorial/index                                                                                                                                                 
    generating indices... genindex
    writing additional pages... indexWARNING: Now base template defindex.html is deprecated.
     search
    copying images... [100%] manual/images/urwid_widgets_2.png                                                                                                                              
    copying static files... done
    copying extra files... done
    dumping search index in English (code: en) ... done
    dumping object inventory... done
    build succeeded, 1 warning.
    tonycpsu
    @tonycpsu
    hm i was just running sphinx from the command-line
    same error though
    Ian Ward
    @wardi
    running the right sphinx version?
    tonycpsu
    @tonycpsu
    didn't know there was a right verison. 2.0.0
    Ian Ward
    @wardi
    version should be pinned but I guess it's not
    wow that's pretty harsh!
    tonycpsu
    @tonycpsu
    oooookay then
    builds fine with 1.8.5. thanks
    Maxim Ivanov
    @ulidtko
    no idea how to declare a dev-dep onto Sphinx < 2.0.0
    this should be done until proper migration to newer sphinx
    tonycpsu
    @tonycpsu
    so... this is a fair amount of changes.
    maybe time for a 2.1.0 release?
    Ian Ward
    @wardi
    by all means
    tonycpsu
    @tonycpsu
    cool. so i went in and closed out the 2.0.2 milestone and moved the completed stuff to 2.1.0. doing a quick sweep of outstanding PRs / issues to see if there's anything else that merits inclusion before the release.
    what's all involved in doing a release? build the docs, push the gh-pages branch, tag and push the tag... does Travis take care of PyPi deployment?
    mm would appear not from the .travis.yml
    i have one of my projects set up to do that. kind of nice but not sure if it makes sense for something as popular as urwid
    Ian Ward
    @wardi
    no, I always just did setup.py sdist upload manually.
    tonycpsu
    @tonycpsu
    ok, that's obviously not a problem. i'll wait to see if there's anything else @ulidtko wants to get into the release. need to update the changelog as well
    looks like authors are credited by name in the changelog where possible, otherwise by userid
    tonycpsu
    @tonycpsu
    finally got around to updating the release notes in anticipation of putting out a 2.1.0 release this week... question: the list of contributors is getting pretty lengthy, and will grow longer in the future... if we're going to include anyone who's ever contributed, would it make sense to list them as a comma-separated list rather than a bulleted list?
    Ian Ward
    @wardi
    totally up to you :-)
    tonycpsu
    @tonycpsu
    ok cool. just wanted to run it by the group
    tonycpsu
    @tonycpsu
    mmm looks like only you and Andrew have PyPi maintainer permissions
    guess i should have looked into that before pushing the gh-pages branch :)
    Robert Butler
    @lighth7015
    so I'm trying to work out a menuing system similar to https://i.ytimg.com/vi/HZLt2KT4aLA/maxresdefault.jpg
    or linux's mconf
    Robert Butler
    @lighth7015
    anyone have any ideas? lol
    tonycpsu
    @tonycpsu
    @lighth7015 : examples/tour.py and examples/dialog.py should get you started
    Abhi Chaurasia
    @abhi204
    Hey guys I am new to urwid and plan on using it on my next project. But i can't seem to figure out why is my code not working not properly.

    For example when I use the code below. The layout is what I want but nothing happens when I click the button.

    import urwid

    def on_ask_change(edit, new_edit_text):
    reply.set_text(('I say', u"Nice to meet you, %s" % new_edit_text))

    def on_exit_clicked(button):
    raise urwid.ExitMainLoop()

    palette = [('I say', 'default,bold', 'default', 'bold'),]

    ask = urwid.Edit(('I say', u"What is your name?\n"))
    reply = urwid.Text(u"")
    button = urwid.Button(u'Exit', on_press=on_exit_clicked)

    div = urwid.Divider()
    inout_pile = urwid.Pile([ask, div, reply])
    lined_container = urwid.LineBox(inout_pile)
    cols = urwid.Columns([lined_container, (8,button)])
    top = urwid.Filler(cols, valign='middle')
    urwid.connect_signal(ask, 'change', on_ask_change)
    urwid.MainLoop(top, palette).run()

    tonycpsu
    @tonycpsu
    @abhi204 : If the intended behavior is clicking the button to exit the program, it works for me.
    You do need xterm mouse reporting enabled in your terminal for click events to work.
    Try right to focus the button with the arrow keys then hit enter. It should do the same thing as a click event (exit the program)
    Abhi Chaurasia
    @abhi204
    Oh yes, my bad.
    I was trying it on vscode terminal. Didn't work there.
    thanks @tonycpsu