[Linux-bruxelles] python importError

nicolas maleve copy.cult at constantvzw.com
Mer 14 Avr 11:22:08 CEST 2004


mmmh je me réponds à moi-même:

la doc:

"
Snack is accessed using the tkSnack module located in the python directory
of the source distribution.
You need to have the file tkSnack.py in your Python path. The installer
should put this file in your Lib directory, search for it and move it by
hand it this installation step failed.
If you have several versions of Python installed on your system the Snack
installer will first look for the Python 2.2 installation and put the
files there. Otherwise, it will search for version 2.1, 2.0, and 1.6. It
will currently not install for multiple versions, so in this case you will
have to move the files by hand.

".
++---- nicolas maleve said ----++
> bonjour,
>
> je fais mes débuts en python.
> Jusqu'à présent, tous mes imports ont fonctionné sous la forme de
> from tkinter import* , etc.
> J'ai installé via apt une librairie nommée snack qui permet de traiter des
> fichiers sons.
> Lorsque j'importe cette librairie sous la forme de  from tkSnack import *
> dans un répertoire d'exemples: genre
> /usr/share/doc/examples/python/monexample.py, pas de probleme.
> Mais lorsque je le lance depuis un répertoire utilisateur (/home/nicolas),
> j'ai l'erreur suivante:
>
> Traceback (most recent call last):
>   File "./echo2.py", line 4, in ?
>     from tkSnack import *
> ImportError: No module named tkSnack
>
> y a-t'il une methode simple pour rendre accessible ces modules?
>
>
>
>          *
>     *
>   *
>   *
>    *
>      *
>        *
>           *
>               *
>                   C O N S T A N T
>                        V Z W
>
>
>
>
> --
> Linux-bruxelles mailing list
> Linux-bruxelles at lists.bxlug.be
> http://lists.bxlug.be/mailman/listinfo/linux-bruxelles
>


         *
    *
  *
  *
   *
     *
       *
          *
              *
                  C O N S T A N T
                       V Z W







Plus d'informations sur la liste de diffusion Linux-bruxelles