New submission from Michael Newman <michael.b.new...@gmail.com>: The server portion of the example at: "15.6.9. Sending and receiving logging events across a network" http://docs.python.org/3.0/library/logging.html uses "import cPickle" which is not available for Python 3.0.1
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import cPickle Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named cPickle Alternatively, I tried to run the example from a script: G:\Programming\python3\module_logging\SocketHandler_example>server.py Traceback (most recent call last): File "G:\Programming\python3\module_logging\SocketHandler_example\server.py", line 4, in <module> import cPickle ImportError: No module named cPickle I fixed it by changing: "import cPickle" to "import pickle" and "return cPickle.loads(data)" to "return pickle.loads(data)" ---------- assignee: georg.brandl components: Documentation messages: 88599 nosy: georg.brandl, mnewman severity: normal status: open title: "logging" example uses unavailable cPickle module versions: Python 3.0 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6155> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com