Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Elogviewer, a python/gtk graphical elog viewer

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
79 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

Re: when it gonna be in portage?

  • Quote

Post by wpetya » Wed Aug 16, 2006 7:33 pm

framirez wrote:i havent been able to download it.. all i get is a bunch of text.. lot of crap from the download link http://www.rz-berlin.mpg.de/~laurin/elogviewer
:lol: That's it, the buch of text is the program.
Top
framirez
n00b
n00b
Posts: 11
Joined: Fri Aug 11, 2006 3:57 pm

sorry for my stupidity

  • Quote

Post by framirez » Wed Aug 16, 2006 7:54 pm

ok i guess wget will help with that then.. :lol: ... my bad jeje
Top
weibullguy
n00b
n00b
Posts: 6
Joined: Tue Apr 11, 2006 7:03 pm
Location: Kalamazoo

Bravo Zulu

  • Quote

Post by weibullguy » Thu Aug 17, 2006 2:11 am

@jeremy_z Just installed kelogviewer, very nice. If I were artistic, I'd create a icon to go with it.
Registered Linux user #413054. I did it here! -> www.counter.li.org
Top
Gooserider
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Fri Dec 30, 2005 5:30 am
Location: Universe, Milky Way Galaxy, Solar System, Earth, North America, USA, MA, North Billerica

Kelogviewer problem

  • Quote

Post by Gooserider » Sat Aug 19, 2006 2:25 am

Jeremy_Z:
Hi all, nice work synss.
I ported your app to PyKDE for those who can't use gtk in their kde environment.
I'm having a few issues with the program.

1. I downloaded it, and unpacked it, but where on the system is it best to put it? Currently it's sitting in my downloads directory which I feel is probably not the right place...)

2. I am running kde, and have kde-base (and other things) installed, but I get this error when I try to run kelogviewer:

Code: Select all

localhost ~/Downloads $ ./kelogviewer

        Kelogviewer requires pykde and portage 2.1.
        Vous n'avez pas installe pykde.

        emerge pykde

Traceback (most recent call last):
  File "./kelogviewer", line 14, in ?
    from qt import QVBox, QHBox, QPopupMenu, SIGNAL, PYSIGNAL, QListView, QButtonGroup, QCheckBox, QColor, QIconSet, QPixmap, QLabel, QPushButton, QSplitter, QString, QListViewItemIterator, Qt
ImportError: No module named qt
Considering I'm running KDE, I'd better have qt, but maybe it's something to do w/ pykde... So I tried emerging pykde, even though I thought it was part of kde, and got:

Code: Select all

localhost ~ # emerge -uDaNv pykde

These are the packages that would be merged, in order:

Calculating dependencies

!!! The short ebuild name "pykde" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    dev-python/pykde
    kde-base/pykde
So which one is right, and which do I emerge?

Any other "gotcha's" I need to watch out for?

Thanks,

Gooserider
Box 1: P2 Celeron 400, 320mb RAM, 80GB HD, Cirrus Logic 4614/22/24 sound card, ATI 3D RAGE PRO AGP 1X/2X (sound & video onboard)
Box 2: AMD Athlon 2500+ 512mb RAM, 80GB HD, Gigabyte K7 Triton (Nvidia) mobo, GeForce2 video
Top
marcalj
Apprentice
Apprentice
User avatar
Posts: 193
Joined: Tue Dec 23, 2003 2:08 am
Location: Barcelona
Contact:
Contact marcalj
Website

  • Quote

Post by marcalj » Tue Aug 22, 2006 12:41 am

This program will be integrated in Kuroo?

I would like to have one program for all emerge purposes.

Thanks.
AMD 64bits X2
porlaminima.com
Top
bunkacid
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Tue Jan 11, 2005 2:04 am
Location: Laguna Hills, CA
Contact:
Contact bunkacid
Website

Re: Elogviewer, a python/gtk graphical elog viewer

  • Quote

