Three applications, one release

After discovering how fun is to write a distutil script to install python applications, I decided to write installation scripts for all my python scripts. So I have three different applications and just one release: “Install Me Do”.

Grab GUP 0.2.2, TimeTracker 1.0.2 and MMM 0.3.1 at their pages.

3 thoughts on “Three applications, one release

  1. I have tried your script . It can retrieve information about albums, but neither I can create albums nor upload images.

    This is the trace….

    Traceback (most recent call last):
    File “/Library/Frameworks/Python.framework/Versions/2.4/bin/”, line 442, in ?
    File “/Library/Frameworks/Python.framework/Versions/2.4/bin/”, line 435, in main
    upload(options, files)
    File “/Library/Frameworks/Python.framework/Versions/2.4/bin/”, line 276, in upload
    connection.add_item(str(options.album), image)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/guplib/”, line 349, in add_item
    (‘g2_userfile’, filename)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/guplib/”, line 236, in request
    response = urllib2.urlopen(request)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/”, line 130, in urlopen
    return, data)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/”, line 364, in open
    response = meth(req, response)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/”, line 471, in http_response
    response = self.parent.error(
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/”, line 402, in error
    return self._call_chain(*args)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/”, line 337, in _call_chain
    result = func(*args)
    File “/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/”, line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    urllib2.HTTPError: HTTP Error 500: Internal Server Error

    Any suggestions ??



  2. I think I’ve found why is this happening.

    It’s because gup , does not take in account g2_authToken ( a mechanism defined in 2.2 to protect against cross site scripting ). Now the question is if you have any plans in short to implement this in gup.


  3. Hey Domingo.

    Thanks for the backtrace. It is a known problem with the latest release of Gallery (I wrote a post about it, but I can’t find it as Wordy [the wordpress theme I wrote] don’t have paging yet).

    The g2_authToken is there since 2.0 (or, at least, it seems when you read the documentation) but it was not being returned in previous releases. I’ll give it a shot and, hopefully, there will be a new release.

    Thanks again, mate.

Comments are closed.