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


Groups > comp.lang.python > #99401 > unrolled thread

Re: import logging raise NotImplementedError

Started byChris Angelico <rosuav@gmail.com>
First post2015-11-25 09:00 +1100
Last post2015-11-25 09:00 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#99401 — Re: import logging raise NotImplementedError

FromChris Angelico <rosuav@gmail.com>
Date2015-11-25 09:00 +1100
SubjectRe: import logging raise NotImplementedError
Message-ID<mailman.39.1448402449.20593.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web