Post by bunkacid » Thu Aug 24, 2006 7:26 pm

synss wrote: Download
thanks it works great.
Top
bvrom
n00b
n00b
Posts: 2
Joined: Fri Aug 25, 2006 2:01 pm

shell script for reading elogs

  • Quote

Post by bvrom » Fri Aug 25, 2006 2:17 pm

I have updated the script of uweklosa. Added the option of moving files to an archive folder or a to-do folder (in case the elog says something like: "please do revdep-rebuild", but you have to postpone that to a later moment). Both folders have to be created manually first in your portage elog folder. Also added some nice (and hopefully functional) colours.

I am not a shell-guru so this script now has the limitation that you first have to cd to your portage folder since it works relative from there.

Code: Select all

#!/bin/bash

# This is a script to read portage log items from einfo, ewarn etc, new in the
# portage-2.1 series.
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
# Updated by: Uwe Klosa <uwe.klosa@gmail.com>
# Adapted by: bvrom

# Set ELOGDIR
#ELOGDIR=/var/log/portage/elog/

# ANSI Color -- use these variables to easily have different color
#    and format output. Make sure to output the reset sequence after 
#    colors (f = foreground, b = background), and use the 'off'
#    feature for anything you turn on.

initializeANSI()
{
  esc=""

  blackf="${esc}[30m";   redf="${esc}[31m";    greenf="${esc}[32m"
  yellowf="${esc}[33m"   bluef="${esc}[34m";   purplef="${esc}[35m"
  cyanf="${esc}[36m";    whitef="${esc}[37m"
  
  blackb="${esc}[40m";   redb="${esc}[41m";    greenb="${esc}[42m"
  yellowb="${esc}[43m"   blueb="${esc}[44m";   purpleb="${esc}[45m"
  cyanb="${esc}[46m";    whiteb="${esc}[47m"

  boldon="${esc}[1m";    boldoff="${esc}[22m"
  italicson="${esc}[3m"; italicsoff="${esc}[23m"
  ulon="${esc}[4m";      uloff="${esc}[24m"
  invon="${esc}[7m";     invoff="${esc}[27m"

  reset="${esc}[0m"
}

# Set up select prompt
PS3="${redf}Choice?${reset} "
initializeANSI
errcol="${redf}"
mesgcol="${yellowf}"

select_loop() {
        ANY_FILES=$(/usr/bin/find . -maxdepth 1 -type f -printf "%f\n")

        if [[ -z ${ANY_FILES} ]]; then
                echo "No log items to read"
                break
        fi

        echo
        echo "${mesgcol}This is a list of portage log items."
	echo "Choose a number to view that file or type q to quit.${bluef}"

        # Pick which file to read
        select FILE in ${ANY_FILES}; do
                case ${REPLY} in
                        q)
				#echo "${REPLY}"
                                echo "${reset}Quitting"
                                QUIT="yes"
                                break
                                ;;
                        *)
				echo "${reset}"
                                /usr/bin/less ${FILE}
				echo "${mesgcol}${FILE}"
                                read -p "(t)o-do (a)rchive (d)elete or (q)uit? [t/a/d/q]${reset} " ACTION
                                case ${ACTION} in
                                        t)
                                                /usr/bin/mv ${FILE} to-do/${FILE}
                                                SUCCESS=$?
                                                if [[ ${SUCCESS} = 0 ]]; then
                                                        echo "${mesgcol}Moved ${FILE} to to-do directory${reset}"
                                                else
                                                        echo "${errcol}Unable to move ${FILE}${reset}"
                                                fi
                                                ;;

                                        a)
                                                /usr/bin/mv ${FILE} archive/${FILE}
                                                SUCCESS=$?
                                                if [[ ${SUCCESS} = 0 ]]; then
                                                        echo "${mesgcol}Moved ${FILE} to archive directory${reset}"
                                                else
                                                        echo "${errcol}Unable to move ${FILE}${reset}"
                                                fi
                                                ;;

                                        d)
                                                /usr/bin/rm -f ${FILE}
                                                SUCCESS=$?
                                                if [[ ${SUCCESS} = 0 ]]; then
                                                        echo "${mesgcol}Deleted ${FILE}${reset}"
                                                else
                                                        echo "${errcol}Unable to delete ${FILE}${reset}"
                                                fi
                                                ;;
                                        q)
                                                echo "${mesgcol}Quitting${reset}"
                                                QUIT="yes"
                                                ;;
                                        # Empty string or invalid response defaults to "no action"
                                        *)
                                                echo "${mesgcol}Keeping ${FILE} (no action)${reset}"
                                                ;;
                                esac
                                ;;
                esac
                break
        done
}

