Peter Williams added the comment:

I'm experiencing a variation of this problem on a project where I'm trying to 
make an application that will work with both 2.7.x and 3.4.x
and am mostly successful.  The application uses a number of pickle files
and I want to make it so that it doesn't matter which version created the 
pickle files the other can read it.  By limiting the 3.4 version to
pickle protocol 2 I've succeeded in having 2.7.x read 3.4.x pickle files
but encountered a problem going the other way with the following
error message:

Traceback (most recent call last):
  File "/home/peter/SRC/GITHUB/epygibus.git/epygibus3", line 25, in <module>
    sys.exit(ARGS.run_cmd(ARGS))
  File 
"/home/peter/SRC/GITHUB/epygibus.git/epygibus_pkg/cli/subcmd_restore.py", line 
70, in run_cmd
    snapshot.restore_subdir(args.archive_name, os.sep, seln_fn=lambda l: 
l[-1-args.back])
  File "/home/peter/SRC/GITHUB/epygibus.git/epygibus_pkg/snapshot.py", line 
699, in restore_subdir
    snapshot_fs = get_snapshot_fs(archive_name, 
seln_fn).get_subdir(abs_subdir_path)
  File "/home/peter/SRC/GITHUB/epygibus.git/epygibus_pkg/snapshot.py", line 
595, in get_snapshot_fs
    snapshot = read_snapshot(os.path.join(archive.snapshot_dir_path, 
snapshot_name))
  File "/home/peter/SRC/GITHUB/epygibus.git/epygibus_pkg/snapshot.py", line 
236, in read_snapshot
    return pickle.load(fobj)
AttributeError: Can't get attribute '_make_stat_result' on <module 'os' from 
'/usr/lib64/python3.4/os.py'>

I'm pretty sure that this is a result of that pickle file containing
instances of the output from os.lstat() generated by 2.7.x which 3.4.x
is having trouble instantiating.

The source code for the application with the problem is available on
github as repo "epygibus" for user "pwil3058".

----------
nosy: +Peter Williams

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7164>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to