Salve. Ho installato il modulo "tkSnack" con Software Center; convertito con 2to3 ed importato correttamente in uno script:

import tkinter as tk
from tkSnack import *

Ricevo questo errore:

File ".../Sorgenti/tkSnack-Example.py", line 105, in <module> builtins. ImportError: No module named 'tkSnack'

La cosa che non quadra é che se da shell entro nella dir '/usr/share/pyshared' dove é contenuto il modulo in questione ed importo il modulo in modo interattivo non ricevo alcun errore:

[12:13:29] amedeo@amedeo-P5Q:/usr/share/pyshared$ python3.3
Python 3.3.2+ (default, Oct  9 2013, 14:50:09)
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tkSnack import *
>>>

come mai la dir '/usr/share/pyshared' non é nel PATH? Come risolvere?

--
Dr.Cuga

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a