until [[ -n ${QUIT} ]]; do
        select_loop
done 
Top
uweklosa
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Fri Feb 18, 2005 5:32 pm
Contact:
Contact uweklosa
Website

  • Quote

Post by uweklosa » Fri Aug 25, 2006 2:33 pm

Thanks for that. I've been thinking about these things, too. But I had not the time to implement them.

Uwe
Top
dway
n00b
n00b
Posts: 35
Joined: Sun Jun 18, 2006 10:14 pm

elogviewer error

  • Quote

Post by dway » Sat Aug 26, 2006 3:45 pm

Hi,

I've tried to execute elogviewer (which is in the /dir/to/elog/ with USERID 'root' and GUID 'portage') but here is the error I've got :

/usr/bin/env: python try: import pygtk except: print """ Elogviewer: No such files or directory

pygtk is installed, but seems not to be responding correctly... help :)
Top
V-Li
Retired Dev
Retired Dev
Posts: 618
Joined: Tue Jan 03, 2006 12:44 am

  • Quote

Post by V-Li » Wed Sep 20, 2006 10:46 am

Just wanted to tell that the ebuild from the bug (request for inclusion of elogviewer) has been introduced to Gentoo Sunrise Overlay, where you can easily call it (see http://www.gentoo-sunrise.org/sunrise). I wrote a man page for it and the ebuild gives some additional infos how to operate Elogviewer correctly. A reaction from the original author would be nice, as there are some unsettled issues...for example proper copyright advice and a logo if possible (only artwork, I can update the ebuild accordingly).
Top
roderick
l33t
l33t
User avatar
Posts: 908
Joined: Mon Jul 11, 2005 3:06 pm
Location: St. John's, NL CANADA
Contact:
Contact roderick
Website

  • Quote

Post by roderick » Fri Oct 06, 2006 2:19 pm

Bump...

Has anyone submitted a bug to have this added to portage?

Great app.
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Top
V-Li
Retired Dev
Retired Dev
Posts: 618
Joined: Tue Jan 03, 2006 12:44 am

  • Quote

Post by V-Li » Fri Oct 06, 2006 4:01 pm

Sure, there is [bug=136496]one[/bug]. I am on my way becoming a developer, I would happily add it to the tree, but when it is not supported anymore by the original author, I am not willing to bring it in and let it rot.
Top
roderick
l33t
l33t
User avatar
Posts: 908
Joined: Mon Jul 11, 2005 3:06 pm
Location: St. John's, NL CANADA
Contact:
Contact roderick
Website

  • Quote

Post by roderick » Fri Oct 06, 2006 4:06 pm

V-Li wrote:Sure, there is [bug=136496]one[/bug]. I am on my way becoming a developer, I would happily add it to the tree, but when it is not supported anymore by the original author, I am not willing to bring it in and let it rot.
I'd consider becoming a maintainer if possible.
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Top
V-Li
Retired Dev
Retired Dev
Posts: 618
Joined: Tue Jan 03, 2006 12:44 am

  • Quote

Post by V-Li » Fri Oct 06, 2006 4:12 pm

I wrote an email, I asked for reaction, on the bug...and the author did not say a word, so I consider the software dead upstream. You can take it you want.
Top
synss
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Wed Mar 08, 2006 5:42 pm
Location: Dijon > Berlin > Tokyo > Nürnberg > München

  • Quote

Post by synss » Fri Oct 06, 2006 4:24 pm

hello everybody, I am back and I will try to correct the bugs ASAP (you all know there is also another life possible, don't you? :wink: )

Thank you for the support too, it is very encouraging.

And my web account (at work actually) will be cancelled at the end of the month, so I have no web space anymore and the planned updates will only be available from bugzilla, that is the easiest for me. In other words, the ebuild will not work anymore, unless you download the archive first to your distfile directory and then run the ebuild.

For all of you not knowing where to put it, I would recommend either /usr/bin or /usr/local/bin/ these places only make sense! http://www.linux.com/guides/Linux-Filesystem-Hierarchy/ (/usr/local/bin/ for a direct download and /usr/bin/ for an ebuild installation) although it should not matter as long as it is in the path.

I do not promise being fast, as I have to start a new job in a new country (moving from Germany to Japan) but I will print the code and start working on it (like having that DEL-key deleting files) soon.

and it is distributed under the GPL-2 and above.

thank you again...
Compress portage tree
Elog viewer
Autodetect swap
Top
V-Li
Retired Dev
Retired Dev
Posts: 618
Joined: Tue Jan 03, 2006 12:44 am

  • Quote

Post by V-Li » Fri Oct 06, 2006 4:36 pm

Thank you. So I can add it to Portage in November (I will have commit access then), everybody else should use Sunrise Overlay which is an official Gentoo Project. All other issues have been addressed by me (either in ebuild and the added man page). Add it to Sourceforge, if you want a permanent download location.
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

Re: Elogviewer, a python/gtk graphical elog viewer

  • Quote

Post by toralf » Sat Oct 07, 2006 12:01 pm

synss wrote:Download
The suffix ".py" onto the filename would make the download process smarter.
Top
synss
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Wed Mar 08, 2006 5:42 pm
Location: Dijon > Berlin > Tokyo > Nürnberg > München

Re: Elogviewer, a python/gtk graphical elog viewer

  • Quote

Post by synss » Sat Oct 07, 2006 3:36 pm

toralf wrote:
synss wrote:Download
The suffix ".py" onto the filename would make the download process smarter.
I realize that, but it is a bit late for changing the name (actually I have already changed it from el-something.py to elogviewer in the begining) and this account will be cancelled soon anyway (and the link, dead), so for actual updates, please go to the bugzilla link.

I will open a sourceforge.net account.
Compress portage tree
Elog viewer
Autodetect swap
Top
V-Li
Retired Dev
Retired Dev
Posts: 618
Joined: Tue Jan 03, 2006 12:44 am

  • Quote

Post by V-Li » Wed Oct 11, 2006 8:09 am

Some status update:

eread -- The bash script by dberkholz has been reworked and will be added to gentoolkit
elogviewer -- A GTK frontend. The request is handled in [bug=136496]#136496[/bug] and has been added to Project Sunrise Overlay, app-portage/elogviewer. It is planned to add a Sourceforge Project for this, where even kelogviewer can find its home.
kelogviewer -- A KDE frontend. The request is handled in [bug=150768]#150768[/bug] and has been added to Sunrise Overlay, app-portage/kelogviewer. Needs a decent versioning, I contacted the author
elogv -- A curses frontend (text mode). The request is handled in [bug=150733]#150733[/bug] and has been added to Sunrise Overlay, app-portage/elogv.

I will bring them into official Portage as soon as I can.
Top
FuzzyRay
Retired Dev
Retired Dev
Posts: 79
Joined: Thu Oct 02, 2003 3:00 pm
Contact:
Contact FuzzyRay
Website

  • Quote

Post by FuzzyRay » Wed Oct 11, 2006 7:27 pm

V-Li wrote: eread -- The bash script by dberkholz has been reworked and will be added to gentoolkit
eread has been included in gentoolkit-0.2.3_pre2
Top
Jeremy_Z
l33t
l33t
User avatar
Posts: 671
Joined: Mon Apr 05, 2004 3:21 pm
Location: Shanghai

  • Quote

Post by Jeremy_Z » Thu Oct 26, 2006 10:27 am

Hi, it has been a long time. Well i did not have much time to think about the hosting on source forge yet.

synss, good to hear from you too, i will reply to your MP in a minute.
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Top
Jeremy_Z
l33t
l33t
User avatar
Posts: 671
Joined: Mon Apr 05, 2004 3:21 pm
Location: Shanghai

Re: Kelogviewer problem

  • Quote

Post by Jeremy_Z » Thu Oct 26, 2006 10:52 am

Gooserider wrote:
I'm having a few issues with the program.

1. I downloaded it, and unpacked it, but where on the system is it best to put it? Currently it's sitting in my downloads directory which I feel is probably not the right place...)
Well anywhere is ok, but you would want to put it somewhere included in your PATH (such as /usr/bin or /usr/local/bin ...)

Gooserider wrote: 2. I am running kde, and have kde-base (and other things) installed, but I get this error when I try to run kelogviewer:

Code: Select all

localhost ~/Downloads $ ./kelogviewer

        Kelogviewer requires pykde and portage 2.1.
        Vous n'avez pas installe pykde.

        emerge pykde

Traceback (most recent call last):
  File "./kelogviewer", line 14, in ?
    from qt import QVBox, QHBox, QPopupMenu, SIGNAL, PYSIGNAL, QListView, QButtonGroup, QCheckBox, QColor, QIconSet, QPixmap, QLabel, QPushButton, QSplitter, QString, QListViewItemIterator, Qt
ImportError: No module named qt
Considering I'm running KDE, I'd better have qt, but maybe it's something to do w/ pykde... So I tried emerging pykde, even though I thought it was part of kde, and got:

Code: Select all

localhost ~ # emerge -uDaNv pykde

These are the packages that would be merged, in order:

Calculating dependencies

!!! The short ebuild name "pykde" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    dev-python/pykde
    kde-base/pykde
As i wrote on the website i had it working with kde-base/pykde-3.5.0, i am currently updating to kde 3.5.5 so i will try with kde-base/pykde-3.5.5-r1
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Top
justwantstohelp
Apprentice
Apprentice
User avatar
Posts: 251
Joined: Thu Jun 29, 2006 9:22 am
Location: Sacramento, California

  • Quote

Post by justwantstohelp » Thu Oct 26, 2006 2:02 pm

Worked great for me, thanks a lot!
We need to shoot cops, and hang politicians. Concentrate the vision, concentrate the vision.
Top
V-Li
Retired Dev
Retired Dev
Posts: 618
Joined: Tue Jan 03, 2006 12:44 am

Re: Kelogviewer problem

  • Quote

Post by V-Li » Fri Oct 27, 2006 1:08 pm

Jeremy_Z wrote:As i wrote on the website i had it working with kde-base/pykde-3.5.0, i am currently updating to kde 3.5.5 so i will try with kde-base/pykde-3.5.5-r1
kelogviewer works great with that.
Top
Jeremy_Z
l33t
l33t
User avatar
Posts: 671
Joined: Mon Apr 05, 2004 3:21 pm
Location: Shanghai

  • Quote

Post by Jeremy_Z » Sat Oct 28, 2006 8:41 am

Thanks for the feedback, i am out of town this week end so i could not make the test yet.
synss got he sourceforg thing so i guess we will have both projects hosted by neek week, that should help for the ebuilds ( i am still surprised that the phpnet site is still up :D )

Anyway, it looks like we are both busy so if anyone would like help as a dev give us a PM. The code is quite trivial so it is not much work but after the sourceforge hosting and the ebuilds becoming more popular i guess we could use a hand with bugs/feature requests.
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Top
Post Reply

79 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy