Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44843
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <malaclypse2@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.048 |
| X-Spam-Evidence | '*H*': 0.90; '*S*': 0.00; 'indicates': 0.09; 'subject:script': 0.09; "'client',": 0.16; 'help?': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'email addr:gmail.com>': 0.22; 'error': 0.23; 'config': 0.24; 'script.': 0.24; 'mon,': 0.24; 'looks': 0.24; 'skip:" 30': 0.26; 'header:In-Reply-To:1': 0.27; 'raise': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'getting': 0.31; 'username': 0.31; 'anyone': 0.31; 'file': 0.32; 'option': 0.32; 'linux': 0.33; 'running': 0.33; '(most': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'object,': 0.36; 'to:addr:python- list': 0.38; 'files': 0.38; 'pm,': 0.38; 'recent': 0.39; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'simple': 0.61; "you've": 0.63; 'configparser': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Iw+cpgV9sgibLhe4W9ldOWBhrBV+QttgNC1BvfD50Iw=; b=aTN53PZ+Y7O7nDDSxH+wJAYOFEkGmu9JmnUuFtprORo2IkIWmryEEizUPp3ruszvKh TpToC0Z6pILer0z3ejSmB8XT7Cx86hEB9HHXAdE0rwcmx+SOW93541HNW/SstXJPnoGC PmuMf7I4BlNS4nuErvuEEcDcDweANeCwgpaipkNCdtMMulcN2LaxEjjUuhDe/zP9sPyk mSMLQwO5vfRIsWNb8UCsi7OcqEG7OHaHENqbJlGQMGnasRT4+ojEXt87pLQaoylRW3WF zzqh1/AXNmnJurkU+1V5wEFrvHGihGRFGfUFzYtREOS+XncHpqBXEzYLBfV2SUWAxZLT n5Gg== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.171.196 with SMTP id aw4mr26984338pbc.78.1367867493550; Mon, 06 May 2013 12:11:33 -0700 (PDT) |
| In-Reply-To | <b586db98-78b2-40a6-9e1c-3d8b939657c8@googlegroups.com> |
| References | <b586db98-78b2-40a6-9e1c-3d8b939657c8@googlegroups.com> |
| Date | Mon, 6 May 2013 15:11:33 -0400 |
| Subject | Re: python backup script |
| From | Jerry Hill <malaclypse2@gmail.com> |
| To | "python-list (General)" <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=047d7bacb5160d92bc04dc11786f |
| 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.1371.1367867496.3114.python-list@python.org> (permalink) |
| Lines | 64 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1367867496 news.xs4all.nl 16010 [2001:888:2000:d::a6]:37532 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:44843 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Mon, May 6, 2013 at 3:01 PM, MMZ <programmer.toronto@gmail.com> wrote:
> I am trying to backup database on CentOS linux server,I'm getting error
> when running the following script. anyone can help?
>
> Traceback (most recent call last):
> File "./backup.py", line 8, in ?
> username = config.get('client', 'mmz')
> File "/usr/lib/python2.4/ConfigParser.py", line 511, in get
> raise NoSectionError(section)
>
I've never used ConfigParser, but that
error message looks pretty simple to interpret. You've set up a
ConfigParser object, told it to read in ~/my.cnf, the asked for the value
of section 'client', option 'mmz'. The error indicates that your config
files doesn't have a section named 'client'.
What is the content of your ~/my.cnf file?
--
Jerry
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python backup script MMZ <programmer.toronto@gmail.com> - 2013-05-06 12:01 -0700
Re: python backup script Jerry Hill <malaclypse2@gmail.com> - 2013-05-06 15:11 -0400
Re: python backup script MMZ <programmer.toronto@gmail.com> - 2013-05-06 12:20 -0700
Re: python backup script Matt Jones <matt.walker.jones@gmail.com> - 2013-05-06 14:46 -0500
Re: python backup script MMZ <programmer.toronto@gmail.com> - 2013-05-06 13:37 -0700
Re: python backup script Matt Jones <matt.walker.jones@gmail.com> - 2013-05-06 16:08 -0500
Re: python backup script Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2013-05-06 23:44 +0200
Re: python backup script Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2013-05-06 23:48 +0200
Re: python backup script mina@socialassets.org - 2013-05-06 15:12 -0700
Re: python backup script John Gordon <gordon@panix.com> - 2013-05-06 22:15 +0000
Re: python backup script Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2013-05-07 21:11 +0200
Re: python backup script MRAB <python@mrabarnett.plus.com> - 2013-05-06 23:28 +0100
Re: python backup script MMZ <programmer.toronto@gmail.com> - 2013-05-06 15:15 -0700
Re: python backup script Chris Angelico <rosuav@gmail.com> - 2013-05-07 08:12 +1000
Re: python backup script MMZ <programmer.toronto@gmail.com> - 2013-05-06 15:40 -0700
Re: python backup script Chris Angelico <rosuav@gmail.com> - 2013-05-07 08:51 +1000
Re: python backup script MRAB <python@mrabarnett.plus.com> - 2013-05-06 23:52 +0100
Re: python backup script Peter Otten <__peter__@web.de> - 2013-05-07 08:18 +0200
csiph-web