Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'group' #202

Open
ahmadperformve opened this issue Jul 26, 2023 · 9 comments
Open

AttributeError: 'NoneType' object has no attribute 'group' #202

ahmadperformve opened this issue Jul 26, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@ahmadperformve
Copy link

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'

@ak7660
Copy link

ak7660 commented Jul 26, 2023

Same issue, is there a way to solve it?

@birdup000
Copy link

same issue here

@pzq7025
Copy link

pzq7025 commented Jul 26, 2023

you can update the package to solve the problem:

pip install -U poe-api

but you will meet a new issues:

RuntimeError: Failed to download https://poe.com too many times.

@pzq7025
Copy link

pzq7025 commented Jul 26, 2023

A very strange phenomenon is that although I encountered this bug after the update, it disappeared after running the program multiple times.
I suspect it is related to this issue #issues193.

@ahmadperformve
Copy link
Author

you can update the package to solve the problem:

pip install -U poe-api

but you will meet a new issues:

RuntimeError: Failed to download https://poe.com too many times.

I have already updated to the latest version but still face the issue!

@ading2210 ading2210 added the bug Something isn't working label Jul 26, 2023
@ading2210
Copy link
Owner

For now, try specifying the formkey manually.

@huyremy
Copy link

huyremy commented Jul 26, 2023

For now, try specifying the formkey manually.

ok, chơi luôn. Let's re-begin. Well well well...formkey...ok I can see fk have problem. Maybe inside OpenAI have something change about in founder's position.

362950939_9678849428853625_887480916740366864_n

@huyremy
Copy link

huyremy commented Jul 26, 2023

For now, try specifying the formkey manually.

It's work
Screenshot from 2023-07-27 04-00-29

@huyremy
Copy link

huyremy commented Jul 27, 2023

For now, try specifying the formkey manually.

ok, chơi luôn. Let's re-begin. Well well well...formkey...ok I can see fk have problem. Maybe inside OpenAI have something change about in founder's position.

362950939_9678849428853625_887480916740366864_n

I can see fk...and...I can see -U in (pip install -U poe-api)...ok...Now listen...
Hey...Can you C like me ? I can C FK -U

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants