Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244216 - sci-mathematics/wxmaxima - fails to plot with wxplot2d
Summary: sci-mathematics/wxmaxima - fails to plot with wxplot2d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 09:53 UTC by Nicholas Fiorentini
Modified: 2008-10-27 21:04 UTC (History)
0 users

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


Attachments
a snapshoot that show the bug (wxmaxima074_ott200_plottingbug.png,82.17 KB, image/png)
2008-10-26 13:17 UTC, Nicholas Fiorentini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Fiorentini 2008-10-25 09:53:21 UTC
I have installed wxMaxima. All works fine except for plotting. 
Steps:

1. Select the button "plot 2D" (or "plot 3D") from the GUI (or from the menu) 
2. in the opened dialog there is the default format option "inline"
3. wxMaxima execute the command "wxplot2d"
4. the command fail with an inline error box with a large X is displayed with error written

Reproducible: always.

Note: if I manually write the "plot2d" command (or "plot3d") or if i choose the "gnuplot" format all is drawed correctly in a new window but is not drawed inline.

Installed ebuilds:
sci-visualization/gnuplot-4.2.3-r2  USE="X latex pdf plotutils readline svga wxwindows -doc -emacs -gd -ggi -xemacs" 0 kB
x11-libs/wxGTK-2.8.8.1  USE="X odbc opengl sdl -debug -doc -gnome -gstreamer -pch" 0 kB
sci-mathematics/maxima-5.14.0  USE="X latex nls tk unicode -clisp -cmucl -emacs -gcl -sbcl -xemacs" LINGUAS="-es -pt -pt_BR" 0 kB
sci-mathematics/wxmaxima-0.7.4  USE="unicode" 0 kB
Comment 1 Nicholas Fiorentini 2008-10-25 09:55:38 UTC
I forget to inform you that I'm running on x86 machine.

