python - Why does shutil.copy throw "OSError: [Errno 38] Function not implemented: '/media/some/path'"? -
i have relatively straight forward snippet throws error:
import shutil abspath_to_source_file = '/media/moose/vff1147/map_data/back/b0000040.dft' target_dir = '/media/moose/9c33-6bbd/private/pana_grp/pavc/lumix/map_data/back' shutil.copy2(abspath_to_source_file, target_dir)
which gives
traceback (most recent call last): file "/usr/local/bin/lumixmaptool", line 4, in <module> __import__('pkg_resources').run_script('lumixmaptool==1.0.15', 'lumixmaptool') file "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 735, in run_script self.require(requires)[0].run_script(script_name, ns) file "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1652, in run_script exec(code, namespace, namespace) file "/usr/local/lib/python2.7/dist-packages/lumixmaptool-1.0.15-py2.7.egg/egg-info/scripts/lumixmaptool", line 56, in <module> main(args) file "/usr/local/lib/python2.7/dist-packages/lumixmaptool-1.0.15-py2.7.egg/egg-info/scripts/lumixmaptool", line 49, in main copy.main(args.mapdata, args.path_to_sdcard, args.regions) file "/usr/local/lib/python2.7/dist-packages/lumixmaptool-1.0.15-py2.7.egg/lumixmaptool/copy.py", line 177, in main copy_maps(mapdata, path_to_sdcard, regions) file "/usr/local/lib/python2.7/dist-packages/lumixmaptool-1.0.15-py2.7.egg/lumixmaptool/copy.py", line 148, in copy_maps shutil.copy2(abspath_to_source_file, target_dir) file "/usr/lib/python2.7/shutil.py", line 131, in copy2 copystat(src, dst) file "/usr/lib/python2.7/shutil.py", line 100, in copystat os.chmod(dst, mode) oserror: [errno 38] function not implemented: '/media/moose/9c33-6bbd/private/pana_grp/pavc/lumix/map_data/back/b0000040.dft'
is reason file system? (if remember correctly, formatted exfat, 'fuseblk' when try df -t
or mount
. sudo file -ls /dev/sdb1
gives dos/mbr boot sector
)
1st question: problem?
2nd question: how can fix it?
Comments
Post a Comment