Your message dated Mon, 30 Nov 2009 23:49:07 -0500 with message-id <1259642947.25448.14.ca...@localhost> and subject line Re: Bug#553944: asymptote: Impossible to load a file has caused the Debian Bug report #553944, regarding asymptote: Impossible to load a file to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 553944: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=553944 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: asymptote Version: 1.88-2 Severity: normal Hi, With the last release of asymptote, when it seems impossible to load a file : I use latex to compile the file. And when I am using asy : asy file.asy file.asy: 40.9: no matching variable 'line' file.asy: 42.13: no matching variable 'dimension' The tex file is follow. The error is the same with all data files. Best regards, Xavier. \documentclass[12pt]{article} \usepackage{asymptote} \begin{document} \begin{asydef} // Global Asymptote definitions can be put here. usepackage("bm"); usepackage("asycolors"); texpreamble("\def\V#1{\bm{#1}}"); // One can globally override the default toolbar settings here: // settings.toolbar=true; \end{asydef} \begin{center} \begin{asy} import graph; size(400,300,IgnoreAspect); file f1=line(input("5x.csv")); real[][] a1=dimension(f1,0,0); a1=transpose(a1); \end{asy} \end{center} \end{document} -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages asymptote depends on: ii dpkg 1.15.4.1 Debian package management system ii freeglut3 2.4.0-8 OpenGL Utility Toolkit ii ghostscript 8.70~dfsg-2+b1 The GPL Ghostscript PostScript/PDF ii graphicsmagick-imagema 1.3.5-5.2 image processing tools providing I ii libc6 2.10.1-5 GNU C Library: Shared libraries ii libfftw3-3 3.2.2-1 library for computing Fast Fourier ii libgc1c2 1:6.8-1.2 conservative garbage collector for ii libgcc1 1:4.4.2-1 GCC support library ii libgl1-mesa-glx [libgl 7.6-1 A free implementation of the OpenG ii libglu1-mesa [libglu1] 7.6-1 The OpenGL utility library (GLU) ii libgsl0ldbl 1.13+dfsg-1 GNU Scientific Library (GSL) -- li ii libncurses5 5.7+20090803-2 shared libraries for terminal hand ii libreadline6 6.0-5 GNU readline and history libraries ii libsigsegv0 2.5-3 Library for handling page faults i ii libstdc++6 4.4.2-1 The GNU Standard C++ Library v3 ii python 2.5.4-2 An interactive high-level object-o ii python-imaging-tk 1.1.6-3.1 Python Imaging Library - ImageTk M ii python-tk 2.5.2-1.1 Tkinter - Writing Tk applications ii tex-common 1.20 common infrastructure for building ii texlive-base-bin 2007.dfsg.2-8 TeX Live: Essential binaries ii texlive-latex-base 2007.dfsg.2-4 TeX Live: Basic LaTeX packages ii texlive-pstricks 2007.dfsg.17-2 TeX Live: PSTricks packages ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime Versions of packages asymptote recommends: pn asymptote-doc <none> (no description available) Versions of packages asymptote suggests: ii gv 1:3.6.7-1 PostScript and PDF viewer for X ii xpdf 3.02-1.4+lenny1 Portable Document Format (PDF) sui -- no debconf information
--- End Message ---
--- Begin Message ---I got a fast answer from asymptote developers: File mode functions are now virtual members (since 1.83); this backwards incompatibility requires that line(file f) be changed to f.line(), etc. I'm quoting their full anwer below, and I'm closing this report now. Thanks, Ruben > Nothing has changed recently with the module loading mechanism > (import/include). However, you need to read the release notes that > come with each release. In version 1.83, the file mode functions where > standardized: > > "File mode functions are now virtual members; this backwards > incompatibility requires that line(file f) be changed to f.line()". > > So you now need to say > > \documentclass[12pt]{article} > \usepackage{asymptote} > > \begin{document} > > \begin{asydef} > // Global Asymptote definitions can be put here. > usepackage("bm"); > usepackage("asycolors"); > texpreamble("\def\V#1{\bm{#1}}"); > // One can globally override the default toolbar settings here: > // settings.toolbar=true; > \end{asydef} > > \begin{center} > \begin{asy} > import graph; > > size(400,300,IgnoreAspect); > > > file f1=input("5x.csv").line(); > > real[][] a1=f1.dimension(0,0); > a1=transpose(a1); > > \end{asy} > \end{center} > \end{document}
signature.asc
Description: Esta parte del mensaje está firmada digitalmente
--- End Message ---

