ImportError: No module named multipli

yahya Kacem fuj.tyoli at gmail.com
Sun Mar 24 12:03:52 EDT 2013


On Sunday, March 24, 2013 4:35:29 PM UTC+1, yahya Kacem wrote:
> Hi, i have this 2 files:
> 
> 
> 
> file named multipli:
> 
> 
> 
>     #!/usr/bin/python3.2
> 
>     #-* - coding : utf-8 -*
> 
>     def table(nb, max):
> 
>       i = 0
> 
>       while i < max:
> 
>         print(i + 1, " * ", nb, "= ", (i + 1) * nb)
> 
> 
> 
> and file naled test:
> 
> 
> 
>     #!/usr/bin/python3.2
> 
>     # -* - coding : utf-8 -*
> 
>     import os
> 
>     import sys
> 
>     from multipli import table
> 
>     table(3, 20)
> 
>     os.system("pause")
> 
> 
> 
> when i run this:
> 
> 
> 
>     python3 test
> 
> 
> 
> I get this error:
> 
>     Traceback (most recent call last):
> 
>       File "test", line 5, in <module>
> 
>         from multipli import table
> 
>     ImportError: No module named multipli 
> 
> both files are in the same directory.
> 
> any help thanks in advance.

Thanks that did it.



More information about the Python-list mailing list