473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

COG sample code problem

I'm running COG 0.5 with python 2.3.2 windows build #49. When I ran the
sample code benchmark.py I got this error:

while saving <cog.registry.Registry object at 0x008EAB50>
Traceback (most recent call last):
File "C:\Python23\lib\site-packages\cog\db.py", line 368, in save_objects
self.io.save_obj(obj, oid, self)
File "C:\Python23\lib\site-packages\cog\io.py", line 252, in save_obj
pickler.dump(obj.__class__)
PicklingError: Can't pickle <class 'cog.registry.Registry'>: it's not the
same object as cog.registry.Registry

Has anyone seen this problem before? Can anyone give me a hand?

I'm trying out COG because pickle was not able to handle the task of
pickling my object graph. Now I'm getting a pickle error in COG. It's as
if pickle is out to get me.

I wonder if COG is going to have the same recursion limit pickle had since
it uses pickle.
Jul 18 '05 #1
0 1192

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Adar Wesley | last post by:
Hi all. I am looking into the MultiCast capabilities in DotNet. VS.Net 7.1 Framework 1.1 I found the class System.Net.Sockets.MulticastOption. The documentation of the class contains...
6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
30
by: Chad Z. Hower aka Kudzu | last post by:
I need to provide a series of demos for an assembly. There are potentialy several dozen of them. None of them are very complex, however maintaining two versions of them will be very maintainance...
4
by: Allen | last post by:
Installing VS2005 I received the following. Do you know what it implies? Thanks 03/22/06,21:12:08] Microsoft Visual Studio 2005 Professional Edition - ENU: ERROR:Error 1919.Error configuring...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.