maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Panucci Podcast and Audiobook Player (https://talk.maemo.org/showthread.php?t=25584)

xerxes2 2011-03-13 20:56

Re: Panucci Podcast and Audiobook Player
 
No need to go to /usr/bin as its already in your PATH shell variable. Just run "panucci" in a shell and see what the errors are?

Helmuth 2011-03-13 21:03

Re: Panucci Podcast and Audiobook Player
 
Quote:

Originally Posted by xerxes2 (Post 967034)
No need to go to /usr/bin as its already in your PATH shell variable. Just run "panucci" in a shell and see what the errors are?

I replied by editing my last post.

I gone to /usr/bin to ensure that I try to execute exactly this file. Not that I try to run a file from somewhere else if I simply enter panucci at the commandline. :)
I know it works with 0.99 simply by typing panucci at /home/usr/ or somewhere else... but with the version from git I got the error from above. It must occur inside the file. :rolleyes:

xerxes2 2011-03-13 21:05

Re: Panucci Podcast and Audiobook Player
 
Quote:

Originally Posted by Helmuth (Post 967031)
Hmm... okay. This is a new fact for me.
But perhaps you're right. This works:

Code:

cd /usr/bin/
./panucci

Edit:
Okay, as soon as I copy the panucci file from the git bin folder to /usr/bin/ I got this:
Code:

cd /usr/bin/
./panucci
: No such file or directory

I have to add, the file from git is 2222 bytes big and the original file (version 0.99 from the repos) is 4452 bytes big.

There is no file! :p

Edit: The one you need is in the "bin" directory.

Edit2: I think this little mystery will soon be solved. :D

Edit3: Yes the file on git is smaller since i moved around some code.

Helmuth 2011-03-13 21:14

Re: Panucci Podcast and Audiobook Player
 
Quote:

Originally Posted by xerxes2 (Post 967040)
There is no file! :p

Edit: The one you need is in the "bin" directory.

Edit2: I think this little mystery will soon be solved. :D

This driving me crazy... :mad:

I'm at /usr/bin/

Code:

/usr/bin $ ls panu*
panucci
/usr/bin $

At /bin/ there is no panucci file. There are even not so much files... 58 exactly.

xerxes2 2011-03-13 21:21

Re: Panucci Podcast and Audiobook Player
 
Could you past me your "ls -l /usr/bin |grep panucci"?

[xerxes2@ninja ~]$ ls -l /usr/bin |grep panucci
-rwxr-xr-x 1 root root 2154 Mar 13 01:57 panucci

That is what it should look like.

Edit: So what you need to do is to grab this file: https://github.com/xerxes2/panucci/b...er/bin/panucci
and put it in /usr/bin and run "chmod 755 /usr/bin/panucci" as root. There might be more trouble after that but it's a start.

Helmuth 2011-03-13 21:21

Re: Panucci Podcast and Audiobook Player
 
Ooookay. I edited the panucci file now.
I inserted print ("Test") after the last import line.

Now the file is only 2173 bytes big :confused: and if I run it I got this error:
Code:

~ $ panucci
Test
No handlers could be found for logger "panucci.settings.Settings"
Traceback (most recent call last):
  File "/usr/bin/panucci", line 64, in <module>
    from panucci import main
  File "/opt/panucci/lib/panucci/main.py", line 63, in <module>
    from panucci.player import player
  File "/opt/panucci/lib/panucci/player.py", line 26, in <module>
    from panucci.dbusinterface import interface
  File "/opt/panucci/lib/panucci/dbusinterface.py", line 159, in <module>
    dbus.service.BusName('org.panucci.panucciInterface', session_bus) )
  File "/opt/panucci/lib/panucci/dbusinterface.py", line 36, in __init__
    dbus.service.Object.__init__(self, object_path=path, bus_name=bus_name)
  File "/usr/lib/pymodules/python2.5/dbus/service.py", line 480, in __init__
    self.add_to_connection(conn, object_path)
  File "/usr/lib/pymodules/python2.5/dbus/service.py", line 571, in add_to_connection
    self._fallback)
RuntimeError: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)
~ $

I edited it with the same tool I copy the files on my N900. A SSH client with the name WinSCP. [sigh]

