gerardob wrote:
>
> I tried both things:
>
> 1- moved all the code to C:/Python26/lib/site-packages
> 2- Modified the PYTHONPATH in the windows registry.
>
> However, i stil have exactly the same error on the screen.
>
> Any other suggestions?
Did you heed my advice and make sure that your sc
En Fri, 09 Apr 2010 18:42:23 -0300, gerardob
escribió:
I tried both things:
1- moved all the code to C:/Python26/lib/site-packages
2- Modified the PYTHONPATH in the windows registry.
However, i stil have exactly the same error on the screen.
Any other suggestions?
Did you follow the advi
858, in load
>> dispatch[key](self)
>> File "C:\Python26\lib\pickle.py", line 1090, in load_global
>> klass = self.find_class(module, name)
>> File "C:\Python26\lib\pickle.py", line 1124, in find_class
>> __import__(module)
>> Impor
On 04/07/10 03:23, gerardob wrote:
> The error below appears. In the case i remove the comment to initialize m2,
> the same thing happens. Any ideas on how to fix this?
>
When unpickling a user-defined class, you unpickling module must have
access to the original class definition. This means if
gerardob wrote:
> Hello, I am new to python and i have a problem using the pickle load
> function.
> I have an object m of the class MarkovModel and i want to copy it to a
> file and load it onto another class:
>
> l=[1,2,3]
> m = markov_model.MarkovModel()
> m.load_observations(l)
> file = open(
line 858, in load
dispatch[key](self)
File "C:\Python26\lib\pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "C:\Python26\lib\pickle.py", line 1124, in find_class
__import__(module)
ImportError: No module named markov_model
--
View thi