Dear group, Thanks for your excellent PyMate. Unfortunately I have started using shelve to save intermediate results and have found a bug. Try the following simplest script. (which uses the underlying problem pickle)
Please can somebody check that the error below occurs on the minimum script that I have. I have copied the PyMate output below. I particularly want to know if I have corrupted my python bundle in some way.
This script runs without error when using the normal textmate command ============= import pickle
class testobject(object): pass
pickle.dumps(testobject()) =============
HIDE STDERR SHOW STDERR Python 2.4.3 - PyMate r5848
For comments contact the author. The regular Python interpreter can be invoked using ⌘⇧R.
shelvetest.py
forcing redraw!!! don't remove PicklingError: ("Can't pickle : it's not found as __main__.testobject",) Traceback: function module body in shelvetest.py at line 6 function dumps ⎋ in pickle.py at line 1386 function dump ⎋ in pickle.py at line 231 function save ⎋ in pickle.py at line 338 function save_reduce ⎋ in pickle.py at line 415 function save ⎋ in pickle.py at line 293 function save_tuple ⎋ in pickle.py at line 576 function save ⎋ in pickle.py at line 293 function save_global ⎋ in pickle.py at line 760
Thanks --- Nigel King
Nigel,
You are using a very old copy of the Python bundle. I was able to run your test case on the latest version.
Are you using your own copy of the Python Bundle? If so, check the directories "~/Library/Application Support/TextMate/Bundles" and "/ Library/Application Support/TextMate/Bundles" for copies of Python.tmbundle. If they are there, just remove them.
Also, are you using a cutting-edge build of TextMate? You can upgrade to the latest version through the preferences panel. Go to "Software Update", and change "Watch for:" to "Cutting-Edge".
Hope this helps,
– Alex
On Jan 5, 2007, at 12:21 AM, Nigel King wrote:
Dear group, Thanks for your excellent PyMate. Unfortunately I have started using shelve to save intermediate results and have found a bug. Try the following simplest script. (which uses the underlying problem pickle)
Please can somebody check that the error below occurs on the minimum script that I have. I have copied the PyMate output below. I particularly want to know if I have corrupted my python bundle in some way.
This script runs without error when using the normal textmate command
import pickle
class testobject(object): pass
pickle.dumps(testobject())
HIDE STDERR SHOW STDERR Python 2.4.3 - PyMate r5848
For comments contact the author. The regular Python interpreter can be invoked using ⌘⇧R.
shelvetest.py
forcing redraw!!! don't remove PicklingError: ("Can't pickle : it's not found as __main__.testobject",) Traceback: function module body in shelvetest.py at line 6 function dumps ⎋ in pickle.py at line 1386 function dump ⎋ in pickle.py at line 231 function save ⎋ in pickle.py at line 338 function save_reduce ⎋ in pickle.py at line 415 function save ⎋ in pickle.py at line 293 function save_tuple ⎋ in pickle.py at line 576 function save ⎋ in pickle.py at line 293 function save_global ⎋ in pickle.py at line 760
Thanks
Nigel King
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Alex, Thank you very much. It seems that if you modify any of a bundle the bundle does not update on a new version of textmate which I had not realised.
Thanks again
Nigel
On 5 Jan 2007, at 08:29, Alexander Ross wrote:
Nigel,
You are using a very old copy of the Python bundle. I was able to run your test case on the latest version.
Are you using your own copy of the Python Bundle? If so, check the directories "~/Library/Application Support/TextMate/Bundles" and "/ Library/Application Support/TextMate/Bundles" for copies of Python.tmbundle. If they are there, just remove them.
Also, are you using a cutting-edge build of TextMate? You can upgrade to the latest version through the preferences panel. Go to "Software Update", and change "Watch for:" to "Cutting-Edge".
Hope this helps,
– Alex
On Jan 5, 2007, at 12:21 AM, Nigel King wrote:
Dear group, Thanks for your excellent PyMate. Unfortunately I have started using shelve to save intermediate results and have found a bug. Try the following simplest script. (which uses the underlying problem pickle)
Please can somebody check that the error below occurs on the minimum script that I have. I have copied the PyMate output below. I particularly want to know if I have corrupted my python bundle in some way.
This script runs without error when using the normal textmate command
import pickle
class testobject(object): pass
pickle.dumps(testobject())
HIDE STDERR SHOW STDERR Python 2.4.3 - PyMate r5848
For comments contact the author. The regular Python interpreter can be invoked using ⌘⇧R.
shelvetest.py
forcing redraw!!! don't remove PicklingError: ("Can't pickle : it's not found as __main__.testobject",) Traceback: function module body in shelvetest.py at line 6 function dumps ⎋ in pickle.py at line 1386 function dump ⎋ in pickle.py at line 231 function save ⎋ in pickle.py at line 338 function save_reduce ⎋ in pickle.py at line 415 function save ⎋ in pickle.py at line 293 function save_tuple ⎋ in pickle.py at line 576 function save ⎋ in pickle.py at line 293 function save_global ⎋ in pickle.py at line 760
Thanks
Nigel King
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
Alex, Thank you very much. It seems that if you modify any of a bundle the bundle does not update on a new version of textmate which I had not realised.
I actually thought this behavior has changed.
I knew this was the case previously, but I thought now changes to bundles get saved in some delta format in your ~/Library/App Support/ TextMate/... directory.
Isn't that how it works now? If so, isn't that supposed to enable you to make a change/tweak in a bundle w/o overriding the entire bundle?
-steve
Isn't that how it works now? If so, isn't that supposed to enable you to make a change/tweak in a bundle w/o overriding the entire bundle?
I think if you have a local bundle the support path also points to that local bundle, even if you only have a simple snippet overridden. So it might be, that the bundle was copied (old way) way ago and the support directory outdated. Otherwise it should not have found the necessary files in the support path at all…
Soryu.