Bug#921559: MTP broken for number of phones with "LIBMTP PANIC: Unable to initialize device"

2020-07-12 Thread Tobias Bora
Thanks. I also got this error on a new computer, running NixOs 20.03,
and on a completely different phone, a Samsung A 40:

[nix-shell:~]$ mtp-detect libmtp version: 1.1.16 Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).   
Found 1 device(s):    Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1,
dev 124 Attempting to connect device(s) error returned by
libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0 OK.

I also tried "android-file-transfer", and when I kill the process that
is using the device, it does work. Can I help somehow?

Cheers,

Léo



Bug#921559: MTP broken for number of phones with "LIBMTP PANIC: Unable to initialize device"

2020-06-19 Thread Tobias Bora
I can confirm the bug also with libmtp9 1.1.17 and a Samsung Galaxy A3
(2015, A300FU). Is there at least meanwhile a solution independant of
libmtp and a bit faster than installing a FTP server on my phone?

$ sudo apt-cache policy libmtp9
libmtp9:
  Installé : 1.1.17-3
  Candidat : 1.1.17-3
 Table de version :
 *** 1.1.17-3 500
    500 http://ftp.fr.debian.org/debian sid/main amd64 Packages
    100 /var/lib/dpkg/status

$ sudo mtp-detect
libmtp version: 1.1.17

Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 8
Attempting to connect device(s)
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to
initialize device
Unable to open raw device 0
OK.



Bug#845489: lsb-release: lsb_release.py : FileNotFound and Python 2.7

2016-11-23 Thread Tobias Bora
Package: lsb-release
Version: 9.20161101
Severity: important
Tags: upstream

Dear Maintainer,

The script lsb_release.py in

/usr/lib/python2.7/dist-packages/lsb_release.py

is buggy. Indeed, it uses 'FileNotFoundError' which is not defined in
Python 2.7. This results into bugs when you run the python function

lsb_release.get_distro_information()

when the file /usr/share/distro-info/%s.csv does not exists (it is for
example the case on my raspberrypi which runs raspbian) :

 release = lsb_release.get_distro_information()
 File "/usr/lib/python2.7/dist-packages/lsb_release.py", line 341,
in get_distro_information
 distinfo = guess_debian_release()
 File "/usr/lib/python2.7/dist-packages/lsb_release.py", line 239,
in guess_debian_release
 get_distro_info(distinfo['ID'])
 File "/usr/lib/python2.7/dist-packages/lsb_release.py", line 33, in
get_distro_info
  except FileNotFoundError:
  NameError: global name 'FileNotFoundError' is not defined


The fix should be pretty trivial, but it would be nice to make it
working. Thank you in advance for solving this bug,

tobiasBora.

-- Package-specific info:
lsb_release output
-*- -*- -*- -*- -*-
Distributor ID: Debian
Description:Debian GNU/Linux unstable (sid)
Release:unstable
Codename:   sid
-*- -*- -*- -*- -*-
Apt policy
-*- -*- -*- -*- -*-
Package files:
 100 /var/lib/dpkg/status
 release a=now
 500
http://ppa.launchpad.net/webcamstudio/webcamstudio-dailybuilds/ubuntu
xenial/main i386 Packages
 release
v=16.04,o=LP-PPA-webcamstudio-webcamstudio-dailybuilds,a=xenial,n=xenial,l=WebcamStudio
PPA (Daily Builds),c=main,b=i386
 origin ppa.launchpad.net
 500
http://ppa.launchpad.net/webcamstudio/webcamstudio-dailybuilds/ubuntu
xenial/main amd64 Packages
 release
v=16.04,o=LP-PPA-webcamstudio-webcamstudio-dailybuilds,a=xenial,n=xenial,l=WebcamStudio
PPA (Daily Builds),c=main,b=amd64
 origin ppa.launchpad.net
 500 https://pkg.tox.chat/debian nightly/sid i386 Packages
 release o=pkg.tox.chat,a=nightly,n=nightly,l=pkg.tox.chat,c=sid,b=i386
 origin pkg.tox.chat
 500 https://pkg.tox.chat/debian nightly/sid amd64 Packages
 release o=pkg.tox.chat,a=nightly,n=nightly,l=pkg.tox.chat,c=sid,b=amd64
 origin pkg.tox.chat
 500 https://dl.bintray.com/sbt/debian  Packages
 release o=Bintray,l=Bintray,c=
 origin dl.bintray.com
 500
http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Debian_8.0 
Packages
 release
o=obs://build.opensuse.org/isv:ownCloud:desktop/Debian_8.0,n=Debian_8.0,l=isv:ownCloud:desktop,c=
 origin download.opensuse.org
 500 http://download.fpcomplete.com/debian jessie/main amd64 Packages
 release n=jessie,c=main,b=amd64
 origin download.fpcomplete.com
 500 https://apt.dockerproject.org/repo debian-stretch/main amd64 Packages
 release o=Docker,a=debian-stretch,n=debian-stretch,l=Docker APT
Repository,c=main,b=amd64
 origin apt.dockerproject.org
 500 https://packages.chef.io/repos/apt/stable jessie/main i386 Packages
 release o=Artifactory,a=jessie,n=jessie,l=Artifactory,c=main,b=i386
 origin packages.chef.io
 500 https://packages.chef.io/repos/apt/stable jessie/main amd64 Packages
 release o=Artifactory,a=jessie,n=jessie,l=Artifactory,c=main,b=amd64
 origin packages.chef.io
 500 http://security.debian.org/debian-security wheezy/updates/main i386
Packages
 release
v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main,b=i386
 origin security.debian.org
 500 http://security.debian.org/debian-security wheezy/updates/main
amd64 Packages
 release
v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main,b=amd64
 origin security.debian.org
   1 http://ftp.debian.org/debian experimental/non-free i386 Packages
 release
o=Debian,a=experimental,n=experimental,l=Debian,c=non-free,b=i386
 origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/non-free amd64 Packages
 release
o=Debian,a=experimental,n=experimental,l=Debian,c=non-free,b=amd64
 origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/contrib i386 Packages
 release
o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=i386
 origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/contrib amd64 Packages
 release
o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=amd64
 origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/main i386 Packages
 release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=i386
 origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/main amd64 Packages
 release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
 origin ftp.debian.org
   1 http://httpredir.debian.org/debian experimental/main i386 Packages
 release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=i386
 origin httpredir.debian.org
   1 http://httpredir.debian.org/debian experimental