Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106952
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Igor Korot <ikorot01@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: IdentationError; unexpected indent |
| Date | Wed, 13 Apr 2016 12:02:13 -0400 |
| Lines | 48 |
| Message-ID | <mailman.80.1460563342.15650.python-list@python.org> (permalink) |
| References | <CABcnvxeMTSBd7EpjpiguRovHebn13N71KcxvJmuik1qfM7Rn1w@mail.gmail.com> <CA+FnnTyDm2E4W7HGR9EOew4v8fTUm7h+7f5T7+7GegWxkO5GbA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de 8IkuplmTWpDSOmxNI0sDLQApMpjOBBsbbzs3MnMGaYIQ== |
| Return-Path | <ikorot01@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'editor.': 0.09; 'unexpected': 0.09; 'python': 0.10; 'wed,': 0.15; "'*'": 0.16; '2016': 0.16; 'dist': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'tabs': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '(see': 0.20; 'please?': 0.22; 'skip:* 50': 0.22; 'am,': 0.23; 'appears': 0.23; 'code,': 0.23; 'advance.': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'executing': 0.27; 'correct': 0.28; 'skip:( 20': 0.28; '13,': 0.29; 'symbols': 0.29; 'print': 0.30; 'url:mailman': 0.30; 'code': 0.30; 'run': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'skip:d 20': 0.34; 'received:google.com': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'skip:p 20': 0.38; 'thank': 0.38; 'hi,': 0.38; 'url:mail': 0.40; 'you.': 0.64; '2.7.': 0.84; 'edge,': 0.84; '*for': 0.91; 'subject:; ': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=INmbtQgBeYbGKso+1K35x5IaYT8pDCaORySF+wQa8N8=; b=MdFTn+97Q/kZp43KDuFKyZFYo1LrjXDSq80EmcMJhSQfPpkV5XiIcCC4jaFHBeLsQM iOuJWOvDz2d19wMqiXgRGXM2ceSSOyXAZJl+UjmhwpDzxWwuA673xm0zUbh5bEjE9YyN mtFW1VxY0hxvtGnfsxsi1BjEUl2+hy3kW2Evqqw7BKVlGcaBzEATEMJKuzxX3eJ9jT1u FXTLuC9sWZwGhi1Q045Ik+zWdSNU/vjR26X8uXwMiXcNDNpKM7fg6P0Kk+EgzhiJwp5U LglPiL8pTkJU5b3s7NQSCDIC1L5gbPtHzx/mwOMIC+fyAh88rXmugjoybh7O3RsE/yXa hnLQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=INmbtQgBeYbGKso+1K35x5IaYT8pDCaORySF+wQa8N8=; b=V77G6K6t6NHQgCFFCROsJk54vudS9ZPcZ/w/iiuETBk/pCT+ZWzF0uSHEZXZtqHDeh rsCO5SbEVcWmd9/DJo7NZKPlp9ggRPiSeACYLB9w3iF/VQtXYsAx3lNY+rMSGIg01gql bC7VDhNNDZY9L9sKUJ1b3NYCVFI08EqUstYAfGkLz0B9bZjWx8MVSo5rCx7aZ5W74YOn VNTg0402r1DFKM21/Na4V4QrKLtOoCE7oNYJosxC5KH6tK+tGrOYFb0PjSQ65McdW1OS 1rMCh2N6JdVvLicNtbGPBLL0fudJgzjbUaqSyNhWE+s3qySbrfTL8fWLVcBmOfgWHtGp jotw== |
| X-Gm-Message-State | AOPr4FUPmT3ZJtWQUoFrv3b5NXvjGIwAJ4SdlvmbmRbqwClZ8hHONoXcbGMJChNzovVybGBQLF4oW9ITOpXXkQ== |
| X-Received | by 10.31.21.146 with SMTP id 140mr5139646vkv.134.1460563333270; Wed, 13 Apr 2016 09:02:13 -0700 (PDT) |
| In-Reply-To | <CABcnvxeMTSBd7EpjpiguRovHebn13N71KcxvJmuik1qfM7Rn1w@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CA+FnnTyDm2E4W7HGR9EOew4v8fTUm7h+7f5T7+7GegWxkO5GbA@mail.gmail.com> |
| X-Mailman-Original-References | <CABcnvxeMTSBd7EpjpiguRovHebn13N71KcxvJmuik1qfM7Rn1w@mail.gmail.com> |
| Xref | csiph.com comp.lang.python:106952 |
Show key headers only | View raw
Hi, Salma,
On Wed, Apr 13, 2016 at 11:53 AM, salma ammar <ammarsalma118@gmail.com> wrote:
> Hi,
>
> I am about to run this code using python 2.7. But when executing this code,
> an error appears (see attachement): IdentationError; unexpected indent
>
> What should I rectify to correct this error please?
>
>
> *import sys*
> *sys.path.append('C:/Users/user/src/sumo-0.22.0/tools')*
> *import sumolib*
> *net =
> sumolib.net.readNet("C:/Users/user/src/sumo-0.22.0/tools/sumolib/net/qgislyonvelo.net.xml")*
> *radius = 0*
> *f = open("C:/fichierstations.txt", "r")*
>
> *contenu = f.read()*
>
> *print(contenu)*
> *for id, lat, lon in f:*
> * x, y = net.convertLonLat2XY(lon, lat)*
> * print(x, y)*
> * edges = net.getNeighboringEdges(x, y, radius)*
> * print (edges)*
> * while len(edges) == 0:*
> * radius = radius + 10*
> * edges = net.getNeighboringEdges(x, y, radius)*
> * distancesAndEdges = sorted([(dist, edge) for edge, dist in edges])*
> * print(distancesAndEdges)*
> * edgeofstation[id] = distancesAndEdges[0]*
> * print (edgeofstation[id])*
> *f.close()*
What are those '*' symbols in the e-mails?
Are they hard tabs or something else?
Please copy and paste the script from the editor.
Thank you.
>
>
> Thank you in advance.
> --
> https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: IdentationError; unexpected indent Igor Korot <ikorot01@gmail.com> - 2016-04-13 12:02 -0400
csiph-web