Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Sep 2014, 20:08
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to display additional thumbnails with ROX-filer?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 01 Mar 2013, 07:25    Post subject:  How to display additional thumbnails with ROX-filer?
Subject description: Video and pictures (for example gimp xcf files...)
 

Hello,
All is in the title: does anybody know how to display gimp xcf or video thumbnails using ROX-filer?

Cordialement.[/i]
122740_202x215_easyshot.jpg
 Description   
 Filesize   6.95 KB
 Viewed   570 Time(s)

122740_202x215_easyshot.jpg


Last edited by Argolance on Sat 02 Mar 2013, 13:20; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3891
Location: World_Hub

PostPosted: Fri 01 Mar 2013, 09:02    Post subject:  

Argolance- according to this page, it would appear you could use the src pkg here. Mind you I'm guessing..
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 02 Mar 2013, 12:57    Post subject:  

Bonjour,
Thank you for answering.
Quote:
Mind you I'm guessing..
I couldn't understand the meaning of these words, sorry!!! Embarassed

I uncompressed both "VideoThumbnail" and "MagickThumbnail" inside /usr/local/apps, installed Rox-lib and pygtk-2.24.0. When running AppRun files of the directories in a terminal, I get this error message:
Quote:
Le paquet pygtk2 (2.0.0 ou version ultérieure) doit être installé pour utiliser ce programme: (this means that pygtk2 has to be installed!)
http://rox.sourceforge.net/desktop/ROX-Lib
Traceback (most recent call last):
File "/usr/local/apps/VideoThumbnail/AppRun", line 8, in <module>
import findrox; findrox.version(2, 0, 4)
File "/usr/local/apps/VideoThumbnail/findrox.py", line 60, in version
import rox
File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 70, in <module>
import pygtk; pygtk.require('2.0')
ImportError: No module named pygtk
Script completed hit RETURN to close window.

... although pygtk-2.24.0 is truly installed on my system. But are pygtk-2.x and pygtk2 two different programs? And if yes, where could I find pygtk2? Or is there any file to configure for pygtk-2 to be taken into account and "recognized" by VideoT and MagickT?

Cordialement.
Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3891
Location: World_Hub

PostPosted: Sat 02 Mar 2013, 13:09    Post subject:  

Ah Embarassed perhaps Musher would be so kind as to lend a helping hand? Ping Musher.. do you read?
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 03 Mar 2013, 06:26    Post subject:  

