Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52343
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <devyncjohnson@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'syntax': 0.04; 'string.': 0.05; 'found,': 0.07; 'python3': 0.07; 'subject:Error': 0.07; 'def': 0.12; "'');": 0.16; 'py_compile': 0.16; 'syntaxerror:': 0.16; 'variable': 0.18; 'module': 0.19; 'header:User-Agent:1': 0.23; 'config': 0.24; 'errors.': 0.24; 'script': 0.25; 'function': 0.29; 'received:10.0.0': 0.31; 'file:': 0.31; 'file': 0.32; 'checking': 0.33; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'skip:j 20': 0.36; 'subject:?': 0.36; 'received:10.0': 0.36; 'error.': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'skip:. 10': 0.39; 'to:addr:python.org': 0.39; 'commands': 0.60; 'skip:* 10': 0.61; 'email addr:gmail.com': 0.63; 'here': 0.66; 'invalid': 0.68; 'skip:m 50': 0.68; 'containing': 0.69; 'default': 0.69 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=jjp2EEHFJyg2zIGpH9x8IYR6xJPhtSsLA25BKqeHuVc=; b=K0haChB4od2rfpqKU1c+t9AYs5f4eQDmucwAM/n5JpCVsqVe+12qq2sGOHq/Vdeayf yWrfUq6rT+bVxXGJfRCitE1itT50Xb9KGIToHF+h5J9TABtsssDC3LSM/OECyw7FiTzZ y3K1d7eX9WCQ7CElFlNGBLIlOL/B0fKJqedu60g3dBNAdcBaKtIhxynEBWzCgKsejkk1 4ekl/KCVqmFFnJTB1SJe+6pE3NcJr/TGFuBhDpM7KXiqmFKr4YOPD3mCa2d82u/p5ETw aSeSjK0Dnpsd24o9MJvbBe4AJD7lyUgosB1fuRwVrzUUd8CTdLq1tZi8DWHygf4v6pos 2X3g== |
| X-Received | by 10.50.11.46 with SMTP id n14mr5556773igb.15.1376187566090; Sat, 10 Aug 2013 19:19:26 -0700 (PDT) |
| Date | Sat, 10 Aug 2013 22:19:23 -0400 |
| From | Devyn Collier Johnson <devyncjohnson@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 |
| MIME-Version | 1.0 |
| To | Python Mailing List <python-list@python.org> |
| Subject | Am I not seeing the Error? |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.451.1376187574.1251.python-list@python.org> (permalink) |
| Lines | 35 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1376187574 news.xs4all.nl 15929 [2001:888:2000:d::a6]:52183 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52343 |
Show key headers only | View raw
I am checking my 1292-line script for syntax errors. I ran the following
commands in a terminal to check for errors, but I do not see the error.
collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m py_compile
./beta_engine
File "./beta_engine", line 344
JOB_WRITEURGFILES =
multiprocessing.Process(write2file('./mem/ENGINE_PID', ENGINEPID);
write2file(SENTEMPPATH, ''); write2file(INPUTMEM, ''));
JOB_WRITEURGFILES.start()
^
SyntaxError: invalid syntax
collier@Nacho-Laptop:/media/collier/AI/Pysh$ pylint ./beta_engine
No config file found, using default configuration
************* Module beta_engine
E:344,0: invalid syntax
Here is line 344:
JOB_WRITEURGFILES =
multiprocessing.Process(write2file('./mem/ENGINE_PID', ENGINEPID);
write2file(SENTEMPPATH, ''); write2file(INPUTMEM, ''));
JOB_WRITEURGFILES.start()
The ENGINEPID is a variable containing a string. My write2file function is
def write2file(openfile, WRITE):
with open(openfile, 'rw') as file:
file.write(WRITE)
Mahalo,
DevynCJohnson@Gmail.com
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-10 22:19 -0400
Re: Am I not seeing the Error? John Gordon <gordon@panix.com> - 2013-08-12 14:47 +0000
Re: Am I not seeing the Error? Denis McMahon <denismfmcmahon@gmail.com> - 2013-08-13 20:28 +0000
Re: Am I not seeing the Error? Dave Angel <davea@davea.name> - 2013-08-13 21:16 +0000
Re: Am I not seeing the Error? MRAB <python@mrabarnett.plus.com> - 2013-08-14 00:44 +0100
Re: Am I not seeing the Error? Ned Batchelder <ned@nedbatchelder.com> - 2013-08-13 20:00 -0400
Re: Am I not seeing the Error? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-08-14 13:20 +1200
Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-14 07:59 +0100
Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-14 13:07 +0100
Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-14 08:39 -0400
Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-14 13:34 +0100
csiph-web