Sorry to waste again your time. :(

Helmuth 2011-03-13 21:25

Re: Panucci Podcast and Audiobook Player
 
Quote:

Originally Posted by xerxes2 (Post 967048)
Could you past me your "ls -l /usr/bin |grep panucci"?

[xerxes2@ninja ~]$ ls -l /usr/bin |grep panucci
-rwxr-xr-x 1 root root 2154 Mar 13 01:57 panucci

That is what it should look like.

File 1 is the one I edited several minutes before. File 2 is the file from git. Fresh copied to the N900.

Code:

~ $ ls -l /usr/bin |grep panucci
-rwxr-xr-x    1 root    root        2173 Mar 13 22:18 panucci
~ $ ls -l /usr/bin |grep panucci
-rwxr-xr-x    1 root    root        2222 Mar 13 17:15 panucci
~ $


Helmuth 2011-03-13 21:32

Re: Panucci Podcast and Audiobook Player
 
So, now I edited the /usr/bin/panucci file using a texteditor over ssh and copied the raw code from git using the clipboard.

Now I'm able to execute but I got this error:
Code:

~ $ ls -l /usr/bin |grep panucci
-rwxr-xr-x    1 root    root        2159 Mar 13 22:28 panucci
~ $ panucci
No handlers could be found for logger "panucci.settings.Settings"
Traceback (most recent call last):
  File "/usr/bin/panucci", line 63, in <module>
    from panucci import main
  File "/opt/panucci/lib/panucci/main.py", line 63, in <module>
    from panucci.player import player
  File "/opt/panucci/lib/panucci/player.py", line 26, in <module>
    from panucci.dbusinterface import interface
  File "/opt/panucci/lib/panucci/dbusinterface.py", line 159, in <module>
    dbus.service.BusName('org.panucci.panucciInterface', session_bus) )
  File "/opt/panucci/lib/panucci/dbusinterface.py", line 36, in __init__
    dbus.service.Object.__init__(self, object_path=path, bus_name=bus_name)
  File "/usr/lib/pymodules/python2.5/dbus/service.py", line 480, in __init__
    self.add_to_connection(conn, object_path)
  File "/usr/lib/pymodules/python2.5/dbus/service.py", line 571, in add_to_connection
    self._fallback)
RuntimeError: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)
~ $

The same as above as far as I can see.

Edit:
AH! Now that I'm able to execute the file in bin I should replace the other *.py files, too. ;) one moment please :D

xerxes2 2011-03-13 21:32

Re: Panucci Podcast and Audiobook Player
 
Now you have to change all the files to git. There's been a ton of changes. But the panucci file seems to be working just fine.

Edit: And don't forget the new "gtkui" directory! There will soon be a qtui directory too but it's only half done now.

Helmuth 2011-03-13 21:34

Re: Panucci Podcast and Audiobook Player
 
Quote:

Originally Posted by xerxes2 (Post 967060)
Now you have to change all the files to git. There's been a ton of changes.

Ahem, yes. I've realized this now too. :D

But it's for me still a riddle why the file at /usr/bin only works after editing. :(

Edit:
Now it works:
Code:

~ $ panucci
/opt/panucci/lib/panucci/gtkui/gtkplaylist.py:217: GtkWarning: gtk_tree_view_get_path_at_pos: assertion `tree_view->priv->bin_window != NULL' failed
  path_info = self.treeview.get_path_at_pos(0,0)
ERROR:dbus.proxies:Introspect error on :1.10:/org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input: dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input
INFO:panucci.dbsqlite.Storage:Deleting bookmark by id: 0
DEBUG:panucci.dbsqlite.Storage:COMMIT
WARNING:panucci.dbsqlite.Storage:Not saving bookmark without playlist filepath
DEBUG:panucci.backends.BasePlayer:Sending signal "stopped" for caller "stop"
DEBUG:panucci.player.PanucciPlayer:Sending signal "stopped" for caller "PanucciPlayer"
DEBUG:panucci.playlist.Playlist:quit() called.
INFO:panucci.playlist.Playlist:Queue modified, saving temporary playlist
INFO:panucci.dbsqlite.Storage:Updating playlist: /home/user/.config/panucci/panucci.m3u
DEBUG:panucci.dbsqlite.Storage:COMMIT
INFO:panucci.dbsqlite.Storage:Deleting all bookmarks for: 69
DEBUG:panucci.dbsqlite.Storage:COMMIT
INFO:panucci.dbsqlite.Storage:Deleting resume bookmark for: 69
DEBUG:panucci.dbsqlite.Storage:COMMIT
INFO:panucci.dbsqlite.Storage:Saving Automatisches Lesezeichen, 0 (/home/user/MyDocs/Podcasts/SWR Aktuell/20110312-1847.6444m.mp3)
DEBUG:panucci.dbsqlite.Storage:COMMIT
~ $

Strange. So, to note: If you're to stupid to replace a file at /usr/bin/ edit the file and paste the content using the clipboard. :D

But I still can't understand it. Perhaps because I cloned it to a windows pc from git and copied it then to the N900 using ssh?
But why is this only for the /usr/bin/ file a problem and not for the others at /opt/panucci/lib/panucci/ :confused:


All times are GMT. The time now is 05:23.

vBulletin® Version 3.8.8