You Are Here:

Community: Developer Discussion Boards

#1 Old pickle module - 2005-01-31, 23:42

Join Date: May 2004
Posts: 13
uh...ok
Offline
Registered User
Hi,

Has anyone gotten the pickle module to work? I run across this error when trying to unpickle objects:

File "E:\system\libs\pickle.py", line 985 in load_string
self.append(rep.decode("string-escape"))

LookupError: unknown encoding: string-escape

So basically, I think the base str object on the cell phones doesn't support this command? Does anyone know a way to fix this?

Thanks!
Reply With Quote

#2 Old 2005-02-02, 17:10

Join Date: Jan 2005
Posts: 7
jeclarim
Offline
Registered User
You are probably using the pickle module from python 2.3
Try the one from python 2.2 which is the current version of Python for Series 60.
Reply With Quote

#3 Old Re: pickle module - 2008-09-03, 19:53

Join Date: Jul 2006
Posts: 4
atranter
Offline
Registered User
use cerealize, man =) I don't actually remember the author, but this module exists in python modules pack for symb6-8.1 and megamodulepack for symb9higher. but also try native Py 2.2... and report =)
Reply With Quote

#4 Old Re: pickle module - 2009-01-16, 15:47

Join Date: Dec 2008
Posts: 6
aclear
Offline
Registered User
Hey guys,

I'm using a device with s60 3rd edition. I have pys60 1.4.5 installed on my device. I copied the pickle.py file from Python 2.2.3 to the e:\Python\lib. It works when I run my script from the script shell but it doesn't work when I create a stand-alone SIS. It seems to me that the interpreter for SIS files does not look in this directory. Does anyone know if that's the case and, if so, where should I put the pickle.py file so that SIS files pick it up?

Thanks in advance.
Reply With Quote

#5 Old Re: pickle module - 2009-01-16, 16:46

Join Date: Dec 2008
Posts: 6
aclear
Offline
Registered User
I solved my problem by creating a simplesis from pickle.py using ensymble. I then merged this with my original sis using the mergesis command.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