maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Panucci 0.3 testers requested (https://talk.maemo.org/showthread.php?t=27189)

nikosapi 2009-02-27 23:48

Panucci 0.3 testers requested
 
Hello!

I *think* we have something stable enough to make a 0.3 release. There's have a .deb available here.

The GUI certainly hasn't changed much, so what's new?
  • Bookmarks are stored in an SQLite database
  • Playlists (m3u,pls) are fully supported (importing and exporting)
  • Playlists can be modified on the fly:
    Tracks can be added or removed
    Tracks can be reordered (via drag and drop)
  • Bookmarks are now listed under the track name (using a treeview)
  • The code is much more modular and tries to respect a MVC architecture
  • Many more d-bus methods are now exposed through dbusinterface.py
  • Logging is much fancier thanks to python's logging module
Since you're not installing from Maemo Extras you'll need to manually install the dependencies, which are:
Code:

python2.5-gtk2 python2.5-gstreamer python2.5-dbus python2.5-hildon python2.5-gnome python2.5-mutagen
Enjoy,

nick

danramos 2009-02-28 00:12

Re: Panucci 0.3 testers requested
 
I'm on it! :)

gowen 2009-03-01 22:38

Re: Panucci 0.3 testers requested
 
I installed 0.3 after cleaning off previous versions (including ~/.panucci.sqlite) and got this Error:

Code:

~ $ panucci
Traceback (most recent call last):
  File "/usr/bin/panucci", line 65, in <module>
    opts.queue_filename or opts.open_filename ))
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", line 924, in run
    GTK_Main( filename )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", line 373, in __init__
    player.init(filepath=filename)
  File "/usr/lib/python2.5/site-packages/panucci/player.py", line 59, in init
    self.playlist.load_last_played()
  File "/usr/lib/python2.5/site-packages/panucci/playlist.py", line 352, in load_last_played
    self.load(recent[0])
  File "/usr/lib/python2.5/site-packages/panucci/playlist.py", line 345, in load
    self.send_new_metadata( caller=self.load )
  File "/usr/lib/python2.5/site-packages/panucci/playlist.py", line 123, in send_new_metadata
    caller=caller or self.send_new_metadata )
  File "/usr/lib/python2.5/site-packages/panucci/services.py", line 76, in notify
    observer( *args )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", line 791, in on_player_new_track
    estimated_length = metadata['length']
KeyError: 'length'


tso 2009-03-01 23:14

Re: Panucci 0.3 testers requested
 
installing over existing panucci produced no error from app manager, but launching gave me this:

Code:

Traceback (most recent call last):
  File "/usr/bin/panucci", line 65, in <module>
    opts.queue_filename or opts.open_filename ))
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 924, in run
    GTK_Main( filename )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 352, in __init__
    self.pickle_file_conversion()
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 916, in pickle_file_conversion
    if pickle_converter.load_pickle_file(pickle_file):
  File "/usr/lib/python2.5/site-packages/panucci/pickle_converter .py", line 55, in load_pickle_file
    playlist_id = db.get_playlist_id( f, create_new=True )
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 282, in get_playlist_id
    if self.playlist_exists(filepath):
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 273, in playlist_exists
    filepath ) is not None
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 363, in __get__
    cursor.execute(sql)
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 0 supplied.


nikosapi 2009-03-01 23:40

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by gowen (Post 268145)
I installed 0.3 after cleaning off previous versions (including ~/.panucci.sqlite) and got this Error:

Code:

~ $ panucci
Traceback (most recent call last):
  File "/usr/bin/panucci", line 65, in <module>
    opts.queue_filename or opts.open_filename ))
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", line 924, in run
    GTK_Main( filename )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", line 373, in __init__
    player.init(filepath=filename)
  File "/usr/lib/python2.5/site-packages/panucci/player.py", line 59, in init
    self.playlist.load_last_played()
  File "/usr/lib/python2.5/site-packages/panucci/playlist.py", line 352, in load_last_played
    self.load(recent[0])
  File "/usr/lib/python2.5/site-packages/panucci/playlist.py", line 345, in load
    self.send_new_metadata( caller=self.load )
  File "/usr/lib/python2.5/site-packages/panucci/playlist.py", line 123, in send_new_metadata
    caller=caller or self.send_new_metadata )
  File "/usr/lib/python2.5/site-packages/panucci/services.py", line 76, in notify
    observer( *args )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", line 791, in on_player_new_track
    estimated_length = metadata['length']
KeyError: 'length'


I updated the link in the original post, please try 0.3-1.

Thank you very much for the report.

nikosapi 2009-03-01 23:46

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by tso (Post 268155)
installing over existing panucci produced no error from app manager, but launching gave me this:

Code:

Traceback (most recent call last):
  File "/usr/bin/panucci", line 65, in <module>
    opts.queue_filename or opts.open_filename ))
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 924, in run
    GTK_Main( filename )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 352, in __init__
    self.pickle_file_conversion()
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 916, in pickle_file_conversion
    if pickle_converter.load_pickle_file(pickle_file):
  File "/usr/lib/python2.5/site-packages/panucci/pickle_converter .py", line 55, in load_pickle_file
    playlist_id = db.get_playlist_id( f, create_new=True )
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 282, in get_playlist_id
    if self.playlist_exists(filepath):
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 273, in playlist_exists
    filepath ) is not None
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 363, in __get__
    cursor.execute(sql)
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 0 supplied.


Thank you for testing, sorry for the inconvenience.

Can you please post your ~/.rmp-bookmarks (or ~/.rmp-bookmarks.bak)?
If you tar/zip the file I think you can even attach it to the post.

Thanks again,

nick

nikosapi 2009-03-02 00:16

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by tso (Post 268155)
installing over existing panucci produced no error from app manager, but launching gave me this:

Code:

Traceback (most recent call last):
  File "/usr/bin/panucci", line 65, in <module>
    opts.queue_filename or opts.open_filename ))
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 924, in run
    GTK_Main( filename )
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 352, in __init__
    self.pickle_file_conversion()
  File "/usr/lib/python2.5/site-packages/panucci/panucci.py", lin e 916, in pickle_file_conversion
    if pickle_converter.load_pickle_file(pickle_file):
  File "/usr/lib/python2.5/site-packages/panucci/pickle_converter .py", line 55, in load_pickle_file
    playlist_id = db.get_playlist_id( f, create_new=True )
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 282, in get_playlist_id
    if self.playlist_exists(filepath):
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 273, in playlist_exists
    filepath ) is not None
  File "/usr/lib/python2.5/site-packages/panucci/dbsqlite.py", li ne 363, in __get__
    cursor.execute(sql)
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 0 supplied.


I think I figured out what caused this, please try 0.3-2 (I updated the link in the original post).

If that doesn't fix it, then please post your ~/.rmp-bookmarks file.

Sorry for the confusion,

nick

tso 2009-03-02 00:37

Re: Panucci 0.3 testers requested
 
that fixed it, panucci started fine now :)

gowen 2009-03-02 10:13

Re: Panucci 0.3 testers requested
 
0.3-2 is working for me. Being able to open a playlist may just make this my default player.

nikosapi 2009-03-03 04:33

Re: Panucci 0.3 testers requested
 
Here's 0.3-3 :) (as usual, the link has been updated in the original post)

This one removes the --file (or -f) command line option. The functionality is still the same just use "panucci /some/good/podcast.mp3" instead of "panucci ---file /some/good/podcast.mp3". Also, if you start panucci this way, it'll automatically start playing the file instead of you having to push the play button.

Thanks to Thomas for the suggestion.

nick

JoeF 2009-03-03 05:56

Re: Panucci 0.3 testers requested
 
Tried to install, but got a message that Installer was unable to update Panucci because something was missing. Python -Mutagen, whatever that is.