More details: this is what I get in xerrs.log:
Quote:
Traceback (most recent call last):
File "/usr/local/apps/MagickThumbnail/AppRun", line 7, in <module>
import findrox; findrox.version(1, 9, 11)
File "/usr/local/apps/MagickThumbnail/findrox.py", line 43, in version
import rox
File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 72, in <module>
sys.stderr.write(_('The pygtk2 package (2.0.0 or later) must be '
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 38: ordinal not in range(128)Traceback (most recent call last):
File "/usr/local/apps/VideoThumbnail/AppRun", line 8, in <module>
import findrox; findrox.version(2, 0, 4)
File "/usr/local/apps/VideoThumbnail/findrox.py", line 60, in version
import rox
File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 72, in <module>
sys.stderr.write(_('The pygtk2 package (2.0.0 or later) must be '
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 38: ordinal not in range(128)
Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3891
Location: World_Hub

PostPosted: Sun 03 Mar 2013, 09:09    Post subject:  

Argolance- flip through this thread. Something different here too.. rt-clk options.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 03 Mar 2013, 19:28    Post subject:  

Hello,
Thank you.
Sorry, but looking at the links above, I admit I don't see exactly what could help for solving this problem: simply display additional thumbnails for video and some pictures files using ROX (with Puppy), especially for native files of Gimp, which is one of the major programs of the LINUX world. This has nothing very exceptional and I am amazed this was not already discussed/solved by some Puppy user... I probably didn't search enough? Confused

Cordialement.

Last edited by Argolance on Mon 04 Mar 2013, 06:31; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3891
Location: World_Hub

PostPosted: Sun 03 Mar 2013, 20:24    Post subject:  

Then I'm guessing there's no "image_x-xcf" script sitting in ~/Choices/MIME-types?

It's nothing more than:
Code:
#! /bin/sh
exec gimp "$1"

zeroinstall-injector.jpg
 Description   
 Filesize   61.33 KB
 Viewed   476 Time(s)

zeroinstall-injector.jpg

rox_xcf-thumb.jpg
 Description   
 Filesize   21.63 KB
 Viewed   416 Time(s)

rox_xcf-thumb.jpg

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 04 Mar 2013, 06:21    Post subject:  

Hello,
As shown below, "image_x-xcf" is present in ~/Choices/MIME-types. The only difference is that the code inside is:
Code:
#! /bin/sh
exec gimp "$@"
instead of:
Code:
#! /bin/sh
exec gimp "$1"
I well configured ROX for showing image thumbnails. The link "http://www.0installl.net/injector.html" is dead...
The problem seems to be due to pygtk2 which has something wrong:
Code:
configuredUnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 38: ordinal not in range(128)

This happens when clicking on the button "Video thumbnails" or on "AppRun" inside Video/MagickT.

Cordialement.
113648_452x127_easyshot.jpg
 Description   
 Filesize   9.67 KB
 Viewed   411 Time(s)

113648_452x127_easyshot.jpg

110119_260x203_easyshot.jpg
 Description   
 Filesize   6.75 KB
 Viewed   436 Time(s)

110119_260x203_easyshot.jpg

111756_377x156_easyshot.jpg
 Description   
 Filesize   11.46 KB
 Viewed   407 Time(s)

111756_377x156_easyshot.jpg

Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3891
Location: World_Hub

PostPosted: Mon 04 Mar 2013, 06:42    Post subject:  

I have no idea which system you're running, but I'll venture to guess there's a zeroinstall-injector pkg for your Pup too.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 04 Mar 2013, 06:44    Post subject:  

For example, this "simple" code:
Code:
#!/usr/bin/env python

# example helloworld.py

import pygtk
pygtk.require('2.0')
import gtk

class HelloWorld:

    # This is a callback function. The data arguments are ignored
    # in this example. More on callbacks below.
    def hello(self, widget, data=None):
        print "Hello World"

    def delete_event(self, widget, event, data=None):
        # If you return FALSE in the "delete_event" signal handler,
        # GTK will emit the "destroy" signal. Returning TRUE means
        # you don't want the window to be destroyed.
        # This is useful for popping up 'are you sure you want to quit?'
        # type dialogs.
        print "delete event occurred"

        # Change FALSE to TRUE and the main window will not be destroyed
        # with a "delete_event".
        return False

    def destroy(self, widget, data=None):
        print "destroy signal occurred"
        gtk.main_quit()

    def __init__(self):
        # create a new window
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
   
        # When the window is given the "delete_event" signal (this is given
        # by the window manager, usually by the "close" option, or on the
        # titlebar), we ask it to call the delete_event () function
        # as defined above. The data passed to the callback
        # function is NULL and is ignored in the callback function.
        self.window.connect("delete_event", self.delete_event)
   
        # Here we connect the "destroy" event to a signal handler. 
        # This event occurs when we call gtk_widget_destroy() on the window,
        # or if we return FALSE in the "delete_event" callback.
        self.window.connect("destroy", self.destroy)
   
        # Sets the border width of the window.
        self.window.set_border_width(10)
   
        # Creates a new button with the label "Hello World".
        self.button = gtk.Button("Hello World")
   
        # When the button receives the "clicked" signal, it will call the
        # function hello() passing it None as its argument.  The hello()
        # function is defined above.
        self.button.connect("clicked", self.hello, None)
   
        # This will cause the window to be destroyed by calling
        # gtk_widget_destroy(window) when "clicked".  Again, the destroy
        # signal could come from here, or the window manager.
        self.button.connect_object("clicked", gtk.Widget.destroy, self.window)
   
        # This packs the button into the window (a GTK container).
        self.window.add(self.button)
   
        # The final step is to display this newly created widget.
        self.button.show()
   
        # and the window
        self.window.show()

    def main(self):
        # All PyGTK applications must have a gtk.main(). Control ends here
        # and waits for an event to occur (like a key press or mouse event).
        gtk.main()

# If the program is run directly or passed as an argument to the python
# interpreter then create a HelloWorld instance and show it
if __name__ == "__main__":
    hello = HelloWorld()
    hello.main()
doesn't work and gives this error:
Quote:
Traceback (most recent call last):
File "/mnt/sdb2/my-documents/miscellaneous/pygtk", line 5, in <module>
import pygtk
ImportError: No module named pygtk
Script completed hit RETURN to close window.
... although, as said above, pygtk-2.24.0 is truly installed on my system.
And I think this is the reason (?) why ROX cannot display video/image thumbnails.
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 04 Mar 2013, 06:46    Post subject:  

I was writing my post as you sent yours.
I am running Puppy Precise 5.4.3.
Thanks.
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 04 Mar 2013, 07:00    Post subject:  

I found and installed a "zeroinstall-injector" package (0.32.pet):
http://mirror.yandex.ru/puppyrus/users/fliker/Repositary/ (System Tools/ directory)

This is what I get in xerrs.log:
Quote:
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Embarassed
Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3891
Location: World_Hub

PostPosted: Mon 04 Mar 2013, 07:32    Post subject:  

Not sure why, but past experience says /usr/bin/0launch has to be renamed zeroinstall.injector. Try a symlink..
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 04 Mar 2013, 07:43    Post subject:  

I found a newer version of zeroinstall.injector (1.16) simply through PPM. Very Happy
I installed it with all dependencies. Cool
Executing /usr/bin/0launch, I get:
Quote:
Traceback (most recent call last):
File "/usr/bin/0launch", line 16, in <module>
from zeroinstall.injector import cli
File "/usr/lib/python2.7/dist-packages/zeroinstall/__init__.py", line 18, in <module>
import gobject; gobject.threads_init()
ImportError: No module named gobject
Script completed hit RETURN to close window.
Evil or Very Mad
Poor newbies... Crying or Very sad
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1068s ][ Queries: 13 (0.0131s) ][ GZIP on ]