Many thanks!
Comment 2 Mike Auty (RETIRED) gentoo-dev 2008-10-25 22:30:39 UTC
Please write down the error message displayed in the box and post it here, and also include the output from "emerge --info"...
Comment 3 Nicholas Fiorentini 2008-10-26 13:15:47 UTC
At wxMaxima launching appears this inline error:
; in: LAMBDA NIL;     (LET* ((MAXIMA::FILENAME (MAXIMA::WXPLOT-FILENAME NIL));            (MAXIMA::*WINDOWS-OS* T);            (MAXIMA::ARGS (CONS `(# MAXIMA::$TITLE ,#) MAXIMA::ARGS));            (MAXIMA::ARGS (CONS '(MAXIMA::$GR2D) (MAPCAR #'# MAXIMA::ARGS))));       (SETQ MAXIMA::IMAGES;               (CONS (FORMAT NIL "~a.png" MAXIMA::FILENAME) MAXIMA::IMAGES));       (MAXIMA::$APPLY 'MAXIMA::$DRAW;                       (APPEND;                        `((MAXIMA::MLIST MAXIMA::SIMP);                          (# MAXIMA::$TERMINAL MAXIMA::$PNG);                          (# MAXIMA::$PIC_WIDTH ,#) (# MAXIMA::$PIC_HEIGHT ,#);                          (# MAXIMA::$FILE_NAME ,MAXIMA::FILENAME));                        (LIST MAXIMA::ARGS)))); ; caught STYLE-WARNING:;   using the lexical binding of the symbol (*WINDOWS-OS*), not the;   dynamic binding, even though the name follows;   the usual naming convention (names like *FOO*) for special variables; ; caught STYLE-WARNING:;   The variable *WINDOWS-OS* is defined but never used.; in: LAMBDA NIL;     (LET* ((MAXIMA::FILENAME (MAXIMA::WXPLOT-FILENAME NIL));            (MAXIMA::*WINDOWS-OS* T);            (MAXIMA::ARGS (CONS `(# MAXIMA::$TITLE ,#) MAXIMA::ARGS));            (MAXIMA::ARGS (CONS '(MAXIMA::$GR3D) (MAPCAR #'# MAXIMA::ARGS))));       (SETQ MAXIMA::IMAGES;               (CONS (FORMAT NIL "~a.png" MAXIMA::FILENAME) MAXIMA::IMAGES));       (MAXIMA::$APPLY 'MAXIMA::$DRAW;                       (APPEND;                        `((MAXIMA::MLIST MAXIMA::SIMP);                          (# MAXIMA::$TERMINAL MAXIMA::$PNG);                          (# MAXIMA::$PIC_WIDTH ,#) (# MAXIMA::$PIC_HEIGHT ,#);                          (# MAXIMA::$FILE_NAME ,MAXIMA::FILENAME));                        (LIST MAXIMA::ARGS)))); ; caught STYLE-WARNING:;   using the lexical binding of the symbol (*WINDOWS-OS*), not the;   dynamic binding, even though the name follows;   the usual naming convention (names like *FOO*) for special variables; ; caught STYLE-WARNING:;   The variable *WINDOWS-OS* is defined but never used.; ; compilation unit finished;   caught 4 STYLE-WARNING conditions

The result of the wxplot2d is shown in the attached image.

My emerge --info:
Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-glibc2.0
Timestamp of tree: Tue, 21 Oct 2008 16:04:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86"
ALSA_CARDS="hda-intel intel8x0"
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"
ANT_HOME="/usr/share/ant-core"
APACHE2_MODULES="actions alias auth_basic authn_alias 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"
ARCH="x86"
AUTOCLEAN="yes"
CAMERAS="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHARSET="ISO-8859-15"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLON_SEPARATED="XDG_DATA_DIRS"
COLORTERM=""
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -march=native"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo http://distfiles.gentoo.org"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/info:/usr/share/info/emacs-22"
INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
KONSOLE_DCOP="DCOPRef(konsole-15480,konsole)"
KONSOLE_DCOP_SESSION="DCOPRef(konsole-15480,session-1)"
LANG="it_IT@euro"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,-O1"
LDPATH="/usr/local/lib:/usr/lib/opengl/nvidia/lib:/usr/i686-pc-linux-gnu/lib:/usr/lib/gcc/i686-pc-linux-gnu/4.3.1:/usr/lib/nspr:/usr/lib/nss:/usr/lib/qt4:/usr/kde/3.5/lib:/usr/qt/3/lib:/usr/lib/libstdc++-v3/:/usr/lib/R/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="it"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man"
NOCOLOR="false"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/kde/3.5/bin:/usr/sbin:/bin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/local/bin/samsung"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage_netbeans/java-experimental /usr/local/portage_netbeans/java-overlay"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/dati/home/gordon"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
R_HOME="/usr/lib/R"
SANE_CONFIG_DIR="/etc/sane.d"
SBCL_HOME="/usr/lib/sbcl"
SBCL_SOURCE_ROOT="/usr/lib/sbcl/src"
SCHEME_LIBRARY_PATH="/usr/share/slib/"
SHELL="/bin/bash"
SHLVL="4"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="X a52 aac aalib acl acpi alsa amarok arts bash-completion berkdb bzip2 cairo caps cdda cddb cdio cdr cli cpudetection cracklib crypt css cups db2 dbus dia divx dts dv dvb dvd dvdr dvdread encode exif ffmpeg firefox flac fortran gcj gdbm gif gpm gtk hal iconv ieee1394 imagemagick isdnlog java java6 jpeg jpeg2k kde lame laptop latex midi mmx mmxext mp2 mp3 mp4 mpeg mplayer msn mudflap musicbrainz ncurses nls nptl nptlonly nsplugin nvidia odbc ogg opengl openmp opera oss pam pcre pdf perl plotutils png postscript pppd python qt3 qt4 quicktime rar raw readline real reflection rss scanner sdl session spell spl sqlite3 sse sse2 sse3 ssl ssse3 subversion svg sysfs syslog taglib tcl tcpd tga threads tiff tk truetype unicode usb v4l v4l2 vcd vorbis win32codecs wmf x264 x86 xanim xine xinerama xml xorg xvid xvmc zlib" ALSA_CARDS="hda-intel intel8x0" 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_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="*" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia vmware"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nvidia vmware"
WINDOWID="73400325"
XAUTHORITY="/root/.xauthaTzaBY"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
_="/usr/bin/emerge"
Comment 4 Nicholas Fiorentini 2008-10-26 13:17:06 UTC
Created attachment 169926 [details]
a snapshoot that show the bug

As you can see wxplot2d command fail with error, but plot2d show the correct image.
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2008-10-27 16:06:20 UTC
Hi,

This seems to work fine on newer versions (maxima-5.16.3, wxmaxima-0.7.6, gnuplot-4.2.4-r1). Could you try at least with gnuplot-4.2.4-r1, I suspect to be a mix between wxgtk versions.
Thanks.
Comment 6 Nicholas Fiorentini 2008-10-27 21:04:11 UTC
(In reply to comment #5)
> This seems to work fine on newer versions (maxima-5.16.3, wxmaxima-0.7.6,
> gnuplot-4.2.4-r1). Could you try at least with gnuplot-4.2.4-r1, I suspect to
> be a mix between wxgtk versions.

Upgraded to:
x11-libs/wxGTK-2.8.9.1-r1 [2.8.8.1] USE="X odbc opengl sdl -debug -doc -gnome -gstreamer -pch"
sci-visualization/gnuplot-4.2.4-r1 [4.2.3-r2] USE="X latex pdf plotutils readline svga wxwindows -doc -emacs -gd -ggi -xemacs"
sci-mathematics/maxima-5.16.3 [5.14.0] USE="X latex nls tk unicode -clisp -cmucl -emacs -gcl -sbcl -xemacs" LINGUAS="-es -pt -pt_BR"
sci-mathematics/wxmaxima-0.7.6 [0.7.4] USE="unicode"

The software seems very stable. The startup error is now solved (the long text described at the beginning of the comment #3), but the wxplot2d error remains.

Calling wxplot2d produces the same error followed by this textual error: 
"set term png         
^"/home/gordon/maxout.gnuplot", line 1: unknown or ambiguous terminal type; type just 'set terminal' for a list".

Solved with the use-flag "gd" added to gnuplot (and re-emerged). Now all works fine!

Thanks for your help!