Active Topics

 



Notices


Reply
Thread Tools
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#411
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?
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).
 
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#412
Originally Posted by xerxes2 View Post
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.
 
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#413
Originally Posted by Helmuth View Post
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!

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

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

Edit3: Yes the file on git is smaller since i moved around some code.
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).

Last edited by xerxes2; 2011-03-13 at 21:13.
 
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#414
Originally Posted by xerxes2 View Post
There is no file!

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

Edit2: I think this little mystery will soon be solved.
This driving me crazy...

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's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#415
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.
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).

Last edited by xerxes2; 2011-03-13 at 21:25.
 
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#416
Ooookay. I edited the panucci file now.
I inserted print ("Test") after the last import line.

Now the file is only 2173 bytes big 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's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#417
Originally Posted by xerxes2 View Post
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's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#418
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
 
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#419
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.
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).

Last edited by xerxes2; 2011-03-13 at 21:35.
 
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#420
Originally Posted by xerxes2 View Post
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.

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.

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/

Last edited by Helmuth; 2011-03-13 at 21:41.
 
Reply

Tags
barbiestrsand


 
Forum Jump


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