can't import cPickle

Please post any questions about developing your plugin here. Please use the search function before posting!
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

can't import cPickle

Postby 8guawong » Wed Nov 26, 2014 11:49 pm

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
User avatar
satoon101
Project Leader
Posts: 2703
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Thu Nov 27, 2014 2:01 am

Yeah, cPickle was moved to pickle itself in Python3:
http://forums.sourcepython.com/showthread.php?427
Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 67 guests