Your message dated Sat, 21 Sep 2019 13:40:09 -0400
with message-id <[email protected]>
and subject line Re: calibre: Error communicating device when connect Kindle
has caused the Debian Bug report #689676,
regarding calibre: Error communicating device when connect Kindle
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
689676: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689676
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: calibre
Version: 0.8.51+dfsg-1
Severity: normal

Dear Maintainer,

Upon connecting Kindle an Error (see below) appears. No communication with 
Kindle is possible. 
I hope something can be done with that. Thank you very much!

Best regards,
Sergey.

[Errno 5] Input/output error

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/device.py", line 82, in run
    self.result = self.func(*self.args, **self.kwargs)
  File "/usr/lib/calibre/calibre/gui2/device.py", line 339, in _books
    mainlist = self.device.books(oncard=None, end_session=False)
  File "/usr/lib/calibre/calibre/devices/kindle/driver.py", line 333, in books
    bl = USBMS.books(self, oncard=oncard, end_session=end_session)
  File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 165, in books
    need_sync = self.parse_metadata_cache(bl, prefix, self.METADATA_CACHE)
  File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 454, in 
parse_metadata_cache
    traceback.print_exc()
  File "/usr/lib/python2.7/traceback.py", line 232, in print_exc
    print_exception(etype, value, tb, limit, file)
  File "/usr/lib/python2.7/traceback.py", line 124, in print_exception
    _print(file, 'Traceback (most recent call last):')
  File "/usr/lib/python2.7/traceback.py", line 13, in _print
    file.write(str+terminator)
IOError: [Errno 5] Input/output error




-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages calibre depends on:
ii  calibre-bin                        0.8.51+dfsg-1+b1
ii  fonts-liberation [ttf-liberation]  1.07.2-5
ii  imagemagick                        8:6.7.7.10-4
ii  poppler-utils                      0.18.4-3
ii  python-beautifulsoup               3.2.1-1
ii  python-chardet                     2.0.1-2
ii  python-cherrypy3                   3.2.2-2
ii  python-cssutils                    0.9.10~b1-1
ii  python-dateutil                    1.5+dfsg-0.1
ii  python-dbus                        1.1.1-1
ii  python-feedparser                  5.1.2-1
ii  python-imaging                     1.1.7-4
ii  python-lxml                        2.3.2-1
ii  python-mechanize                   1:0.2.5-3
ii  python-pkg-resources               0.6.24-1
ii  python-pyparsing                   1.5.6+dfsg1-2
ii  python-qt4                         4.9.3-4
ii  python-routes                      1.13-2
ii  python2.7                          2.7.3~rc2-2.1
ii  ttf-liberation                     1.07.2-5
ii  xdg-utils                          1.1.0~rc1+git20111210-6

Versions of packages calibre recommends:
ii  python-dnspython  1.10.0-1

calibre suggests no packages.

