Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99401

Re: import logging raise NotImplementedError

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: import logging raise NotImplementedError
Date Wed, 25 Nov 2015 09:00:46 +1100
Lines 14
Message-ID <mailman.39.1448402449.20593.python-list@python.org> (permalink)
References <3p4xjG0FzSz5vN9@dovecot03.posteo.de>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de j31c/EWtMcDXdYXsB0Ping7LmHl5nUuVxbEVtjD228zA==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'installed.': 0.05; 'python3': 0.05; 'cc:addr:python-list': 0.09; 'python': 0.10; 'wed,': 0.15; 'importing': 0.15; '"new': 0.16; '2.2,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:import': 0.16; 'sudo': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'appear': 0.26; 'command': 0.26; 'installed': 0.26; 'logging': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'too.': 0.30; 'problem': 0.33; 'directory,': 0.33; 'received:google.com': 0.35; 'installing': 0.35; 'nov': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'version': 0.38; 'received:209': 0.38; "didn't": 0.39; 'your': 0.60; 'default': 0.61; 'chrisa': 0.84; 'pip': 0.84; 'to:none': 0.91; 'subject:skip:N 10': 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:cc :content-type; bh=fNeGA5iEObEBa6FQ2heOI8CZAZBY48IJQvJkeuTpso4=; b=kH29ZwlHBIdQQ/JIzORo2HXPUkuTUSiGwosCddv5KsEB4it7at1uspp+fat3D+rJE7 3Z87XsqSOjNwh+foTCQ+TOymvbDcdOyvqFH3oIV917BlNij4O9FuFnQg5LdDELwunWZM AKWAeZZHbenXdP+HhxmzgMrq/GE7pdUjOJM9kPUbnTFv1G4dFs3iX7PSS22xvPvdGl4i h46lPHEqnhow1tynaZfRWmQsYy2P5v2x8s0omR2RvAc25DiTrLiZpFwj/um0tkCcp1sF Z8j0Hra/i/H3lo1uDGLeFj0RSjDcxkuWI+vU5bhOTRCGOryNc1VVZ1k+R1rYccqzKfeD IQKA==
X-Received by 10.107.10.233 with SMTP id 102mr31917821iok.31.1448402446495; Tue, 24 Nov 2015 14:00:46 -0800 (PST)
In-Reply-To <3p4xjG0FzSz5vN9@dovecot03.posteo.de>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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>
Xref csiph.com comp.lang.python:99401

Show key headers only | View raw


On Wed, Nov 25, 2015 at 7:27 AM,  <c.buhtz@posteo.jp> wrote:
> The problem happens with Python3 because "logging" is in the default
> installation. In Python2 it is not installed. I installed it with
>    sudo python2 -m pip install logging -U
>
> This works without problems. Importing in Python2 works, too.

You appear to have installed it into your Python 3.4's package
directory, so I suspect you didn't just use the command given. But
don't bother installing it in Py2 either - the docs say it's "New in
version 2.3", so unless you're supporting Python 2.2, you shouldn't
need to worry about this.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: import logging raise NotImplementedError Chris Angelico <rosuav@gmail.com> - 2015-11-25 09:00 +1100

csiph-web