launchpad-users team mailing list archive
-
launchpad-users team
-
Mailing list archive
-
Message #07255
Why I am unable to push the .orig.tar.gz?
In my project: https://github.com/pc-magas/mkdotenv/tree/dev , I try to
upload the sources and release my package for that I used the following
Makefile:
```
VERSION := $(shell grep 'const VERSION' ./src/mkdotenv.go | sed -E
's/.*"([^"]+)".*/\1/')
DIST ?= jammy
ppa:
cp ./debian/changelog ./changelog.debian
# I want to build for multiple versions
sed -i 's/unstable/$(DIST)/g' debian/changelog
tar --exclude=debian --exclude=alpinebuild -czf
../mkdotenv_$(VERSION).orig.tar.gz src man Makefile
dpkg-buildpackage -S
dput ppa:pcmagas/mkdotenv ../mkdotenv_$(VERSION)-3_source.changes
../mkdotenv_$(VERSION).orig.tar.gz
cp ./changelog.debian ./debian/changelog
```
Then I build it as:
```
export DEB_SIGN_KEYID=^key_id^
make ppa
```
But I got the error:
```
dput ppa:pcmagas/mkdotenv ../mkdotenv_0.1.0-3_source.changes
../mkdotenv_0.1.0.orig.tar.gz
Uploading mkdotenv using ftp to ppa (host: ppa.launchpad.net; directory:
~pcmagas/mkdotenv)
running supported-distribution: check whether the target distribution is
currently supported (using distro-info)
{'allowed': ['release'], 'known': ['release', 'proposed', 'updates',
'backports', 'security']}
running required-fields: check whether a field is present and non-empty
in the changes file
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running check-debs: makes sure the upload contains a binary package
running gpg: check GnuPG signatures before the upload
Uploading mkdotenv_0.1.0-3.dsc
Uploading mkdotenv_0.1.0-3.debian.tar.xz
Uploading mkdotenv_0.1.0-3_source.buildinfo
Uploading mkdotenv_0.1.0-3_source.changes
Traceback (most recent call last):
File "/usr/bin/dput", line 125, in <module>
changes = dput.changes.parse_changes_file(
File "/usr/lib/python3/dist-packages/dput/changes.py", line 339, in
parse_changes_file
_c = Changes(filename=filename)
File "/usr/lib/python3/dist-packages/dput/changes.py", line 82, in
__init__
self._data = deb822.Changes(open(filename))
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1874, in
__init__
self.split_gpg_and_payload(
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1135, in
split_gpg_and_payload
for line_ in sequence:
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1875, in
<genexpr>
(self._bytes(s, encoding) for s in sequence),
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1:
invalid start byte
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line
153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory:
'/var/crash/_usr_bin_dput.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/dput", line 125, in <module>
changes = dput.changes.parse_changes_file(
File "/usr/lib/python3/dist-packages/dput/changes.py", line 339, in
parse_changes_file
_c = Changes(filename=filename)
File "/usr/lib/python3/dist-packages/dput/changes.py", line 82, in
__init__
self._data = deb822.Changes(open(filename))
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1874, in
__init__
self.split_gpg_and_payload(
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1135, in
split_gpg_and_payload
for line_ in sequence:
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1875, in
<genexpr>
(self._bytes(s, encoding) for s in sequence),
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1:
invalid start byte
make: *** [Makefile:49: ppa] Error 1
```
After testing I found out if I try to `dput` only the `.orig.tar.gz` I
get the error:
```
$export VERSION=0.1.0; dput ppa:pcmagas/mkdotenv
../mkdotenv_$VERSION.orig.tar.gz --force
Traceback (most recent call last):
File "/usr/bin/dput", line 125, in <module>
changes = dput.changes.parse_changes_file(
File "/usr/lib/python3/dist-packages/dput/changes.py", line 339, in
parse_changes_file
_c = Changes(filename=filename)
File "/usr/lib/python3/dist-packages/dput/changes.py", line 82, in
__init__
self._data = deb822.Changes(open(filename))
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1874, in
__init__
self.split_gpg_and_payload(
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1135, in
split_gpg_and_payload
for line_ in sequence:
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1875, in
<genexpr>
(self._bytes(s, encoding) for s in sequence),
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1:
invalid start byte
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line
153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory:
'/var/crash/_usr_bin_dput.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/dput", line 125, in <module>
changes = dput.changes.parse_changes_file(
File "/usr/lib/python3/dist-packages/dput/changes.py", line 339, in
parse_changes_file
_c = Changes(filename=filename)
File "/usr/lib/python3/dist-packages/dput/changes.py", line 82, in
__init__
self._data = deb822.Changes(open(filename))
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1874, in
__init__
self.split_gpg_and_payload(
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1135, in
split_gpg_and_payload
for line_ in sequence:
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1875, in
<genexpr>
(self._bytes(s, encoding) for s in sequence),
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1:
invalid start byte
```