Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41787
| References | <2c7cb491-62d7-43f6-a1fd-ea8ea8833cda@googlegroups.com> |
|---|---|
| From | Kwpolska <kwpolska@gmail.com> |
| Date | 2013-03-24 16:46 +0100 |
| Subject | Re: ImportError: No module named multipli |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3671.1364140014.2939.python-list@python.org> (permalink) |
On Sun, Mar 24, 2013 at 4:35 PM, yahya Kacem <fuj.tyoli@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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