Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'error:': 0.05; 'importerror:': 0.05; 'python3': 0.05; 'sys': 0.05; 'utf-8': 0.07; 'files:': 0.09; 'subject:module': 0.09; 'cc:addr:python-list': 0.10; 'def': 0.10; 'skip:# 20': 0.13; 'advance.': 0.15; '20)': 0.16; '24,': 0.16; '4:35': 0.16; 'gpg': 0.16; 'max:': 0.16; 'wrote:': 0.17; 'directory.': 0.17; 'module': 0.19; 'import': 0.21; 'cc:2**0': 0.23; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; '(most': 0.27; 'coding': 0.27; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'url:mailman': 0.29; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'traceback': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'table': 0.35; 'url:org': 0.36; 'test': 0.36; 'subject:: ': 0.38; 'files': 0.38; 'help': 0.40; 'url:mail': 0.40; '2013': 0.84; 'multipli': 0.84; 'url:tk': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=MLWG4NlddgMa1I0NIuDccP1qg9BUTSwK0fRYGhbsRyY=; b=DYI7e3KpG48zqOOidwbjVVUzT3ANwAxIAwD3W1EQxpYVjMdyincZTnmXS7zj7dKSkH FW1yoRivzAZJMZ+AW4BRLWrzviU1qra64pkHurjrKn7QSGFCCxJV4yFKWAMuDFpU4/ud K1P42KZXJ1hXw0teB6HY9Z/OfE+DsXVTC9P2d7zOX8ARtQckvJJRp1ZPZUSzUBz/NQ38 R/jiKjG4BU3zPcNpS7IEJlOXIVQzEwAntNIPVhj0Ws2occ+heYnPffpD0b0ptwH3u6WW QGWq8rLeyet20WgQrTPf2MPowsXlJSzMOkDIxG2s/os6YU83LWiej95XS9nm/OGp1WHx onmA== X-Received: by 10.43.103.195 with SMTP id dj3mr4909392icc.3.1364140004783; Sun, 24 Mar 2013 08:46:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <2c7cb491-62d7-43f6-a1fd-ea8ea8833cda@googlegroups.com> References: <2c7cb491-62d7-43f6-a1fd-ea8ea8833cda@googlegroups.com> From: Kwpolska Date: Sun, 24 Mar 2013 16:46:24 +0100 Subject: Re: ImportError: No module named multipli To: yahya Kacem Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364140014 news.xs4all.nl 6931 [2001:888:2000:d::a6]:49038 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41787 On Sun, Mar 24, 2013 at 4:35 PM, 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 > 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 | GPG KEY: 5EAAEA16 stop html mail | always bottom-post http://asciiribbon.org | http://caliburn.nl/topposting.html