Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198749 - hplip: hp-align crashes (name 'ui' is not defined)
Summary: hplip: hp-align crashes (name 'ui' is not defined)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-10 21:50 UTC by Leonardo Ferreira Fontenelle
Modified: 2007-11-22 01:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Ferreira Fontenelle 2007-11-10 21:50:08 UTC
I have net-print/hplip-2.7.9-r1 installed with this USE flags: -X -doc -minimal -parport +ppds -scanner -snmp. If I try to emerge it with the X USE flag, I get a circular dependency error (dev-python/qscintilla-2.1 and dev-python/PyQt-3.17.3). My printer is installed and working fine, but I can't run hp-align.

Reproducible: Always

Actual Results:  
This is the error message I get when I run hp-align:

Using device: hp:/usb/Deskjet_D2300_series?serial=BR68GFK0PD04KT
Traceback (most recent call last):
  File "/usr/bin/hp-align", line 268, in <module>
    maint.AlignxBow(d, align_type, ui.load_paper_prompt, enterAlignmentNumber, enterPaperEdge,
NameError: name 'ui' is not defined


Expected Results:  
I'd like the command-line tool to work :)

Portage 2.1.3.19 (default-linux/x86/2006.1/desktop, gcc-4.2.2, glibc-2.7-r0, 2.6.23-gentoo-r1 i686)
=================================================================
System uname: 2.6.23-gentoo-r1 i686 AMD Sempron(tm) 2400+
Timestamp of tree: Thu, 08 Nov 2007 04:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF-8"
LINGUAS="pt_BR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome-experimental /home/leonardo/.portage/musicbrainz-overlay /home/leonardo/.portage /usr/portage/local"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 asf audiofile avahi bash-completion berkdb bitmap-fonts bittorrent bluetooth bzip2 cairo cddb cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode exif fam ffmpeg fortran ftp gdbm gif glitz gnome gnutls gpm gstreamer gtk hal iconv idn isdnlog java javascript jpeg keyring lame lcms libgda libnotify lm_sensors mad midi mikmod mmx mono mp3 mpeg msn mudflap ncurses nls normalize nptl nptlonly nsplugin nvidia ogg opengl openmp palm pam pcre pdf perl png ppds pppd python quicktime raw readline real reflection sdl session spell spl sse sse2 ssl startup-notification svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs x86 xml xorg xulrunner xv xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR" USERLAND="GNU" VIDEO_CARDS="via vesa nvidia nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2007-11-19 17:19:46 UTC
(In reply to comment #0)
> I have net-print/hplip-2.7.9-r1 installed with this USE flags: -X -doc -minimal
> -parport +ppds -scanner -snmp. If I try to emerge it with the X USE flag, I get
> a circular dependency error (dev-python/qscintilla-2.1 and
> dev-python/PyQt-3.17.3).

Confirmed, thanks for reporting this, but it's not a printing issue. I could break the loop by first emerging qscintilla with USE=-python. This stuff seems to be owned by both the python and qt teams, so I tossed a coin and python won the bug (qt goes in CC though).

> My printer is installed and working fine, but I can't
> run hp-align.

Most of the stuff in the hplip driver requires PyQt, so I would suspect hp-align does. In case I'm wrong feel free to open a new bug about this. Note though that neither upstream nor I recommend to install without the GUI. So if you file a bug about this, make sure you investigate it as much as you can, as this is the best way to move it to the top of my priority list in such a case (i.e. minor issue triggered by non-recommended use).

Denis.
Comment 2 Leonardo Ferreira Fontenelle 2007-11-21 23:03:33 UTC
I remember using hp-align from the command line at least once, so probably at some time PyQt was optional, but it doesn't seem to be anymore :(

I ended up with two error reports in one: circular dependency and crash. Should I open another error report? Honestly I can't help with much more insight, I don't know how to code (or read code).
Comment 3 Leonardo Ferreira Fontenelle 2007-11-22 01:26:54 UTC
Doesn't matter anymore. Both issues are fixed in hplip 2.7.10 :)