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
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


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

thanks it works great.synss wrote: Download
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
I'd consider becoming a maintainer if possible.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.

The suffix ".py" onto the filename would make the download process smarter.synss wrote:Download

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.toralf wrote:The suffix ".py" onto the filename would make the download process smarter.synss wrote:Download
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:
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...)
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-r1Gooserider 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:
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 ~/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
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

kelogviewer works great with that.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