Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute issue #11

Open
herolyh opened this issue Sep 11, 2013 · 1 comment
Open

execute issue #11

herolyh opened this issue Sep 11, 2013 · 1 comment

Comments

@herolyh
Copy link

herolyh commented Sep 11, 2013

lis-iMac:MobileDevice annali$ mdf afc put 1.txt /var/mobile/Media
Traceback (most recent call last):
File "./mdf", line 28, in
argparse_parse(globals())
NameError: name 'argparse_parse' is not defined

please help me to solve this issue, thx!
python: 2.7.2
os: Darwin lis-iMac.local 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64

@mountainstorm
Copy link
Owner

So running your commend I get:

Traceback (most recent call last):
File "/usr/local/bin/mdf", line 28, in
argparse_parse(globals())
File "/Library/Python/2.7/site-packages/MobileDevice/amdevice.py", line 695, in argparse_parse
cmdargs.parse_args()
File "/Library/Python/2.7/site-packages/MobileDevice/amdevice.py", line 664, in parse_args
args.func(args, v)
File "/Library/Python/2.7/site-packages/MobileDevice/afcmediadirectory.py", line 194, in cmd_put
d = afc.open(args.path, u'w')
File "/Library/Python/2.7/site-packages/MobileDevice/afc.py", line 300, in open
return AFCFile(self.afc_con, path, mode)
File "/Library/Python/2.7/site-packages/MobileDevice/afc.py", line 94, in init
raise IOError(u'Unable to open file:', path, mode)
IOError: [Errno Unable to open file:] : u'w'

The temp fix is to append a trailing slash to the dest path i.e. mdf afc put 1.txt /var/mobile/Media/

I'll look into fixing it properly

@mountainstorm mountainstorm reopened this Sep 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants