← Back to team overview

openshot.developers team mailing list archive

Re: PPA Statistics Script

 

I had the same error that John. Like I am in 64 bits on Natty, I tried to
changed Marverick by Natty and i386 by IA64 and too by x86_64 but it doesn't
work. It is perhaps here the problem.

And I am not sure that for me the PPA developpers is working well. I have
always the "official" version instead of the 1.4.0 beta.

PS Sorry for the delay I am unfortunately less available at this moment. :-(

Cheers.

2011/9/16 Jonathan Thomas <jonathan.oomph@xxxxxxxxx>

> Not sure what would cause that error.  My script just modifies the script
> found in this article:
> http://www.webupd8.org/2010/12/launchpad-finally-gets-ppa-usage-stats.html
>
> I was hoping I could get rid of one of these PPAs, since they basically
> have the same version of OpenShot in both of them.  But from the looks of
> the numbers, lots of people use both PPAs.
>
> Here is what I get when I run it:
>
> ---------------------------------------
>          OPENSHOT'S PPA STATS
> ---------------------------------------
>
> ---------------------------------------
>  Stats for: jonoomph/openshot-edge
> ---------------------------------------
> openshot 1.3.1-lucid1 8444
> openshot-doc 1.3.1-lucid1 8358
> openshot 1.3.1-maverick1 7200
> openshot-doc 1.3.1-maverick1 7156
> openshot 1.3.1-natty1 15143
> openshot-doc 1.3.1-natty1 15005
>
> TOTAL Downloads (jonoomph/openshot-edge): 61306
>
> ---------------------------------------
>  Stats for: openshot.developers/ppa
> ---------------------------------------
> openshot 1.3.1-lucid1 6266
> openshot-doc 1.3.1-lucid1 6197
> openshot 1.3.1-maverick1 9848
> openshot-doc 1.3.1-maverick1 9820
> openshot 1.3.1-natty1 5974
> openshot-doc 1.3.1-natty1 5895
>
> TOTAL Downloads (openshot.developers/ppa): 44000
>
> ---------------------------------------
>  Stats for: openshot.developers/daily
> ---------------------------------------
> openshot 1.3.1+0+570+52~lucid1 1
> openshot-doc 1.3.1+0+570+52~lucid1 1
> openshot 1.3.1+0+570+52~maverick1 3
> openshot-doc 1.3.1+0+570+52~maverick1 3
> openshot 1.3.1+0+570+52~natty1 2
> openshot-doc 1.3.1+0+570+52~natty1 2
> openshot 1.3.1+0+570+52~oneiric1 2
> openshot-doc 1.3.1+0+570+52~oneiric1 2
>
> TOTAL Downloads (openshot.developers/daily): 16
>
> Thanks!
> -Jonathan
>
>
> On Thu, Sep 15, 2011 at 5:39 PM, John Volk <poweruser32@xxxxxxxxx> wrote:
>
>> Didn't work for me. this is all I got. hope this helps. John
>> ---------------------------------------
>>          OPENSHOT'S PPA STATS
>> ---------------------------------------
>>
>> ---------------------------------------
>>  Stats for: jonoomph/openshot-edge
>> ---------------------------------------
>> Traceback (most recent call last):
>>   File "ppastats.py", line 24, in <module>
>>     for individualarchive in
>> archive.getPublishedBinaries(status='Published',distro_arch_series=desired_dist_and_arch
>> % (os, arch)):
>>   File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py",
>> line 558, in __call__
>>     url, in_representation, http_method, extra_headers=extra_headers)
>>   File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py",
>> line 281, in _request
>>     raise error
>> lazr.restfulclient.errors.BadRequest: HTTP Error 400: Bad Request
>> Response headers:
>> ---
>> connection: close
>> content-length: 92
>> content-type: text/plain;charset=utf-8
>> date: Thu, 15 Sep 2011 22:37:02 GMT
>> server: zope.server.http (HTTP)
>> status: 400
>> vary: Accept,Accept-Encoding
>> via: 1.1 api.launchpad.net
>> x-lazr-notifications: []
>> x-powered-by: Zope (www.zope.org), Python (www.python.org)
>> ---
>> Response body:
>> ---
>> distro_arch_series: No such object "
>> https://api.edge.launchpad.net/devel/ubuntu/lucid/i386";.
>> ---
>>
>>
>>
>> On Thu, Sep 15, 2011 at 6:18 PM, Jonathan Thomas <
>> jonathan.oomph@xxxxxxxxx> wrote:
>>
>>> Hi everyone,
>>> I just wrote a script that prints out the PPA download statistics for our
>>> 3 PPAs.  I'm not sure exactly how accurate these numbers are, but I wanted
>>> to share the script with everyone.
>>>
>>>  *Step 1)* Extract ppastats.zip (assuming it lets me email this to the
>>> mailing list)
>>> *Step 2) *sudo apt-get install python-launchpadlib
>>> *Step 3)* python ppastats.py
>>>
>>> Enjoy!
>>> -Jonathan
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openshot.developers
>>> Post to     : openshot.developers@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openshot.developers
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openshot.developers
>> Post to     : openshot.developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openshot.developers
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers
> Post to     : openshot.developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openshot.developers
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Olivier
Cenwen un elfe sur la banquise/ an elve on the ice
Mon blog perso  sur le multimédia, Ubuntu, Linux et OpenShot :
http://linuxevolution.wordpress.com/
Le forum d'Openshot où vous me trouverez : http://openshotusers.com/
http://openshotusers.com/forum/index.php
Nothing is lost until the last second.
The family motto : When we want, we can.

References