Bogue avec le module three ?

Tout ce qui concerne le langage Asymptote. Ce langage est utilisable sur le forum via les balises asy.
[participation réservée aux utilisateurs inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

[Résolu] Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Bonsoir à tous,
Tous les codes important le module three m'affichent ceci à la compilation :

Code : Tout sélectionner

fab@debian:~$ asy -V plan1.asy
/usr/local/share/asymptote/graph_splinetype.asy: 18.7: no matching variable 'increasing'
/usr/local/share/asymptote/graph.asy: 2052.26: cannot call
'path[] segment(pair[] z, bool[] cond, guide join(... guide[])=<default>)'
with parameter '(bool[])'
/usr/local/share/asymptote/interpolate.asy: 115.7: no matching variable 'increasing'
/usr/local/share/asymptote/three_surface.asy: 540.18: no matching variable 'quarticroots'
/usr/local/share/asymptote/three_surface.asy: 879.15: call of function 'copy(int[][])' is ambiguous
/usr/local/share/asymptote/three_surface.asy: 1696.14: no matching variable 'lexorder'
/usr/local/share/asymptote/three_surface.asy: 1765.14: no matching variable 'lexorder'
/usr/local/share/asymptote/graph3.asy: 1513.26: no matching function 'segment(bool[])'
/usr/local/share/asymptote/graph3.asy: 1542.7: no matching variable 'rectangular'
/usr/local/share/asymptote/graph3.asy: 1706.7: no matching variable 'rectangular'
/usr/local/share/asymptote/graph3.asy: 1721.7: no matching variable 'rectangular'
Merci.
Dernière modification par Fabrice Couvreur le samedi 19 février 2011, 12:12, modifié 1 fois.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Bogue avec le module three ?

Message non lu par GMaths »

Peux-tu donner un exemple précis ?

Quelle version d'asymptote ?
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Bogue avec le module three ?

Message non lu par GMaths »

Sans réfléchir sur le message d'erreur, une idée qui me passe par la tête, quand tu dis que c'est systématique avec three.asy : tu n'aurais pas un fichier three.asy dans le dossier courant... qui prendrait le pas sur celui de la distribution ?
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Salut,
GMaths a écrit :Peux-tu donner un exemple précis ?

Code : Tout sélectionner

import three;
import graph3;
settings.outformat="pdf";
settings.prc=true;
size(10cm);
currentprojection=perspective(
camera=(1.9886032181876,4.64756221702219,8.47464909034702),
up=(0.0365949915998181,-0.00166165380460571,0.000393201999213466),
target=(1.69464324073841,-3.47277692165738,1.51712747724663),
zoom=0.607951801183126,
angle=64.2057710023713,
autoadjust=false);
real a=5;
real b=8;
triple A=O;
triple B=A+a*X;
triple E=A+a*Z;
defaultpen(fontsize(6pt));
render render=render(compression=0,merge=true);
path3 g=A--B--E--cycle;
transform3 t=shift(b*unit(normal(g)));
draw(surface(g),lightgrey+opacity(0.4));
draw(surface(t*g),lightgrey+opacity(0.4));
for(int i=0 ; i < length(g) ; ++i){
  draw(surface(point(g,i)--point(t*g,i)--point(t*g,i+2)--point(g,i+2)--cycle),lightgrey+opacity(0.2),nullpen,render);
}	
draw(point(g,0)--point(t*g,0)^^point(t*g,0)--point(t*g,2)^^point(t*g,0)--point(t*g,1),dashed);
draw(E--point(t*g,1),red);
draw(A--point(t*g,1),red+dashed);
label("A",A,S);
label("B",E,S);
label("E",B,N);
label("F",point(t*g,1),N);
label("D",point(t*g,0),W+N);
label("C",point(t*g,2),SE);
GMaths a écrit :Quelle version d'asymptote ?

Code : Tout sélectionner

fab@debian:~$ asy
Welcome to Asymptote version 2.09svn (to view the manual, type help)
> 
GMaths a écrit :tu n'aurais pas un fichier three.asy dans le dossier courant... qui prendrait le pas sur celui de la distribution ?
Non.
chellier
Modérateur honoraire
Modérateur honoraire
Messages : 355
Inscription : samedi 25 juillet 2009, 12:25
Localisation : Le Creusot
Contact :

Re: Bogue avec le module three ?

Message non lu par chellier »

Le code ne produit aucune erreur chez moi avec la 2.09 svn.
Ça a déjà fonctionné ou il y a toujours eu les messages d'erreurs ?

Christophe
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Bogue avec le module three ?

Message non lu par GMaths »

Bizarre, bizarre : ce message d'erreur ne me parle pas.

Cela fonctionnait avant ? Tu as fait une mise à jour depuis ?
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Bonsoir,
Tous les codes fonctionnaient avant...avant une mise à jour importante de ma Debian Sid après le gel de Squeeze.
Le problème, c'est que les autres codes (ceux n'embarquant pas le module three) compilent sans problèmes !!
J'ai testé le code de Gaëtan qu'il vient de déposer sur le forum de LaTeX ; même constat.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Bogue avec le module three ?

