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 "<stdin>", line 1, in <module> File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2222, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 2164, in _find_spec File "<frozen importlib._bootstrap>", line 1940, in find_spec File "<frozen importlib._bootstrap>", line 1916, in _get_spec File "<frozen importlib._bootstrap>", line 1897, in _legacy_get_spec File "<frozen importlib._bootstrap>", line 863, in spec_from_loader File "<frozen importlib._bootstrap>", 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 -- https://mail.python.org/mailman/listinfo/python-list