This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mnewman
Recipients georg.brandl, mnewman
Date 2009-05-31.16:20:36
SpamBayes Score 1.0930146e-12
Marked as misclassified No
Message-id <1243786839.04.0.100473713969.issue6155@psf.upfronthosting.co.za>
In-reply-to
Content
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)"
History
Date User Action Args
2009-05-31 16:20:39mnewmansetrecipients: + mnewman, georg.brandl
2009-05-31 16:20:39mnewmansetmessageid: <1243786839.04.0.100473713969.issue6155@psf.upfronthosting.co.za>
2009-05-31 16:20:37mnewmanlinkissue6155 messages
2009-05-31 16:20:36mnewmancreate