Page 1 of 1

can't import cPickle

Posted: Wed Nov 26, 2014 11:49 pm
by 8guawong

Syntax: Select all

import cPickle


Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File '../addons/source-python/packages/source-python/plugins/manager.py', line 72, in __missing__
    instance = self.instance(plugin_name, self.base_import)
  File '../addons/source-python/packages/source-python/plugins/instance.py', line 82, in __init__
    self._plugin = import_module(import_name)
  File '../addons/source-python/plugins/store/test.py', line 2, in <module>
    import cPickle

ImportError: No module named 'cPickle'


------------edit ----------------

hmmm python 3 don't have cPickle

Posted: Thu Nov 27, 2014 2:01 am
by satoon101
Yeah, cPickle was moved to pickle itself in Python3:
http://forums.sourcepython.com/showthread.php?427