Your message dated Sun, 12 Feb 2023 13:50:59 +0000
with message-id <e1prckt-00bikw...@fasolo.debian.org>
and subject line Bug#996799: fixed in twitterwatch 0.1-3
has caused the Debian Bug report #996799,
regarding twitterwatch: unusable with tweepy version 4
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 ow...@bugs.debian.org
immediately.)
--
996799: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996799
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: twitterwatch
Version: 0.1-2
Severity: grave
Tag: patch
X-Debbugs-Cc: Boyuan Yang <by...@debian.org>
Dear maintainer,
twitterwatch has become unusable with the new python3-tweepy package
because of backwards-incompatible API changes in version 4.
Attached is an (untested) patch that should make the package work
again.
Cheers
Timo
PS. You may also want to update d/watch to point to the new
upstream repository at https://gitlab.com/chaica/twitterwatch
--
⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯
diff --git a/twitterwatch/main.py b/twitterwatch/main.py
index f7a481b..e811e6f 100644
--- a/twitterwatch/main.py
+++ b/twitterwatch/main.py
@@ -43,7 +43,8 @@ class Main(object):
self.auth.secure = True
self.auth.set_access_token(self.cfgvalues['access_token'],
self.cfgvalues['access_token_secret'])
- self.api = tweepy.API(self.auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)
+ self.api = tweepy.API(self.auth, wait_on_rate_limit=True)
+ self.me = self.api.verify_credentials()
self.main()
def main(self):
@@ -59,7 +60,7 @@ class Main(object):
# get the interval between two checks
pause = datetime.timedelta(minutes=self.cfgvalues['check_interval'])
if (currentdate - pause) > lastactiondate:
- user = self.api.me().screen_name
+ user = self.me.screen_name
# warn
warning = 'Twitter stream of {} has stopped since {}'.format(user, lastactiondate.strftime("%d/%m/%Y - %H:%M:%S"))
emailwarn = EmailWarning(self.cfgvalues, warning, user)
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: twitterwatch
Source-Version: 0.1-3
Done: Dylan Aïssi <dai...@debian.org>
We believe that the bug you reported is fixed in the latest version of
twitterwatch, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 996...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Dylan Aïssi <dai...@debian.org> (supplier of updated twitterwatch package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 12 Feb 2023 14:20:45 +0100
Source: twitterwatch
Architecture: source
Version: 0.1-3
Distribution: unstable
Urgency: medium
Maintainer: Carl Chenet <cha...@debian.org>
Changed-By: Dylan Aïssi <dai...@debian.org>
Closes: 996799
Changes:
twitterwatch (0.1-3) unstable; urgency=medium
.
* Team upload.
.
[ Debian Janitor ]
* Update standards version to 4.6.1, no changes needed.
.
[ Malik Mlitat ]
* Create patch to fix tweepy api call; Closes: #996799
* Fix lint warning in copyright file
* Update standards version to 4.6.2
* add integration tests
* adapt watch file with the new homepage
.
[ Dylan Aïssi ]
* d/copyright: remove comment with duplicated data and update source url
* d/control: update Homepage field
Checksums-Sha1:
70952ca14506f29f594a3ad9963ad0fe111f51f3 2049 twitterwatch_0.1-3.dsc
b72aee3bb6c478100cdcbced3134e29401e8be81 4220 twitterwatch_0.1-3.debian.tar.xz
e22046f34ecc9e66aaa84c1c6d004153b5f1200b 6573
twitterwatch_0.1-3_amd64.buildinfo
Checksums-Sha256:
232933e012b052e36bfbca55fdef10e1dad41401419aa3010e70ec8b5a57f7eb 2049
twitterwatch_0.1-3.dsc
c979a18871e80d5511ca77c51aa48af5eb0bded90d9455053f3896c3810948a1 4220
twitterwatch_0.1-3.debian.tar.xz
1e24941ab0b9d3cf56d6bfdd4ba3e9ac0dde41f18ffe5db9bf7107b509faa364 6573
twitterwatch_0.1-3_amd64.buildinfo
Files:
99c35900ea7b05fec50652984ae9d014 2049 net optional twitterwatch_0.1-3.dsc
852ed570ad43ad3a693b698ecac9dde3 4220 net optional
twitterwatch_0.1-3.debian.tar.xz
cf1f5c380c8af11801007d7c4b75d307 6573 net optional
twitterwatch_0.1-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEmjwHvQbeL0FugTpdYS7xYT4FD1QFAmPo63AACgkQYS7xYT4F
D1T6EQ//WYk9dYeFiamU3WVN/HKqpufY/VQoNH7udkxjANp1e9a9Sx4Z6xdVRIxM
3V8RvNPFc0u3EfQ7ONVaVkH6frP6rt5p+Kuvcugx3XaTksmZgpTpkr3toEx9IHJa
N6OPq9jo3WWLb1nhBZ4By9EMu+A0Ll/MuqH1u3Yu7GiW9L4kxJ3GjkaDMtQSxJEr
0ECzkEeWgjN/l4thjUiQ4DlzWmZPt7xSKLCQkg0dryTpbBiMt2ni7+Rc1+szou+M
bk3KbCTw6IYRraJ5psckGM9paWEGB089rRvAJaM44VEvdMr/9paKyhb5wWL8AcEx
04iacP1NLVNpKne/D9xw8SUXGajCx1dnsdsNpDteljatemU4SdGlWOOeKBuwody4
WE1Yb1JSHBtp8FI5/eGWVgP4eS6sAEHiXlCZ//eJBZdLh23Yu/06pBBSHJdxpxW/
SocgWGj2dA7wK8VITbKCn36BL8pNCypIRZXuPx3Y4QZ8fiKUw5JFKVbga1R7Rp0D
DNz5tAFthKKRyinM4ZG9SXFHLsF8E0RkEXMX2KB5SavSINzOO/nUZjybn67XIuZV
6oBTigyMy8SUVKJV7uJ0Su3upaVhOyUF06cNzxG50LHqkBcTQg3dfnKHrdnkKQbL
uMRswGcdFsr/st4UzbSE/FREW65sr/SEt7TQtOR+y7EpdXsvtHM=
=7Ni5
-----END PGP SIGNATURE-----
--- End Message ---