Chat-archive

Latest version: v4.0.3

Safety actively analyzes 623866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

4.0.3

-----------------------------

Bug fix for the following :exc:`~exceptions.TypeError` exception raised by the Telegram backend:

.. code-block:: python

Traceback (most recent call last):
File "../lib/python3.5/site-packages/chat_archive/cli.py", line 199, in main
command_fn(arguments)
File "../lib/python3.5/site-packages/chat_archive/cli.py", line 286, in sync_cmd
self.synchronize(*arguments)
File "../lib/python3.5/site-packages/chat_archive/__init__.py", line 335, in synchronize
self.initialize_backend(backend_name, account_name).synchronize()
File "../lib/python3.5/site-packages/chat_archive/backends/telegram.py", line 97, in synchronize
event_loop.run_until_complete(self.connect_then_sync())
File "/usr/lib/python3.5/asyncio/base_events.py", line 467, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 294, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 240, in _step
result = coro.send(None)
File "../lib/python3.5/site-packages/chat_archive/backends/telegram.py", line 124, in connect_then_sync
elif dialog.date > conversation_in_db.last_modified:
TypeError: can't compare offset-naive and offset-aware datetimes

.. _Release 4.0.3: https://github.com/xolox/python-chat-archive/compare/4.0.2...4.0.3

4.0.2

-----------------------------

- Merged pull request `1`_: Automatically create archive directory when it
doesn't exist yet.

- Bumped hangups_ from 0.4.4 to 0.4.6 to improve Google Hangouts authentication
compatibility.

.. note:: Hangups_ release 0.4.6 (the latest available) doesn't actually work
for me, although I managed to get it to connect successfully after
hacking in captcha support, which I've since submitted as pull
request `446`_ 🙂.

.. _Release 4.0.2: https://github.com/xolox/python-chat-archive/compare/4.0.1...4.0.2
.. _1: https://github.com/xolox/python-chat-archive/pull/1
.. _hangups: https://pypi.org/project/hangups/
.. _446: https://github.com/tdryer/hangups/pull/446

4.0.1

-----------------------------

Just before publishing this project yesterday I propagated a rename throughout
the code base, rephrasing "password" as "secret" (my rationale being that
"naming things is important" 😇). Unfortunately that rename was propagated a
bit more thoroughly than I had intended, impacting the interaction with the
Hangups API. This should be fixed in release 4.0.1. For posterity, this relates
to the following exception::

AttributeError: 'GoogleAccountCredentials' object has no attribute 'get_password'

.. _Release 4.0.1: https://github.com/xolox/python-chat-archive/compare/4.0...4.0.1

4.0

.. _referring to: http://humanfriendly.readthedocs.io/en/latest/changelog.htmlrelease-4-13-2018-07-09
.. _six hundred lines: https://github.com/xolox/python-humanfriendly/compare/4.12.1...4.16.1

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.