• I just had a chance to do a small amount of testing. Under some conditions it works. When serving a basic website that uses templates, if the run command has the debug parameter set to true, it fails. If I leave that parameter at the default setting it works. I still haven't had time to do more than that.

  • Pythonista posted

    How would i download it and run it from hg.python.org

  • Spoke too soon. I changed line 456 in nltk.text.py to

    from nltk.draw.dispersion import dispersion_plot

    And now the dispersion_plot works. Not sure what in the draw package requires Tkinter, but that wasn't it.

  • I've been able to get started with it. By just putting the nltk download in site-packages and using nltk.download() as well. Like @ihf I didn't try and run setup.py either.

    I'm trying to remember if I changed anything in the NLTK_DATA path or not....

  • 'cd ..' (without the quotes) will take you up a level

  • For future generations who find themselves here.. pipista is no longer supported. Active development is happening on stash https://github.com/ywangd/stash, which includes a pip command that is a little more reliable.

  • Hi! I had the same problem, but found a way to install modules in Editorial relatively easy.

    solution at jackenhack.com

  • my_text = 'Basically I want to dynamically generate an output .txt file using python.' with open('hi.txt', 'w') as out_file: out_file.write(my_text)
  • From http://docs.python.org/2/library/functions.html?highlight=file#file

    When opening a file, it’s preferable to use open() instead of invoking this constructor directly. file is more suited to type testing (for example, writing isinstance(f, file)).

    In addition to using open() instead of file(), I would strongly encourage the use of the syntax:

    with open('feedlist.txt') as in_file: for feedurl in in_file.read():

    With this syntax, in_file.close() will automatically be called when the with block terminates even if exceptions are thrown. File handles left open lead to bugs and memory leaks. The with syntax allows you to open, use, and forget because the close() call is automatic.

  • Make sure that the "recommendations.py" file is named "recommendations" by Pythonista. The app automatically puts .py at the end, so if you call a script "recommendations.py" it will be named "recommendations.py.py".

    In the console you can then type

    import recommendations

    If it says nothing afterwards, everything worked. You can then access the critics using recommendations.critics, for example:

  • Ok now that i hav unzipped and untarred the module that i downloaded how do i use this module

Internal error.

Oops! Looks like something went wrong!