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 <rep...@bugs.python.org> <http://bugs.python.org/issue25861> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com