When I run the script I get this error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 119, in _verify_signature
h.verify(data[-32:])
File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/hmac.py", line 74, in verify
ctx.verify(signature)
File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/hmac.py", line 75, in verify
raise InvalidSignature("Signature did not match digest.")
cryptography.exceptions.InvalidSignature: Signature did not match digest.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Documents/decrypt.py", line 28, in <module>
contents_decrypted = Fernet(secretkey).decrypt(contents)
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 80, in decrypt
return self._decrypt_data(data, timestamp, time_info)
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 137, in _decrypt_data
self._verify_signature(data)
File "/usr/lib/python3/dist-packages/cryptography/fernet.py", line 121, in _verify_signature
raise InvalidToken
cryptography.fernet.InvalidToken
I tried to run the script to decrypt my files but it shows the error.
Related
Traceback (most recent call last):
File "C:\Users\Njoroge\OneDrive\Desktop\FollowerBot-main\FollowerBot-main\get_instagram_followers.py", line 46, in <module>
ig.setup()
File "C:\Users\Njoroge\OneDrive\Desktop\FollowerBot-main\FollowerBot-main\get_instagram_followers.py", line 13, in setup
Setup.init(self)
File "C:\Users\Njoroge\OneDrive\Desktop\FollowerBot-main\FollowerBot-main\init.py", line 15, in init
self.browser = uc.Chrome(options=chrome_options, version_main=108)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\undetected_chromedriver\__init__.py", line 53, in __new__
instance.__init__(*args, **kwargs)
TypeError: WebDriver.__init__() got an unexpected keyword argument 'version_main'
help please, i think its about my chrome version but its up to date.
Tried different things,even added buffered=True keep getting Unread result found
https://hastebin.com/ebimukafas.py
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\aron\AppData\Local\Programs\Python\Python3732\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "C:/Users/aron/.PyCharmCE2019.1/config/scratches/scratch_3.py", line 41, in add_to_db
cursor.execute(command,values)
File "C:\Users\aron\PycharmProjects\new\venv\lib\site-packages\mysql\connector\cursor.py", line 521, in execute
self._connection.handle_unread_result()
File "C:\Users\aron\PycharmProjects\new\venv\lib\site-packages\mysql\connector\connection.py", line 1059, in handle_unread_result
raise errors.InternalError("Unread result found")
mysql.connector.errors.InternalError: Unread result found
when i run the command
import win32com.client
exl = win32com.client.Dispatch('Excel.Application')
im getting the following error.. how can i solve this
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\win32com\client\dynamic.py", line 89, in _GetGoodDispatch
IDispatch = pythoncom.connect(IDispatch)
pywintypes.com_error: (-2147221021, 'Operation unavailable', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python36\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Program Files\Python36\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Program Files\Python36\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147024893, 'The system cannot find the path specified.', None, None)
check what your excel programID or shortcut is from your excel properties, it might be different. This only gives you access to read environment variables where your application ID is stored.
from pygeocoder import Geocoder
results = Geocoder.geocode("Tian'anmen, Beijing")
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pygeocoder.py", line 129, in geocode
return GeocoderResult(Geocoder.get_data(params=params))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pygeocoder.py", line 212, in get_data
raise GeocoderError(response_json['status'], response.url)
pygeolib.GeocoderError: Error OVER_QUERY_LIMIT
Query: https://maps.google.com/maps/api/geocode/json?address=china&sensor=false&bounds=®ion=&language=&components=
Since today I am experiencing some errors caused by the yahoo_finance package version 1.4.
Here is a code example that is causing the error:
from yahoo_finance import Share
Apple = Share("AAPL")
Results in the following Error:
Traceback (most recent call last):
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 120, in _request
_, results = response['query']['results'].popitem()
AttributeError: 'NoneType' object has no attribute 'popitem'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 123, in _request
raise YQLQueryError(response['error']['description'])
KeyError: 'error'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Julian\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-44fc1f59aa21>", line 1, in <module>
Apple = Share("AAPL")
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 178, in __init__
self.refresh()
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 142, in refresh
self.data_set = self._fetch()
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 181, in _fetch
data = super(Share, self)._fetch()
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 134, in _fetch
data = self._request(query)
File "C:\Users\Julian\Anaconda3\lib\site-packages\yahoo_finance\__init__.py", line 125, in _request
raise YQLResponseMalformedError()
yahoo_finance.YQLResponseMalformedError: Response malformed.
Do you experience similar issues or is this only an issue for me personally?
Thank you for your replies.
If yes - what are potential fixes for this issue?