chorobikmichal / HQ-Trivia-BOT

bot that can answer HQ Trivia questions
4 stars 8 forks source link

Hey Michal #2

Open aliguy opened 6 years ago

aliguy commented 6 years ago

Hi Michal, Im a front-end web dev / designer and am in the process of learning python - I know this may be a really basic question, but I would love it if you could help me out :). Not related to coding at all, I have a google cloud account with 300$ credit, w/ both API's enabled. I have made an API key for my google cloud account and also a Custom Search Engine, outside of the cloud account. Are these automatically linked through my Google login - I.e does the API key relate to the CSE ID automatically or is there a way to do something else?

Also I took a look at your projects - they look really great ! - if you need any front-end design / help I'd be happy to help you ;). I'm also a featured creator on ProductHunt so I can hunt your products once they go through a UI uplift :)

EDIT -----------------

Have installed all the missing modules and replaced import image with from PIL import Image yet when I run the script it returns

Python[11339:303459] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x110641370
Python[11339:303459] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSApplication _setup:]: unrecognized selector sent to instance 0x110641370'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fffd368a57b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00007fffe88f11da objc_exception_throw + 48
    2   CoreFoundation                      0x00007fffd370af14 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x00007fffd35fdc93 ___forwarding___ + 1059
    4   CoreFoundation                      0x00007fffd35fd7e8 _CF_forwarding_prep_0 + 120
    5   Tk                                  0x0000000104b8cc02 TkpInit + 471
    6   Tk                                  0x0000000104b082a9 Tk_Init + 1794
    7   _tkinter.cpython-36m-darwin.so      0x00000001003f4dfd Tcl_AppInit + 77
    8   _tkinter.cpython-36m-darwin.so      0x00000001003f2849 _tkinter_create + 889
    9   Python                              0x000000010006a0c8 _PyCFunction_FastCallDict + 552
    10  Python                              0x00000001000f3a54 call_function + 612
    11  Python                              0x00000001000f5464 _PyEval_EvalFrameDefault + 5604
    12  Python                              0x00000001000f2df0 _PyEval_EvalCodeWithName + 2720
    13  Python                              0x00000001000f3cb7 _PyFunction_FastCallDict + 439
    14  Python                              0x000000010000e234 _PyObject_FastCallDict + 356
    15  Python                              0x000000010000e900 _PyObject_Call_Prepend + 208
    16  Python                              0x000000010000dc23 PyObject_Call + 99
    17  Python                              0x00000001000893f1 slot_tp_init + 81
    18  Python                              0x000000010007fbb4 type_call + 212
    19  Python                              0x000000010000e184 _PyObject_FastCallDict + 180
    20  Python                              0x00000001000f3895 call_function + 165
    21  Python                              0x00000001000f5464 _PyEval_EvalFrameDefault + 5604
    22  Python                              0x00000001000f2df0 _PyEval_EvalCodeWithName + 2720
    23  Python                              0x00000001000f3cb7 _PyFunction_FastCallDict + 439
    24  Python                              0x000000010000e234 _PyObject_FastCallDict + 356
    25  Python                              0x000000010000e900 _PyObject_Call_Prepend + 208
    26  Python                              0x000000010000dc23 PyObject_Call + 99
    27  Python                              0x00000001000893f1 slot_tp_init + 81
    28  Python                              0x000000010007fbb4 type_call + 212
    29  Python                              0x000000010000e184 _PyObject_FastCallDict + 180
    30  Python                              0x00000001000f3895 call_function + 165
    31  Python                              0x00000001000f5464 _PyEval_EvalFrameDefault + 5604
    32  Python                              0x00000001000f2df0 _PyEval_EvalCodeWithName + 2720
    33  Python                              0x00000001000f2f94 PyEval_EvalCode + 100
    34  Python                              0x00000001001305be PyRun_FileExFlags + 206
    35  Python                              0x000000010013085f PyRun_SimpleFileExFlags + 447
    36  Python                              0x000000010014a52a Py_Main + 3898
    37  Python                              0x0000000100000dfe Python + 3582
    38  Python                              0x0000000100000c34 Python + 3124
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
yams888 commented 6 years ago

Hey, I have exactly the same problem! Was this ever resolved?

mehdipaco commented 6 years ago

The same issue here. After installing all the libraries I get this message and python stops for no apparent reason. Any help would be appreciated