LINUX.ORG.RU
решено ФорумAdmin

Не могу загрузить исходный код в PPA

 , , ,


0

1

Всем привет. Думал что проблему пофиксили, но она осталась. Debian 9. Пытаюсь загрузить исходники на свой PPA при помощи dput-ng. В Debian 8 и Ubuntu 16.04 всё работает, а здесь выдаёт ошибку юникода:

[DEBUG] 1496562906.938614: (load_config) Loading configuration: profiles DEFAULT
[DEBUG] 1496562906.939437: (load_config) Loading configuration: profiles DEFAULT
[DEBUG] 1496562906.939561: (load_config) Loading configuration: profiles DEFAULT
[DEBUG] 1496562906.939721: (load_config) Loading configuration: metas boring
[DEBUG] 1496562906.941066: (load_config) Loading configuration: profiles DEFAULT
[DEBUG] 1496562906.941946: (load_config) Loading configuration: profiles aftl
[DEBUG] 1496562906.942125: (load_config) Loading configuration: profiles aftl
[DEBUG] 1496562906.942299: (load_config) Loading configuration: profiles aftl
[DEBUG] 1496562906.942592: (load_config) Loading configuration: profiles aftl
[DEBUG] 1496562906.942879: (get_config) Got configuration: aftl
[DEBUG] 1496562906.942925: (get_config)         hash: md5
[DEBUG] 1496562906.942975: (get_config)         scp_compress: False
[DEBUG] 1496562906.943026: (get_config)         hooks: [u'allowed-distribution', u'checksum', u'suite-mismatch', u'gpg']
[DEBUG] 1496562906.943075: (get_config)         meta: boring
[DEBUG] 1496562906.943121: (get_config)         interface: cli
[DEBUG] 1496562906.943167: (get_config)         run_lintian: False
[DEBUG] 1496562906.943213: (get_config)         allow_dcut: False
[DEBUG] 1496562906.943259: (get_config)         full_upload_log: False
[DEBUG] 1496562906.943304: (get_config)         name: aftl
[DEBUG] 1496562906.943361: (get_config)         default_host_main: 
[DEBUG] 1496562906.943408: (get_config)         incoming: ~samoilov-lex/ubuntu/aftl-stable/
[DEBUG] 1496562906.943451: (get_config)         allowed_distributions: (?!UNRELEASED)
[DEBUG] 1496562906.943497: (get_config)         pre_upload_command: 
[DEBUG] 1496562906.943543: (get_config)         allow_unsigned_uploads: False
[DEBUG] 1496562906.943589: (get_config)         passive_ftp: True
[DEBUG] 1496562906.943635: (get_config)         codenames: None
[DEBUG] 1496562906.943680: (get_config)         fqdn: ppa.launchpad.net
[DEBUG] 1496562906.943723: (get_config)         allowed-distribution: {}
[DEBUG] 1496562906.943768: (get_config)         check_version: False
[DEBUG] 1496562906.943810: (get_config)         login: anonymous
[DEBUG] 1496562906.943855: (get_config)         run_dinstall: False
[DEBUG] 1496562906.943896: (get_config)         method: ftp
[DEBUG] 1496562906.943941: (get_config)         post_upload_command: 
[DEBUG] 1496562906.943988: (validate_object) Loading schema config from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.944126: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.944921: (load_config) Loading configuration: hooks allowed-distribution
[DEBUG] 1496562906.945214: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.945304: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.945458: (mangle_sys) Loading external script location /usr/share/dput-ng/scripts
[DEBUG] 1496562906.945509: (mangle_sys) Loading external script location /etc/dput.d/scripts
[DEBUG] 1496562906.945569: (mangle_sys) Loading external script location /media/DATA/Загрузки/android-file-transfer-3.0/skel/scripts
[DEBUG] 1496562906.945619: (mangle_sys) Loading external script location /home/sunderland93/.dput.d/scripts
[DEBUG] 1496562906.945996: (load_config) Loading configuration: hooks checksum
[DEBUG] 1496562906.946292: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.946383: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.946684: (load_config) Loading configuration: hooks suite-mismatch
[DEBUG] 1496562906.946968: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.947058: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.947276: (load_config) Loading configuration: hooks gpg
[DEBUG] 1496562906.947582: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.947672: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.947958: (determine_logfile) Writing log to /home/sunderland93/Загрузки/android-file-transfer_3.0-3_source.aftl.upload
Uploading android-file-transfer using ftp to aftl (host: ppa.launchpad.net; directory: ~samoilov-lex/ubuntu/aftl-stable/)
[INFO] 1496562906.949333: (invoke_dput) Uploading android-file-transfer using ftp to aftl (host: ppa.launchpad.net; directory: ~samoilov-lex/ubuntu/aftl-stable/)
[DEBUG] 1496562906.949629: (load_config) Loading configuration: hooks allowed-distribution
[DEBUG] 1496562906.949931: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.950022: (validate_object) Skipping skel/schemas
running allowed-distribution: check whether a local profile permits uploads to the target distribution
[INFO] 1496562906.950145: (run_hook) running allowed-distribution: check whether a local profile permits uploads to the target distribution
[DEBUG] 1496562906.950317: (load_config) Loading configuration: hooks allowed-distribution
[DEBUG] 1496562906.950691: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.950828: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.951203: (load_config) Loading configuration: interfaces cli
[DEBUG] 1496562906.951605: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.951696: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.952216: (load_config) Loading configuration: hooks checksum
[DEBUG] 1496562906.952516: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.952605: (validate_object) Skipping skel/schemas
running checksum: verify checksums before uploading
[INFO] 1496562906.952725: (run_hook) running checksum: verify checksums before uploading
[DEBUG] 1496562906.952891: (load_config) Loading configuration: hooks checksum
[DEBUG] 1496562906.953171: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.953261: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.953497: (load_config) Loading configuration: interfaces cli
[DEBUG] 1496562906.953777: (validate_object) Loading schema plugin from /usr/share/dput-ng/schemas
[DEBUG] 1496562906.953867: (validate_object) Skipping skel/schemas
[DEBUG] 1496562906.954066: (validate_checksums) validating md5 checksums
Traceback (most recent call last):
  File "/usr/bin/dput", line 106, in <module>
    upload_package(changes, args)
  File "/usr/lib/python2.7/dist-packages/dput/uploader.py", line 312, in invoke_dput
    run_pre_hooks(changes, profile)
  File "/usr/lib/python2.7/dist-packages/dput/hook.py", line 54, in run_pre_hooks
    run_hook(name, hook, changes, profile)
  File "/usr/lib/python2.7/dist-packages/dput/hook.py", line 83, in run_hook
    return run_func_by_name('hooks', name, changes, profile)
  File "/usr/lib/python2.7/dist-packages/dput/util.py", line 366, in run_func_by_name
    obj(changes, profile, interface)
  File "/usr/lib/python2.7/dist-packages/dput/hooks/checksum.py", line 53, in validate_checksums
    changes.validate_checksums(check_hash=profile["hash"])
  File "/usr/lib/python2.7/dist-packages/dput/changes.py", line 297, in validate_checksums
    for filename in self.get_files():
  File "/usr/lib/python2.7/dist-packages/dput/changes.py", line 121, in get_files
    for z in self._data['Files']]
  File "/usr/lib/python2.7/posixpath.py", line 73, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 19: ordinal not in range(128)


С обычным dput ошибка немного другая:
D: dput 0.12.1
D: Login: sunderland93
D: Parsing Configuration File /etc/dput.cf
D: Parsing Configuration File /home/sunderland93/.dput.cf
D: Checking if a host was named on the command line.
D: Host aftl found in config
D: modules_found: ['ftp', 'http', 'https', 'local', 'rsync', 'scp']
D: Module: ftp (<module 'dput.methods.ftp' from '/usr/share/dput/dput/methods/ftp.pyc'>)
D: Method name: ftp
D: Module: http (<module 'dput.methods.http' from '/usr/share/dput/dput/methods/http.pyc'>)
D: Method name: http
D: Module: https (<module 'dput.methods.https' from '/usr/share/dput/dput/methods/https.pyc'>)
D: Method name: https
D: Module: local (<module 'dput.methods.local' from '/usr/share/dput/dput/methods/local.pyc'>)
D: Method name: local
D: Module: rsync (<module 'dput.methods.rsync' from '/usr/share/dput/dput/methods/rsync.pyc'>)
D: Method name: rsync
D: Module: scp (<module 'dput.methods.scp' from '/usr/share/dput/dput/methods/scp.pyc'>)
D: Method name: scp
D: Validating contents of changes file /home/sunderland93/Загрузки/android-file-transfer_3.0-3_source.changes
D: Architecture: source
D: dsc-File: android-file-transfer_3.0-3.dsc
D: upload control file: /home/sunderland93/Загрузки/android-file-transfer_3.0-3_source.changes
D: source control file: /home/sunderland93/Загрузки/android-file-transfer_3.0-3.dsc
Checking signature on .changes
Traceback (most recent call last):
  File "/usr/bin/dput", line 11, in <module>
    load_entry_point('dput==0.12.1', 'console_scripts', 'execute-dput')()
  File "/usr/share/dput/dput/dput.py", line 1012, in main
    config, check_only, check_version, unsigned_upload, debug)
  File "/usr/share/dput/dput/dput.py", line 374, in verify_files
    config, check_only, unsigned_upload, binary_upload, debug)
  File "/usr/share/dput/dput/dput.py", line 272, in verify_signature
    assert_good_signature_or_exit(changes_file_path)
  File "/usr/share/dput/dput/dput.py", line 256, in assert_good_signature_or_exit
    crypto.check_file_signature(infile)
  File "/usr/share/dput/dput/crypto.py", line 106, in check_file_signature
    path=infile.name, sig=signature, description=description))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 19: ordinal not in range(128)

Помогите разобраться. Репортил баг в Debian - никакого ответа.

Жалуется на эту точку между строками:

Changes:
 android-file-transfer (3.0-3) xenial; urgency=low
 .
   * Rebuild for Ubuntu
Checksums-Sha1:

в файле .changes

Sunderland93 ★★★★★
() автор топика
Последнее исправление: Sunderland93 (всего исправлений: 1)

Если запустить dput с параметром -u (не проверять GPG сигнатуры) - то всё загружается. С dput-ng однако не прокатывает

Sunderland93 ★★★★★
() автор топика
Ответ на: комментарий от Sunderland93

/home/sunderland93/Загрузки/android-file-transfer_3.0-3.dsc
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 19: ordinal not in range(128)

Попробуй переложить файлы в каталог без русских символов.

pod ★★
()
Ответ на: комментарий от pod

Опа! Спасибо большое, действительно помогло!

Sunderland93 ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.