-- Configuration Files:
/etc/bash_completion.d/calibre changed:
_calibre()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help --redirect-console-output --with-library 
--start-in-tray -v --verbose --no-update-check --ignore-plugins -s 
--shutdown-running-calibre"
    pics="@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)"
    case "${prev}" in
      --cover )
           _filedir "${pics}"
           return 0
           ;;
    esac
    case "${cur}" in
      --cover )
         _filedir "${pics}"
         return 0
         ;;
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir 
'@(epub|htm|html|xhtml|xhtm|rar|zip|txt|lit|rtf|pdf|prc|mobi|fb2|odt|lrf|snb|EPUB|HTM|HTML|XHTML|XHTM|RAR|ZIP|TXT|LIT|RTF|PDF|PRC|MOBI|FB2|ODT|LRF|SNB)'
        return 0
        ;;
    esac
}
complete -o filenames -F _calibre calibre
_lrf2lrs()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help -o --output --dont-output-resources --verbose"
    pics="@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)"
    case "${prev}" in
      --cover )
           _filedir "${pics}"
           return 0
           ;;
    esac
    case "${cur}" in
      --cover )
         _filedir "${pics}"
         return 0
         ;;
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir '@(lrf|LRF)'
        return 0
        ;;
    esac
}
complete -o filenames -F _lrf2lrs lrf2lrs
_ebook_meta()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help -t --title -a --authors --title-sort 
--author-sort --cover -c --comments -p --publisher --category -s --series -i 
--index -r --rating --isbn --tags -k --book-producer -l --language -d --date 
--get-cover --to-opf --from-opf --lrf-bookid"
    pics="@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)"
    case "${prev}" in
      --cover )
           _filedir "${pics}"
           return 0
           ;;
    esac
    case "${cur}" in
      --cover )
         _filedir "${pics}"
         return 0
         ;;
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir 
'@(fb2|rtf|azw4|rb|prc|lrf|tpz|odt|azw1|cbr|pml|opf|rar|lrx|cbz|snb|htmlz|txt|epub|mobi|zip|oebzip|chm|pmlz|lit|imp|html|txtz|pdf|pdb|azw|FB2|RTF|AZW4|RB|PRC|LRF|TPZ|ODT|AZW1|CBR|PML|OPF|RAR|LRX|CBZ|SNB|HTMLZ|TXT|EPUB|MOBI|ZIP|OEBZIP|CHM|PMLZ|LIT|IMP|HTML|TXTZ|PDF|PDB|AZW)'
        return 0
        ;;
    esac
}
complete -o filenames -F _ebook_meta ebook-meta
_lrfviewer()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help --redirect-console-output --verbose 
--visual-debug --disable-hyphenation --white-background --profile"
    pics="@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)"
    case "${prev}" in
      --cover )
           _filedir "${pics}"
           return 0
           ;;
    esac
    case "${cur}" in
      --cover )
         _filedir "${pics}"
         return 0
         ;;
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir '@(lrf|LRF)'
        return 0
        ;;
    esac
}
complete -o filenames -F _lrfviewer lrfviewer
_ebook_viewer()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help --raise-window -f --full-screen --fullscreen 
--debug-javascript"
    pics="@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)"
    case "${prev}" in
      --cover )
           _filedir "${pics}"
           return 0
           ;;
    esac
    case "${cur}" in
      --cover )
         _filedir "${pics}"
         return 0
         ;;
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir 
'@(epub|htm|html|xhtml|xhtm|rar|zip|txt|lit|rtf|pdf|prc|mobi|fb2|odt|lrf|snb|EPUB|HTM|HTML|XHTML|XHTM|RAR|ZIP|TXT|LIT|RTF|PDF|PRC|MOBI|FB2|ODT|LRF|SNB|EPUB|HTM|HTML|XHTML|XHTM|RAR|ZIP|TXT|LIT|RTF|PDF|PRC|MOBI|FB2|ODT|LRF|SNB|EPUB|HTM|HTML|XHTML|XHTM|RAR|ZIP|TXT|LIT|RTF|PDF|PRC|MOBI|FB2|ODT|LRF|SNB)'
        return 0
        ;;
    esac
}
complete -o filenames -F _ebook_viewer ebook-viewer
_fetch_ebook_metadata()
{
    local cur opts
    local IFS=$'|\t'
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    
opts="--version|-h|--help|-t|--title|-a|--authors|-i|--isbn|-v|--verbose|-o|--opf|-c|--cover|-d|--timeout"
    words=""
    case "${cur}" in
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         COMPREPLY=( $( echo ${COMPREPLY[@]} | sed 's/ /\\ /g' | tr '\n' '\t' ) 
)
         return 0
         ;;
      *  )
         COMPREPLY=( $(compgen -W "${words}" -- ${cur}) )
         COMPREPLY=( $( echo ${COMPREPLY[@]} | sed 's/ /\\ /g' | tr '\n' '\t' ) 
)
         return 0
         ;;
    esac
}
complete -F _fetch_ebook_metadata fetch-ebook-metadata
_calibre_smtp()
{
    local cur opts
    local IFS=$'|\t'
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    
opts="--version|-h|--help|-l|--localhost|-o|--outbox|-f|--fork|-t|--timeout|-v|--verbose|-a|--attachment|-s|--subject|-r|--relay|--port|-u|--username|-p|--password|-e|--encryption-method"
    words=""
    case "${cur}" in
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         COMPREPLY=( $( echo ${COMPREPLY[@]} | sed 's/ /\\ /g' | tr '\n' '\t' ) 
)
         return 0
         ;;
      *  )
         COMPREPLY=( $(compgen -W "${words}" -- ${cur}) )
         COMPREPLY=( $( echo ${COMPREPLY[@]} | sed 's/ /\\ /g' | tr '\n' '\t' ) 
)
         return 0
         ;;
    esac
}
complete -F _calibre_smtp calibre-smtp
_calibre_server()
{
    local cur opts
    local IFS=$'|\t'
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    
opts="--version|-h|--help|-p|--port|-t|--timeout|--thread-pool|--password|--username|--develop|--max-cover|--max-opds-items|--max-opds-ungrouped-items|--url-prefix|--with-library|--pidfile|--daemonize|--restriction|--auto-reload"
    words=""
    case "${cur}" in
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         COMPREPLY=( $( echo ${COMPREPLY[@]} | sed 's/ /\\ /g' | tr '\n' '\t' ) 
)
         return 0
         ;;
      *  )
         COMPREPLY=( $(compgen -W "${words}" -- ${cur}) )
         COMPREPLY=( $( echo ${COMPREPLY[@]} | sed 's/ /\\ /g' | tr '\n' '\t' ) 
)
         return 0
         ;;
    esac
}
complete -F _calibre_server calibre-server
_epub_fix()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--version -h --help --unmanifested --delete-unmanifested --epubcheck"
    pics="@(jpg|jpeg|png|gif|bmp|JPG|JPEG|PNG|GIF|BMP)"
    case "${prev}" in
      --cover )
           _filedir "${pics}"
           return 0
           ;;
    esac
    case "${cur}" in
      --cover )
         _filedir "${pics}"
         return 0
         ;;
      -* )
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
         ;;
      *  )
        _filedir '@(epub|EPUB)'
        return 0
        ;;
    esac
}
complete -o filenames -F _epub_fix epub-fix
_ebook_device_ls()
{
local pattern search listing prefix
pattern="$1"
search="$1"
if [[ -n "{$pattern}" ]]; then
    if [[ "${pattern:(-1)}" == "/" ]]; then
    pattern=""
    else
    pattern="$(basename ${pattern} 2> /dev/null)"
    search="$(dirname ${search} 2> /dev/null)"
    fi
fi
if [[  "x${search}" == "x" || "x${search}" == "x." ]]; then
    search="/"
fi
listing="$(ebook-device ls ${search} 2>/dev/null)"
prefix="${search}"
if [[ "x${prefix:(-1)}" != "x/" ]]; then
    prefix="${prefix}/"
fi
echo $(compgen -P "${prefix}" -W "${listing}" "${pattern}")
}
_ebook_device()
{
local cur prev
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
COMPREPLY=()
case "${prev}" in
    ls|rm|mkdir|touch|cat )
        COMPREPLY=( $(_ebook_device_ls "${cur}") )
        return 0
        ;;
    cp )
        if [[ ${cur} == prs500:* ]]; then
        COMPREPLY=( $(_ebook_device_ls "${cur:7}") )
        return 0
        else
        _filedir
        return 0
        fi
        ;;
    prs500 )
        COMPREPLY=( $(compgen -W "cp ls rm mkdir touch cat info books df" 
"${cur}") )
        return 0
        ;;
    * )
        if [[ ${cur} == prs500:* ]]; then
        COMPREPLY=( $(_ebook_device_ls "${cur:7}") )
        return 0
        else
        if [[ ${prev} == prs500:* ]]; then
            _filedir
            return 0
        else
            COMPREPLY=( $(compgen -W "prs500:" "${cur}") )
            return 0
        fi
        return 0
        fi
    ;;
esac
}
complete -o nospace  -F _ebook_device ebook-device
complete -o nospace -C calibre-complete ebook-convert


-- no debconf information

--- End Message ---
--- Begin Message ---
It's been seven years and many releases since this bug was filed, and
more than six months since an update was requested.  Given this, and
that I was unable to reproduce the bug (borrowed kindle from a
friend), I am closing it now.  Please don't hesitate to file a new bug
in the future; there are more pairs of eyes watching this package now
:-)

Regards,
Nicholas

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to