nikosapi 2009-03-03 15:08

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by JoeF (Post 268509)
Tried to install, but got a message that Installer was unable to update Panucci because something was missing. Python -Mutagen, whatever that is.

The package you're referring to is python2.5-mutagen. It is available in both the Chinook and Diablo Extras repos.

That warning is actually a good thing; it means that we've correctly listed the dependencies in our .deb ;). Since you're not installing Panucci from a repo (like Extras) the application manager won't install the needed dependencies (don't ask me why, it seems kinda dumb to me).

The solution is to simply install the dependencies manually and then install Panucci. Note: This will not be the case when 0.3 is uploaded to Diablo Extras, in that situation the application manager will take care of fetching all of the needed dependencies because you are installing from a repo.

To install the missing dependency run the following as root (see the original post for the full list of dependencies):
Code:

apt-get install python2.5-mutagen
Thank you for testing,

nick

tso 2009-03-03 16:19

Re: Panucci 0.3 testers requested
 
the general ones said it was to encourage the use of repos over .deb's, especially if the latter had no source attached alongside it...

JoeF 2009-03-03 16:37

Re: Panucci 0.3 testers requested
 
I tried the apt-get install python2.5-mutagen (from root) and got a shopping list of can't do this, can't do that. Not sure what the problem is. Is there a way to install the python dependencies from application manager? It might work from there.

nikosapi 2009-03-03 16:50

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by tso (Post 268593)
the general ones said it was to encourage the use of repos over .deb's, especially if the latter had no source attached alongside it...

That's a very good point, I'll get to work setting up a Panucci-testing repo.

nick

P.S. Panucci source code is always available from here and here. Also, if you want to build your own .deb from inside a scratchbox environment do the following:
  • Clone the git tree and "cd" into it: git clone git://git.nikosapi.org/panucci.git; cd panucci
  • Run "dch -i" to add a changelog entry
  • Run "make build-package" to generate the .deb

nikosapi 2009-03-03 16:54

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by JoeF (Post 268597)
I tried the apt-get install python2.5-mutagen (from root) and got a shopping list of can't do this, can't do that. Not sure what the problem is. Is there a way to install the python dependencies from application manager? It might work from there.

Could you copy/paste the error? I don't *think* you can install libraries using the application manager (maybe if you enable red-pill mode)...

nick

tso 2009-03-03 16:58

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by nikosapi (Post 268599)
That's a very good point, I'll get to work setting up a Panucci-testing repo.

or just get it up on extra-devel...

thats what its there for, really...

nikosapi 2009-03-03 17:06

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by tso (Post 268602)
or just get it up on extra-devel...

thats what its there for, really...

I applied for an invitation to upload to Maemo Extras last week, but still have yet to get a response. Does extras-devel require an invitation as well?

If so, I guess I'll have to get thp to upload for me atm :)

tso 2009-03-03 17:23

Re: Panucci 0.3 testers requested
 
i think there may have been a issue with the upload access requests, i got the impression on irc at least...

JoeF 2009-03-03 18:28

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by nikosapi (Post 268601)
Could you copy/paste the error? I don't *think* you can install libraries using the application manager (maybe if you enable red-pill mode)...

nick

I'll try to copy the error message later this evening as I am not near WiFi till then...

JoeF 2009-03-03 20:10

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by nikosapi (Post 268601)
Could you copy/paste the error? I don't *think* you can install libraries using the application manager (maybe if you enable red-pill mode)...

nick

I'll try to copy the error message later this evening as I am not near WiFi till then...

JoeF 2009-03-04 03:26

Re: Panucci 0.3 testers requested
 
Here is the resulting message when I trry to install python mutagen


/home/user # apt-get install python2.5 mutagen
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://repostory.maemo.org chinook/free Packages (/var/lib/apt/lists/repostory.maemo.org_extras_dists_chinook_free_bina ry-armel_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repostory.maemo.org chinook/non-free Packages (/var/lib/apt/lists/repostory.maemo.org_extras_dists_chinook_non-free_binary-armel_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repostory.maemo.org chinook/free Packages (/var/lib/apt/lists/repostory.maemo.org_dists_chinook_free_binary-armel_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repostory.maemo.org chinook/non-free Packages (/var/lib/apt/lists/repostory.maemo.org_dists_chinook_non-free_binary-armel_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package mutagen
/home/user #

nikosapi 2009-03-04 03:34

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by JoeF (Post 268784)
W: You may want to run apt-get update to correct these problems

I think apt-get is trying to tell you something ;)

Running "apt-get update" should fix that for you.

nick

tso 2009-03-04 03:37

Re: Panucci 0.3 testers requested
 
the name of the package is python2.5-mutagen. notice the -...

JoeF 2009-03-04 16:27

Re: Panucci 0.3 testers requested
 
I ran update but I'm not sure it worked . I never got back to the prompt . Each solution presents new error messages with new solutions. Where was I?

/home/user # apt-get install python2.5-mutagen
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgoffice-0-6: Depends: libart-2.0-2 (>= 2.3.16) but it is not going to be installed
W: Duplicate sources.list entry http://repository.maemo.org chinook/free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_chinook_free_bin ary-armel_Packages)
W: Duplicate sources.list entry http://repository.maemo.org chinook/free Packages (/var/lib/apt/lists/repository.maemo.org_extras-devel_dists_chinook_free_binary-armel_Packages)
W: Duplicate sources.list entry http://repository.maemo.org chinook/non-free Packages (/var/lib/apt/lists/repository.maemo.org_extras-devel_dists_chinook_non-free_binary-armel_Packages)
W: You may want to run apt-get update to correct these problems
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
/home/user #

nikosapi 2009-03-04 18:35

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by JoeF (Post 268919)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Try what apt-get is telling you... Or you can try installing python2.5-mutagen by getting the .deb directly, right here. In order to prevent those apt errors you may want to uninstall any un-needed apps and disable/remove any un-needed application catalogs (this can all be done from the application manager).

nick

tso 2009-03-04 20:34

Re: Panucci 0.3 testers requested
 
seems like there are 3 entries for chinook free and 2 for chinook non-free...
one only need one of each...

and that goffice error, i suspect there is abiword or gnumeric installed. quick guess is that a higher version of libart is installed then what goffice wants, but something else depends on that high version and therefor its left alone...

JoeF 2009-03-05 05:14

Re: Panucci 0.3 testers requested
 
Okay, here's the latest attempt.

There were no listings in Application manager for Chinook free or libart so I was unable to delete any duplicates. I ran apt-get update and then ran apt-get -f install and it tells me to run apt-get update.
I appear to have reached a dead end loop.
I have given up on this before and I know I have it in me to give up again!!!:)





/home/user # apt-get -f install

Reading package lists... Done

Building dependency tree... Done

Correcting dependencies... Done

The following extra packages will be installed:

libart-2.0-2

The following NEW packages will be installed:

libart-2.0-2

0 upgraded, 1 newly installed, 0 to remove and 127 not upgraded.

6 not fully installed or removed.

Need to get 0B/70.4kB of archives.

After unpacking 188kB of additional disk space will be used.

Do you want to continue [Y/n]? y

WARNING: The following packages cannot be authenticated! libart-2.0-2

Install these packages without verification [y/N]? y

(Reading database ... 24228 files and directories currently installed.)

Unpacking libart-2.0-2 (from .../libart-2.0-2_2.3.17-1chinook2_armel.deb) ...

dpkg: error processing /var/cache/apt/archives/libart-2.0-2_2.3.17-1chinook2_armel.deb (--unpack):

