Questions tagged [pymtp]

LibMTP bindings in Python

LibMTP bindings in Python

Sources:

https://launchpad.net/pymtp

6 questions
4
votes
0 answers

How to use pymtp

I have been trying to get my GalaxyS3 to play nice with Ubuntu12.04 to no avail. I've tried a bunch of different apps that dont work and now I'm trying to make one that does. Now I am told that Samsung did some 'bad magic' with it's new devices and…
Sheena
  • 15,590
  • 14
  • 75
  • 113
2
votes
1 answer

Error using pymtp and libmtp

I am new to programming on python and i am trying to create an application which uses pyMTP to communicate to an MTP device. However im getting this error and cant figure out the fix for it. $ python c:/Users/Atul/Desktop/mtp.py None Traceback (most…
atulvinod1911
  • 99
  • 1
  • 5
2
votes
0 answers

Mounting Android device to the system using Python (PyMTP)

I have written a python code to mount my android physical device with the notebook (ubuntu 14.04). I referred this http://www.anythingbutipod.com/forum/showthread.php?t=32817 $ sudo apt-get install libmtp mtptools mtpfs #Once all of that is…
Karthik
  • 315
  • 1
  • 4
  • 16
1
vote
1 answer

Execute a function when connecting an android mobile to the pc with python linux

I want to execute a python function when detecting when I connect the mobile to the pc (in Transfer Files mode), I use linux mint, what I have tried so far has been thanks to the pyudev library: from pyudev import Context, Monitor context =…
Hallen
  • 21
  • 2
1
vote
1 answer

error with pymtp to work on python 3

I want to access a android device from python to download some photos. libmtp works from the CLI. Than pymtp. It's been around for a while but it's designed for python 2 and i'm using python 3. Meanwhile fixed several minor issues but i'm stuck at…
henkidefix
  • 139
  • 4
0
votes
1 answer

Download file from MTP connected device with Python on Ubuntu

I'm trying to download a file from an MTP connected device. import pymtp device = pymtp.MTP() device.connect() print(device.get_filelisting()) for file in device.get_filelisting(): if file.item_id == 2000018: …
3nws
  • 1,391
  • 2
  • 10
  • 21