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


Groups > comp.lang.python > #99401

Re: import logging raise NotImplementedError

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: import logging raise NotImplementedError
Date 2015-11-25 09:00 +1100
Message-ID <mailman.39.1448402449.20593.python-list@python.org> (permalink)
References <3p4xjG0FzSz5vN9@dovecot03.posteo.de>

Show all headers | 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