This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
AttributeError: 'NoneType' object has no attribute 'group' #202
Labels
bug
Something isn't working
Comments
Same issue, is there a way to solve it? |
same issue here |
you can update the package to solve the problem: pip install -U poe-api but you will meet a new issues:
|
A very strange phenomenon is that although I encountered this bug after the update, it disappeared after running the program multiple times. |
I have already updated to the latest version but still face the issue! |
For now, try specifying the formkey manually. |
I can see fk...and...I can see -U in (pip install -U poe-api)...ok...Now listen... |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using Windows 11 and have updated the poe-api module to Version: 0.4.17 but I am getting this error.
Traceback (most recent call last):
File "c:\Users\ThinkPad\Desktop\PerformVE\sentiment_analysis_api\Sentiment_Analysis_3\main.py", line 144, in
client = poe.Client(token)
^^^^^^^^^^^^^^^^^
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 152, in init
self.connect_ws()
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 405, in connect_ws
self.setup_connection()
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 178, in setup_connection
self.next_data = self.get_next_data(overwrite_vars=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 226, in get_next_data
self.formkey = self.extract_formkey(r.text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ThinkPad\AppData\Local\Programs\Python\Python311\Lib\site-packages\poe.py", line 203, in extract_formkey
script_text = re.search(script_regex, html).group(1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
The text was updated successfully, but these errors were encountered: