Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Newsgroups: comp.lang.python Subject: import logging raise NotImplementedError Date: Tue, 24 Nov 2015 21:27:07 +0100 Lines: 37 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 4dLZbAg1GQlwRUVHlg6fbgYv/okSvR3sKo8UBvnll37A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'installed.': 0.05; 'python3': 0.05; 'fails.': 0.09; 'received:172.16.0': 0.09; 'skip:" 80': 0.09; 'python': 0.10; 'syntax': 0.13; 'importing': 0.15; 'received:io': 0.16; 'received:psf.io': 0.16; 'run.': 0.16; 'subject:import': 0.16; 'sudo': 0.16; 'syntaxerror:': 0.16; '>>>': 0.20; '"",': 0.22; 'import': 0.24; '(most': 0.24; 'implemented': 0.24; 'install': 0.25; 'installed': 0.26; 'linux': 0.26; 'skip:_ 20': 0.26; 'logging': 0.27; 'idea': 0.28; 'raise': 0.29; 'too.': 0.30; 'skip:_ 10': 0.32; 'problem': 0.33; 'traceback': 0.33; 'file': 0.34; 'something': 0.35; 'problem.': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'charset:us-ascii': 0.37; 'sure': 0.39; 'application': 0.39; 'unable': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'received:de': 0.40; 'some': 0.40; 'from:no real name:2**0': 0.60; 'header:Message- Id:1': 0.61; 'default': 0.61; 'strange': 0.63; 'more': 0.63; 'today': 0.65; 'situation': 0.67; 'pip': 0.84; 'received:185': 0.91; 'subject:skip:N 10': 0.91 X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; i686-pc-linux-gnu) X-Mailman-Approved-At: Tue, 24 Nov 2015 16:08:03 -0500 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99395 I using 'logging' for some month. But today I have strange problem. When importing it it fails. Python 3.4.3 (default, Oct 14 2015, 20:33:09) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import logging Traceback (most recent call last): File "", line 1, in File "", line 2237, in _find_and_load File "", line 2222, in _find_and_load_unlocked File "", line 2164, in _find_spec File "", line 1940, in find_spec File "", line 1916, in _get_spec File "", line 1897, in _legacy_get_spec File "", line 863, in spec_from_loader File "", line 904, in spec_from_file_location File "/usr/local/lib/python3.4/dist-packages/logging-0.4.9.6-py3.4.egg/logging/__init__.py", line 618 raise NotImplementedError, 'emit must be implemented '\ ^ SyntaxError: invalid syntax Any idea about it? I am not sure if there where an update in the background or something changed. The current situation make each "logging" using Python application unable to run. 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. -- GnuPGP-Key ID 0751A8EC