trying to overwrite `/usr/lib/libart_lgpl_2.so.2', which is also in package libart-2.0

Errors were encountered while processing:

/var/cache/apt/archives/libart-2.0-2_2.3.17-1chinook2_armel.deb

W: Couldn't stat source package list http://repostory.maemo.org chinook/free Packages (/var/lib/apt/lists/repostory.maemo.org_extras_dists_chinook_free_bina ry-armel_Packages) - stat (2 No such file or directory)

W: Couldn't stat source package list http://repostory.maemo.org chinook/non-free Packages (/var/lib/apt/lists/repostory.maemo.org_extras_dists_chinook_non-free_binary-armel_Packages) - stat (2 No such file or directory)

W: Couldn't stat source package list http://repostory.maemo.org chinook/free Packages (/var/lib/apt/lists/repostory.maemo.org_dists_chinook_free_binary-armel_Packages) - stat (2 No such file or directory)

W: Couldn't stat source package list http://repostory.maemo.org chinook/non-free Packages (/var/lib/apt/lists/repostory.maemo.org_dists_chinook_non-free_binary-armel_Packages) - stat (2 No such file or directory)

W: You may want to run apt-get update to correct these problems

E: Sub-process /usr/bin/dpkg returned an error code (1)

/home/user #

tso 2009-03-05 11:00

Re: Panucci 0.3 testers requested
 
the repositories list is found in applications manger menu -> tools -> applications catalogs.

JoeF 2009-03-05 15:07

Re: Panucci 0.3 testers requested
 
I went into applications catalogs and deleted duplicate entries, ran apt-get uupdate and apt-get -f install,


/home/user # apt-get -f install
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
/home/user #

I am still miles away from actually installing the program.

tso 2009-03-05 15:15

Re: Panucci 0.3 testers requested
 
you have to close application manager before you can use apt-get in terminal...

JoeF 2009-03-05 16:30

Re: Panucci 0.3 testers requested
 
Application manager is/was closed.

JoeF 2009-03-18 02:56

Re: Panucci 0.3 testers requested
 
I have tried again to install Panucci, but have once again failed. I am a bit irritated that you need to be some kind of Linux guru just to install a simple app on this device. I have been trying since I bought the N800 last year, to do something so simple I can do it easily on my el cheapo Palm Zire 71. That is listen to an audiobook. I am not averse to paying for programs that I use but there isn't even that option.

tso 2009-03-18 03:07

Re: Panucci 0.3 testers requested
 
http://maemo.org/downloads/product/OS2008/panucci/

open this link in the tablet browser, then tap the green arrow. 0.3 is currently a test version, but will show up as a update when ready.

nikosapi 2009-03-18 03:14

Re: Panucci 0.3 testers requested
 
Quote:

Originally Posted by JoeF (Post 272529)
I have tried again to install Panucci, but have once again failed. I am a bit irritated that you need to be some kind of Linux guru just to install a simple app on this device. I have been trying since I bought the N800 last year, to do something so simple I can do it easily on my el cheapo Palm Zire 71. That is listen to an audiobook. I am not averse to paying for programs that I use but there isn't even that option.

I'm terribly sorry that you can't get it to install but to be honest I don't think it's Panucci's fault. I ran into a similar situation when I first got my n810; I added a bunch of random repos and installed all sorts of weird stuff. This caused dependency issues which prevented me from updating my tablet. In the end it was just simpler to re-flash it and start again.

You have two options (that I can think of):
  1. Remove any non-essential applications, clear out any non-maemo repositories from the application manager and try installing again.
  2. Reflash with the latest OS image and start from scratch. (Keep in mind that we only test on 4.1-Diablo)

Hope this helps,

nick

JoeF 2009-03-18 05:22

Re: Panucci 0.3 testers requested
 
I'll try again. When I first got the N800 and discovered there was no audiobook reader I went through the whole clone to sd business so that I would be able to have a large space to set up Garnet VM and use Pocket tunes. (Insert laugh track). Sooo I hate to think of reflashing because now it is almost a year later and I have forgotten how I did everything. I'll do it as a last resort. First I'll start chucking stuff and see what happens. Thanks for the help.


All times are GMT. The time now is 20:08.

vBulletin® Version 3.8.8