[issue25861] Can't use Pickle. AttributeError: 'module' object has no attribute '_new_Index'

2015-12-14 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +alexandre.vassalotti, pitrou
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25861] Can't use Pickle. AttributeError: 'module' object has no attribute '_new_Index'

2015-12-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

_new_Index is a function used in pandas to unpickle its Index objects. Added 29 
Jul 2014 
(https://github.com/pydata/pandas/commit/8d3cb3f36e2f7b415531e3b910f490c01657ecca).
 May be your current pandas is older than that used for pickling.

In any case this is not a Python bug.

--
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25861] Can't use Pickle. AttributeError: 'module' object has no attribute '_new_Index'

2015-12-14 Thread Geoffrey Mégardon

New submission from Geoffrey Mégardon:

Hello,

I am trying to run a piece of code that I programmed some time ago.
Back then, it was working fine and it was plotting some data.
But today, while I am trying to improve the plots, I ran the code and did not 
work!

Here the message:

D:\Users\Geoffrey\Anaconda\python.exe "D:/Google 
Drive/Work/Experiences/experiment-deviation-initial/analysis/FigureTrajAndDeviation.py"
Traceback (most recent call last):
  File "D:/Google 
Drive/Work/Experiences/experiment-deviation-initial/analysis/FigureTrajAndDeviation.py",
 line 36, in 
m = pickle.load( open(output_path+"/traj_and_RT_second_only.p", "rb" ) )
  File "D:\Users\Geoffrey\Anaconda\lib\pickle.py", line 1378, in load
return Unpickler(file).load()
  File "D:\Users\Geoffrey\Anaconda\lib\pickle.py", line 858, in load
dispatch[key](self)
  File "D:\Users\Geoffrey\Anaconda\lib\pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
  File "D:\Users\Geoffrey\Anaconda\lib\pickle.py", line 1126, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute '_new_Index'

Process finished with exit code 1

I hope that you may now what it is about!!
I attached the code file.

--
components: Library (Lib)
files: FigureTrajAndDeviation.py
messages: 256379
nosy: Geoffrey Mégardon
priority: normal
severity: normal
status: open
title: Can't use Pickle. AttributeError: 'module' object has no attribute 
'_new_Index'
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file41305/FigureTrajAndDeviation.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25861] Can't use Pickle. AttributeError: 'module' object has no attribute '_new_Index'

2015-12-14 Thread R. David Murray

Changes by R. David Murray :


--
resolution: not a bug -> third party

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com