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

Geoffrey Mégardon report at bugs.python.org
Mon Dec 14 09:35:30 EST 2015


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 <module>
    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 <report at bugs.python.org>
<http://bugs.python.org/issue25861>
_______________________________________


More information about the New-bugs-announce mailing list