I need to mount by phone (Huawei Honor 6) to the notebook.
This is the python code, what I wrote : (python phonedirectory.py)
import os
os.getcwd()
os.chdir("/media/")
os.system("killall gvfs-gphoto2-volume-monitor")
os.system("killall gvfs-mtp-volume-monitor")
dir = os.path.dirname("karthik/")
if not os.path.exists(dir):
os.system("sudo mkdir karthik")
os.getcwd()
os.system("sudo chmod 777 karthik")
os.system("sudo mtpfs -o allow_other /media/karthik")
os.system("ls")
print('LIST OF FILES:')
os.system("ls /media/karthik/SD\ card/Bluetooth")
print('TOTAL NUMBER OF FILES:')
os.system("ls /media/karthik/SD\ card/Bluetooth | wc -l")
os.system("sudo umount karthik")
os.system("sudo rmdir karthik")
This is the error what I got :
Listing raw device(s)
mtpfs: symbol lookup error: /usr/local/lib/libmtp.so.9: undefined symbol: usb_init
till this command os.system("sudo chmod 777 karthik")
it works fine..
After that, I am getting the error..
Executing this :
mtp-detect | grep idVendor
mtp-detect | grep idProduct
Results in this :
karthik@dkarnik2-Vostro-3558:~$ mtp-detect | grep idVendor
mtp-detect: symbol lookup error: /usr/local/lib/libmtp.so.9: undefined symbol: usb_init
karthik@dkarnik2-Vostro-3558:~$ mtp-detect | grep idProduct
mtp-detect: symbol lookup error: /usr/local/lib/libmtp.so.9: undefined symbol: usb_init
executing mtp-detect
gives me this :
libmtp version: 1.1.6
Listing raw device(s)
mtp-detect: symbol lookup error: /usr/local/lib/libmtp.so.9: undefined symbol: usb_init
I am using ubuntu 14.04
Someone please tell me how to resolve that error..