ImportError: No module named multipli

Kwpolska kwpolska at gmail.com
Sun Mar 24 11:46:24 EDT 2013


On Sun, Mar 24, 2013 at 4:35 PM, yahya Kacem <fuj.tyoli at gmail.com> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list

make them test.py and multipli.py.

-- 
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html



More information about the Python-list mailing list