Message non lu par GMaths »

three.asy : tu y regardes le code parfois ? Tu ne l'aurais pas modifié sans le vouloir ?

Je demande cela... car personnellement sous notepad++, j'ai toujours plusieurs dizaines de fichiers d'ouverts...
et une compilation d'un fichier entraine la sauvegarde automatique de tous les fichiers ouverts (c'est un fonctionnement dangereux que j'ai voulu mais il faut être sûr de ne pas avoir écrit sans le vouloir dans l'un d'eux).
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Bogue avec le module three ?

Message non lu par GMaths »

GMaths a écrit :tu n'aurais pas un fichier three.asy dans le dossier courant... qui prendrait le pas sur celui de la distribution ?
Même question pour 'math' !
car increasing est défini dans math.asy.
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

GMaths a écrit :three.asy : tu y regardes le code parfois ? Tu ne l'aurais pas modifié sans le vouloir ?
Non.
Je vais réinstaller asymptote, et je vous tiendrai au courant.
@+
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Re,
Avant de tout réinstaller, j'ai tenté une mise à jour ; toujours le même problème !
OG
Modérateur spécialisé
Modérateur spécialisé
Messages : 2293
Inscription : lundi 12 mars 2007, 11:20
Localisation : Rouen

Re: Bogue avec le module three ?

Message non lu par OG »

Bonsoir

Bizarre. Pourrais-tu
Vider le répertoire svn (y compris le répertoire gc-7.1 mais laisser gc-7.1.tar.gz),
compiler asymptote, nous montrer le résultat de ./configure.
Dans un répertoire ne contenant que le fichier plan1.asy (ou l'exemple mis plus haut)
nous montrer le résultat de asy -vv plan1.asy

en prc ? avec -render=0 ?

O.G.
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Bonsoir,
OG a écrit :nous montrer le résultat de ./configure.

Code : Tout sélectionner

fab@debian:~$ cd Software/Asymptote/asymptote/
fab@debian:~/Software/Asymptote/asymptote$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for kpsewhich... true
checking for kpsewhich... (cached) true
checking for texi2dvi... texi2dvi
configure: Using /usr/local/texlive/2010/../texmf-local/tex/latex/asymptote for LaTeX style file
configure: Using /usr/local/texlive/2010/../texmf-local/tex/context/third/asymptote for ConTeXT style file
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether make sets $(MAKE)... yes
checking for bison... bison -y
checking how to run the C++ preprocessor... g++ -E
checking tr1/unordered_map usability... yes
checking tr1/unordered_map presence... yes
checking for tr1/unordered_map... yes
checking for gc-7.1.tar.gz... yes
configure: enabling local Boehm Garbage Collector gc-7.1
checking for getopt_long_only... yes
checking for setupterm in -lncurses... yes
checking for sqrt in -lm... yes
checking for deflate in -lz... yes
checking for pthread_create in -lpthread... yes
checking for stackoverflow_install_handler in -lsigsegv... yes
checking for sched_yield in -lrt... yes
checking for rl_completion_matches in -lreadline... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking fpu_control.h usability... yes
checking fpu_control.h presence... yes
checking for fpu_control.h... yes
checking for library containing xdrstdio_create... none required
checking gsl/gsl_sf.h usability... yes
checking gsl/gsl_sf.h presence... yes
checking for gsl/gsl_sf.h... yes
checking for gsl_sf_debye_6 in -lgsl... yes
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
checking for fftw_execute in -lfftw3... yes
checking for glutMainLoop in -lglut... yes
checking for gluNewNurbsRenderer in -lGLU... yes
checking for glDepthMask in -lGL... yes
checking for pid_t... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking for long long... yes
checking for long... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for dup2... yes
checking for floor... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for tgamma... yes
checking for strftime... yes
checking for strptime... yes
checking for error_at_line... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/png/Makefile
config.status: creating config.h
config.status: config.h is unchanged
checking for gc-7.1.tar.gz... (cached) yes
fab@debian:~/Software/Asymptote/asymptote$ 
OG a écrit :Dans un répertoire ne contenant que le fichier plan1.asy (ou l'exemple mis plus haut)

Code : Tout sélectionner

fab@debian:~$ cd essai
fab@debian:~/essai$ asy -vv gm.asy 
Using configuration directory /home/fab/.asy
Loading config.asy from /home/fab/.asy/config.asy
cd /home/fab/essai
Processing gm
Loading plain from /usr/local/share/asymptote/plain.asy
Including plain_constants from /usr/local/share/asymptote/plain_constants.asy
Loading version from /usr/local/share/asymptote/version.asy
Including plain_strings from /usr/local/share/asymptote/plain_strings.asy
Including plain_pens from /usr/local/share/asymptote/plain_pens.asy
Including plain_paths from /usr/local/share/asymptote/plain_paths.asy
Including plain_filldraw from /usr/local/share/asymptote/plain_filldraw.asy
Including plain_margins from /usr/local/share/asymptote/plain_margins.asy
Including plain_picture from /usr/local/share/asymptote/plain_picture.asy
Loading plain_scaling from /usr/local/share/asymptote/plain_scaling.asy
Loading simplex from /usr/local/share/asymptote/simplex.asy
Loading plain_bounds from /usr/local/share/asymptote/plain_bounds.asy
Including plain_scaling from /usr/local/share/asymptote/plain_scaling.asy
Including plain_prethree from /usr/local/share/asymptote/plain_prethree.asy
Including plain_Label from /usr/local/share/asymptote/plain_Label.asy
Including plain_shipout from /usr/local/share/asymptote/plain_shipout.asy
Including plain_xasy from /usr/local/share/asymptote/plain_xasy.asy
Including plain_arcs from /usr/local/share/asymptote/plain_arcs.asy
Including plain_boxes from /usr/local/share/asymptote/plain_boxes.asy
Including plain_markers from /usr/local/share/asymptote/plain_markers.asy
Including plain_arrows from /usr/local/share/asymptote/plain_arrows.asy
Including plain_debugger from /usr/local/share/asymptote/plain_debugger.asy
Loading gm.asy from gm.asy
Loading solids from /usr/local/share/asymptote/solids.asy
Loading graph3 from /usr/local/share/asymptote/graph3.asy
Loading math from /usr/local/share/asymptote/math.asy
Loading graph from /usr/local/share/asymptote/graph.asy
Loading graph_splinetype from /usr/local/share/asymptote/graph_splinetype.asy
Loading graph_settings from /usr/local/share/asymptote/graph_settings.asy
Loading three from /usr/local/share/asymptote/three.asy
Loading embed from /usr/local/share/asymptote/embed.asy
Including three_light from /usr/local/share/asymptote/three_light.asy
Including three_surface from /usr/local/share/asymptote/three_surface.asy
Loading bezulate from /usr/local/share/asymptote/bezulate.asy
Loading interpolate from /usr/local/share/asymptote/interpolate.asy
Including three_margins from /usr/local/share/asymptote/three_margins.asy
Including three_tube from /usr/local/share/asymptote/three_tube.asy
Including three_arrows from /usr/local/share/asymptote/three_arrows.asy
latex \scrollmode
latex \nonstopmode\input gm_.tex
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ba
sque, ukenglish, usenglishmax, french, loaded.

(./gm_.tex (/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size12.clo))
No file gm_.aux.
[1] [2] [3] (./gm_.aux) )
Output written on gm_.dvi (3 pages, 2312 bytes).
Transcript written on gm_.log.
dvips -R -Pdownload35 -D600 -q -ogm_.ps gm_.dvi
gs -q -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile=/dev/null gm_.ps
Exporting gm as 852x1184 image using tiles of size 852x1184
1 tile drawn
Wrote gm.eps
nous montrer le résultat de asy -vv plan1.asy
Cela semble fonctionner même si, bizarrement, le fichier gm.asy.log est vide !
Pourquoi ???
Merci.
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Bonjour à tous,
Je ne peux plus enregistrer un fichier essai.asy dans mon home (sinon problèmes à la compilation), mais je dois systématiquement créer un répertoire essai (merci OG) et y placer mon fichier essai.asy :?:
C'est quand même curieux !
OG
Modérateur spécialisé
Modérateur spécialisé
Messages : 2293
Inscription : lundi 12 mars 2007, 11:20
Localisation : Rouen

Re: Bogue avec le module three ?

Message non lu par OG »

Bonsoir

Bizarre bizarre (...)
Pas de problème d'autorisation, de propriétaires ?

J'espère que tu as le droit à autre répertoire que essai ?
Que donne asy -vv pour un fichier dans ton home ?

Là je dirais que travailler avec une Debian Sid demande une bonne expérience
Linux. Et comme Squeeze est sortie l'activité Sid reprend...

O.G.
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Bonsoir,

Code : Tout sélectionner

fab@debian:~$ asy -vv essai1.asy
Using configuration directory /home/fab/.asy
Loading config.asy from /home/fab/.asy/config.asy
cd /home/fab
Processing essai1
Loading plain from /usr/local/share/asymptote/plain.asy
Including plain_constants from /usr/local/share/asymptote/plain_constants.asy
Loading version from /usr/local/share/asymptote/version.asy
Including plain_strings from /usr/local/share/asymptote/plain_strings.asy
Including plain_pens from /usr/local/share/asymptote/plain_pens.asy
Including plain_paths from /usr/local/share/asymptote/plain_paths.asy
Including plain_filldraw from /usr/local/share/asymptote/plain_filldraw.asy
Including plain_margins from /usr/local/share/asymptote/plain_margins.asy
Including plain_picture from /usr/local/share/asymptote/plain_picture.asy
Loading plain_scaling from /usr/local/share/asymptote/plain_scaling.asy
Loading simplex from /usr/local/share/asymptote/simplex.asy
Loading plain_bounds from /usr/local/share/asymptote/plain_bounds.asy
Including plain_scaling from /usr/local/share/asymptote/plain_scaling.asy
Including plain_prethree from /usr/local/share/asymptote/plain_prethree.asy
Including plain_Label from /usr/local/share/asymptote/plain_Label.asy
Including plain_shipout from /usr/local/share/asymptote/plain_shipout.asy
Including plain_xasy from /usr/local/share/asymptote/plain_xasy.asy
Including plain_arcs from /usr/local/share/asymptote/plain_arcs.asy
Including plain_boxes from /usr/local/share/asymptote/plain_boxes.asy
Including plain_markers from /usr/local/share/asymptote/plain_markers.asy
Including plain_arrows from /usr/local/share/asymptote/plain_arrows.asy
Including plain_debugger from /usr/local/share/asymptote/plain_debugger.asy
Loading essai1.asy from essai1.asy
Loading geometry from /usr/local/share/asymptote/geometry.asy
Loading math from math.asy
Loading animate from /usr/local/share/asymptote/animate.asy
Loading animation from /usr/local/share/asymptote/animation.asy
Loading markers from /usr/local/share/asymptote/markers.asy
/usr/local/share/asymptote/geometry.asy: 337.3: no matching variable 'drawline'
/usr/local/share/asymptote/geometry.asy: 338.3: no matching variable 'drawline'
/usr/local/share/asymptote/geometry.asy: 2416.17: no matching variable 'quarticroots'
/usr/local/share/asymptote/geometry.asy: 2996.38: no matching variable 'acot'
/usr/local/share/asymptote/geometry.asy: 3081.38: no matching variable 'acot'
/usr/local/share/asymptote/geometry.asy: 3169.38: no matching variable 'acot'
fab@debian:~$ 
Ce qui est curieux aussi, c'est que les fichiers asy.log sont vides.
OG
Modérateur spécialisé
Modérateur spécialisé
Messages : 2293
Inscription : lundi 12 mars 2007, 11:20
Localisation : Rouen

Re: Bogue avec le module three ?

Message non lu par OG »

Attention tu as un math.asy qui traine dans ton home !

Pour les fichiers log, il me semble que asy ne fournit pas de fichier.asy.log non ?

O.G.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Bogue avec le module three ?

Message non lu par GMaths »

OG a écrit :Attention tu as un math.asy qui traine dans ton home !
Tiens, cela me rappelle quelque chose. :roll: :mrgreen:
GMaths a écrit :
GMaths a écrit :tu n'aurais pas un fichier three.asy dans le dossier courant... qui prendrait le pas sur celui de la distribution ?
Même question pour 'math' !
car increasing est défini dans math.asy.
Fabrice Couvreur
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 604
Inscription : samedi 18 août 2007, 01:55

Re: Bogue avec le module three ?

Message non lu par Fabrice Couvreur »

Bonjour,
OG a écrit :Attention tu as un math.asy qui traine dans ton home !

Pour les fichiers log, il me semble que asy ne fournit pas de fichier.asy.log non ?

O.G.
Effectivement, ce fichier existe, je l'ai créé pour répondre sur le forum ("animation avec asymptote").
Pardon pour le dérangement !
Merci.
Répondre
  • Sujets similaires
    Réponses
    Vues
    Dernier message