Package: bmap-tools
Version: 3.4-1
Severity: normal

Dear Maintainer,


When trying to copy a image located on the internet I get the following error:

bmaptool copy  http://tftp.qtec.com/qtec/europa/images/qt5022/qimage-dev-
qt5022.wic  /dev/sdb
bmaptool: info: discovered bmap file
'http://tftp.qtec.com/qtec/europa/images/qt5022/qimage-dev-qt5022.wic.bmap'
Traceback (most recent call last):
  File "/usr/bin/bmaptool", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/bmaptools/CLI.py", line 715, in main
    args.func(args)
  File "/usr/lib/python3/dist-packages/bmaptools/CLI.py", line 423, in
copy_command
    open_files(args)
  File "/usr/lib/python3/dist-packages/bmaptools/CLI.py", line 365, in
open_files
    (bmap_obj, bmap_path) = find_and_open_bmap(args)
  File "/usr/lib/python3/dist-packages/bmaptools/CLI.py", line 335, in
find_and_open_bmap
    shutil.copyfileobj(bmap_obj, tmp_obj)
  File "/usr/lib/python3.6/shutil.py", line 82, in copyfileobj
    fdst.write(buf)
  File "/usr/lib/python3.6/tempfile.py", line 622, in func_wrapper
    return func(*args, **kwargs)
TypeError: write() argument must be str, not bytes


Seems to be related to python3, since another installation of the same version
using python2 works just fine :S



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

Kernel: Linux 4.15.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bmap-tools depends on:
ii  python3  3.6.4-1

Versions of packages bmap-tools recommends:
ii  bzip2     1.0.6-8.1
ii  lzop      1.03-4+b1
ii  xz-utils  5.2.2-1.3

Versions of packages bmap-tools suggests:
pn  lz4            <none>
pn  pbzip2         <none>
pn  pigz           <none>
pn  python3-gpgme  <none>
ii  unzip          6.0-21

-- no debconf information

  • Bug#896182: bmap-tools: Bmaptools fails to copy im... Ricardo Ribalda Delgado

Reply via email to