apipy / HQApi

HQ Trivia & Words API, written in Python
GNU General Public License v3.0
14 stars 17 forks source link

region error #8

Closed NirwanTech closed 5 years ago

NirwanTech commented 5 years ago

Traceback (most recent call last): File "main.py", line 12, in ws = HQWebSocket(api) File "/home/runner/HQApi/hq_websocket.py", line 12, in init self.region = HQApi.api(api).region AttributeError: 'HQApi' object has no attribute 'region' 

NirwanTech commented 5 years ago

I know but I need to cash out money! As well as want to create a Websocket bot

Please help me if ur my subscriber!

On Tue, Feb 19, 2019, 8:21 AM Nothecaptain <notifications@github.com wrote:

Why do you need this dont you already have hq bot?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/katant/HQApi/issues/8#issuecomment-464958930, or mute the thread https://github.com/notifications/unsubscribe-auth/Aq1ed5UyAskf8lGfqyrMzXxFiMapd1Lxks5vO2aigaJpZM4bCD5v .

SuperBluw commented 5 years ago

First of all I am not a subscriber Second even if I was i would have no clue what to do and i highly suggest just to search your issue beforehand.Im assuming you arent using a rewrite of python try thar first.

NirwanTech commented 5 years ago

see same error again see ss https://imgur.com/qIb75Yx

On Tue, 19 Feb 2019 at 09:28, Nothecaptain notifications@github.com wrote:

First of all I am not a subscriber Second even if I was i would have no clue what to do and i highly suggest just to search your issue beforehand.Im assuming you arent using a rewrite of python try thar first.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/katant/HQApi/issues/8#issuecomment-464972289, or mute the thread https://github.com/notifications/unsubscribe-auth/Aq1ed26n52DV2QdOFdV6fnwy9S61NZMEks5vO3ZngaJpZM4bCD5v .

NirwanTech commented 5 years ago

Please Help Me God will help you!🙏

On Tue, 19 Feb 2019 at 15:31, Nirwan Tech devendrasinghnirwan786@gmail.com wrote:

see same error again see ss https://imgur.com/qIb75Yx

On Tue, 19 Feb 2019 at 09:28, Nothecaptain notifications@github.com wrote:

First of all I am not a subscriber Second even if I was i would have no clue what to do and i highly suggest just to search your issue beforehand.Im assuming you arent using a rewrite of python try thar first.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/katant/HQApi/issues/8#issuecomment-464972289, or mute the thread https://github.com/notifications/unsubscribe-auth/Aq1ed26n52DV2QdOFdV6fnwy9S61NZMEks5vO3ZngaJpZM4bCD5v .

nununoisy commented 5 years ago

This might be a larger issue - version 1.6.0 removed regions but there are still references to them throughout the code. I found two old references: hq_websocket.py line 12, and hq_api.py line 45. Removal might not be straightforward here. @katant, what should we do: remove regions from request headers, assume a default region, or create getter/setter functions for the region?

katant commented 5 years ago

Completely fix in 1.7.2