Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41786

ImportError: No module named multipli

Newsgroups comp.lang.python
Date 2013-03-24 08:35 -0700
Message-ID <2c7cb491-62d7-43f6-a1fd-ea8ea8833cda@googlegroups.com> (permalink)
Subject ImportError: No module named multipli
From yahya Kacem <fuj.tyoli@gmail.com>

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

ImportError: No module named multipli yahya Kacem <fuj.tyoli@gmail.com> - 2013-03-24 08:35 -0700
  Re: ImportError: No module named multipli Kwpolska <kwpolska@gmail.com> - 2013-03-24 16:46 +0100
  Re: ImportError: No module named multipli Chris Angelico <rosuav@gmail.com> - 2013-03-25 02:48 +1100
  Re: ImportError: No module named multipli yahya Kacem <fuj.tyoli@gmail.com> - 2013-03-24 09:03 -0700
    Re: ImportError: No module named multipli Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 16:19 +0000
  Re: ImportError: No module named multipli Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 16:10 +0000
  Re: ImportError: No module named multipli Chris Angelico <rosuav@gmail.com> - 2013-03-25 03:15 +1100
  Re: ImportError: No module named multipli yahya Kacem <fuj.tyoli@gmail.com> - 2013-03-24 16:06 -0700
  Re: ImportError: No module named multipli yahya Kacem <fuj.tyoli@gmail.com> - 2013-03-24 16:12 -0700

csiph-web