While marked as stable, Pothole can not edit any of the files in /etc/portage/. If you changed package's use flags and tried to save them to the appropriate files in /etc/portage, the following error would occur: Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/porthole/advancedemerge/advemerge.py", line 271, in on_package_use_commit remove=removelist, callback=self.reload, parent_window = self.window ) File "/usr/lib64/python2.6/site-packages/porthole/db/user_configs.py", line 366, in set_user_config comment=comment, username=priviliges.USER, NameError: global name 'priviliges' is not defined emerge --info: Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-tuxonice-r5 x86_64) ================================================================= System uname: Linux-2.6.32-tuxonice-r5-x86_64-AMD_Athlon-tm-_7850_Dual-Core_Processor-with-gentoo-1.12.13 Timestamp of tree: Thu, 03 Jun 2010 13:30:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL sun-bcla-java-vm skype-eula dlj-1.1 RTCW-ETEULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=amdfam10 -pipe -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=amdfam10 -pipe -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays" DISTDIR="/mnt/e/distfiles/" FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms unmerge-logs userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-z,now,--as-needed,-O1,--hash-style=gnu,--sort-common" LINGUAS="en ar fa" MAKEOPTS="-j3" PKGDIR="/mnt/e/GentooPackages/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 3gp X a52 aac aalib acc acl acpi acpid alsa amd64 amr apache2 applet archive ares asf audacious autoipd automount avahi avi beagle berkdb bidi bluetooth bmp bonjour bookmarks browserplugin bttv bzip2 cairo cd cdda cddax cddb cdio cdparanoia cdr cli consolekit cpudetection cracklib crypt cups cxx dbus dhcpcd dia directfb divx4linux djvu dmix docbook dot dts dv dvb dvd dvdnav dvdr dxr3 encode esd evdev excel extras fa faac faad farsi fasttrack fbcon fbcondecor fbsplash ffmpeg firefox flac flash flashplayer fltk fontconfig fortran fortran95 freetype fuse galago gdbm gif gmp gnome gnome-keyring gnutella gnutls gpm gstreamer gtk gtk2 h323 hal html httpd iconv id3tag imagemagick ioplug iplayer ipv6 java java6 javascript jpeg jpeg2k jpg lame latex lcms libnotify lirc live m4a mad matroska mid mjpeg mmx mmxext modules mov mozilla mp3 mp4 mpeg mpg mudflap multilib mysql nautilus ncurses network networkmanager new-login nfs nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opencore-amr openft opengl openmp oss pam pcre pdf perl persian php pipechan plug png pnm policykit pppd projectm proxy ps python quicktime ra ram rar rcs readline reflection rm rtf samba sdl session sip slp smp socks socks5 spell spl sqlite sse sse2 ssl stream svg svn symlink sysfs taglib tcpd theora tiff tk truetype udev unicode unrar usb v4l vcd vcdinfo vcdx vdpau vlm vorbis wav wavpack wma wmf wmv wxwindows x264 xanim xattr xcb xine xml xmms xorg xpm xulrunner xv xvid xvmc yahoo youtube zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="stv0680" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ar fa" LIRC_DEVICES="pctv" RUBY_TARGETS="ruby18" SANE_BACKENDS="gt68xx" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Yes, that was a mistake while I was reverting some changes that did not work as expected. I reverted a little too much. I have it fixed in svn already. I had intentioned a new release with the fix, but things have been too hectic for me. I am working on getting a new USE FLAG editing page added so you won't have to use the advanced emerge dialog.
(In reply to comment #1) > Yes, that was a mistake while I was reverting some changes that did not work as > expected. I reverted a little too much. I have it fixed in svn already. I > had intentioned a new release with the fix, but things have been too hectic for > me. I am working on getting a new USE FLAG editing page added so you won't > have to use the advanced emerge dialog. > Great thanks for your swift reply. I hope you get your work done as soon as possible. Porthole is nice and rich. Are there any patches to be applied for now? When are we going to see your fix in the portage? I hope asap. Thanks again.
Created attachment 235969 [details, diff] patch to fix this bug
Created attachment 235973 [details] updated ebuild, including the patch
Fixed in porthole-0.6.1-r2, thanks!
I had not tested porthole for a period of time (I thought the new patch has done the work), but once I recently checked it, the bug appeared again. I noticed the following error while updating package.unmask or package.keywords. It differs from the last error without the patch. Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/porthole/advancedemerge/advemerge.py", line 271, in on_package_use_commit remove=removelist, callback=self.reload, parent_window = self.window ) File "/usr/lib64/python2.6/site-packages/porthole/db/user_configs.py", line 367, in set_user_config comment=comment, username=privileges.USER, AttributeError: 'PrivilegeControl' object has no attribute 'USER' Thank you for your efforts.
(In reply to comment #5) > Fixed in porthole-0.6.1-r2, thanks! > Checked with porthole-0.6.1-r2 - doesn´t work either Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/porthole/packagebook/summary.py", line 885, in add_keyword_ebuild db.userconfigs.set_user_config('KEYWORDS', ebuild=ebuild, add="~"+arch, callback=self.update_callback) File "/usr/lib/python2.6/site-packages/porthole/db/user_configs.py", line 367, in set_user_config comment=comment, username=privileges.USER, AttributeError: 'PrivilegeControl' object has no attribute 'USER' -------------------------------------------------------------------------------------------------------------------------------------------- (Full output: CONFIG: id initialized to 421848 CONFIGURATION: id initialized to 422496 PREFERENCES: id initialized to 436623 initializing utils.__init__.py DEBUG: id initialized to 439151 UTILS: mydebug.id = 439151 PREFERENCES: imported debug.id = 439151 BACKENDS: id initialized to 635926 PORTAGELIB: id initialized to 636616 STERMINAL: id initialized to 638951 VERSION_SORT: id initialized to 640459 PROPERTIES: id initialized to 642968 METADATA: id initialized to 643137 PORTAGELIB: imported portage-2.2 modules PORTAGELIB: portage version = 2.1.8.3 BACKENDS: portage_lib import complete : <module 'porthole.backends.portagelib' from '/usr/lib/python2.6/site-packages/porthole/backends/portagelib.pyc'> MAINWINDOW: id initialized to 232563 DATABASE: id initialized to 250331 PACKAGE: id initialized to 250638 DBREADER: import id initialized to 250838 UTILITIES: id initialized to 251679 USERCONFIGS: id initialized to 252060 DBREADER: DatabaseReader.id initialized to 253442 PLUGIN: id initialized to 278610 ADVEMERGE: id initialized to 289423 PORTHOLE: i18n_DIR = /usr/share/locale/ Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/porthole/packagebook/summary.py", line 885, in add_keyword_ebuild db.userconfigs.set_user_config('KEYWORDS', ebuild=ebuild, add="~"+arch, callback=self.update_callback) File "/usr/lib/python2.6/site-packages/porthole/db/user_configs.py", line 367, in set_user_config comment=comment, username=privileges.USER, AttributeError: 'PrivilegeControl' object has no attribute 'USER' Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/porthole/packagebook/summary.py", line 885, in add_keyword_ebuild db.userconfigs.set_user_config('KEYWORDS', ebuild=ebuild, add="~"+arch, callback=self.update_callback) File "/usr/lib/python2.6/site-packages/porthole/db/user_configs.py", line 367, in set_user_config comment=comment, username=privileges.USER, AttributeError: 'PrivilegeControl' object has no attribute 'USER' )
Anything new on this?
Sorry, I got involved in several other projects. That and life got in the way. I'll try to get a properly fixed ebuild out this weekend.
Created attachment 255709 [details, diff] 'missing attribute' bug fix
(In reply to comment #10) > Created attachment 255709 [details, diff] > 'missing attribute' bug fix Is there anything new about this? Still it doesn't work.
Sorry, I haven't been keeping up with things. I have done some more work to get another release out for porthole, but there have been too many other distractions to have them completed. I am working on some other updates that need to be done as well which will make it a worthwhile update. I hope to get them completed before my wife get pissed at me for having spent too much time at my computer (again).
missing-attribute patch applied and released in -0.6.1-r3 finally. Sorry for the extra long delay.