You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing your library, thank you very much for your work! I've had a problem testing your project with Python 3.11 and Chrome. I try to follow the usage example but I get this error:
$ python
Python 3.11.0 (main, Oct 25 2022, 23:59:53) [GCC 12.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import browser_cookie3
>>> cj = browser_cookie3.chrome()
Traceback (most recent call last):
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 395, in _decrypt
decrypted += cipher.feed()
^^^^^^^^^^^^^
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/pyaes/blockfeeder.py", line 169, in feed
result = self._final(self._buffer, self._padding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/pyaes/blockfeeder.py", line 77, in _block_final_decrypt
return strip_PKCS7_padding(self.decrypt(data))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/pyaes/util.py", line 58, in strip_PKCS7_padding
raise ValueError("invalid padding byte")
ValueError: invalid padding byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 840, in chrome
return Chrome(cookie_file, domain_name, key_file).load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 329, in load
value = self._decrypt(value, enc_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nekmo/.virtualenvs/xxxxxxxxxxxxx/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 397, in _decrypt
raise BrowserCookieError('Unable to get key for cookie decryption')
browser_cookie3.BrowserCookieError: Unable to get key for cookie decryption
However with Python 3.10 I do not receive an error:
$ ipython
/usr/lib/python3.10/site-packages/IPython/core/interactiveshell.py:852: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
warn(
Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import browser_cookie3
In [2]: cj = browser_cookie3.chrome()
Hi,
I'm testing your library, thank you very much for your work! I've had a problem testing your project with Python 3.11 and Chrome. I try to follow the usage example but I get this error:
However with Python 3.10 I do not receive an error:
Python 3.11 pip freeze:
Python 3.10 pip freeze:
Let me know if you need more information. Also if you need help with the error.
Thanks!
The text was updated successfully, but these errors were encountered: