Tkd-Alex/Twitch-Channel-Points-Miner-v2

init() unexpected keyword 'key' + Windows issue

papiLUL opened this issue · 10 comments

I'm getting this message when I play the code
init() got an unexpected keyword argument 'key'

Share a screenshot or full error logs

http://prntscr.com/yk2an3
I'm probably just dumb sorry Sadge

use by instead key, I forgot to update the example file


If you have followed the example file maybe you will have problems with decision and condition.
I've updated the example.py, check it out

@Tkd-Alex Also in the readme, there's "Allowed values for key are:" & "Allowed values for condition are: GT, LT, GTE, LTE"

it works now but only in pycham
in python it won't run
https://www.youtube.com/watch?v=PJiqtfmFoqE&ab_channel=Mat%C4%9BjPap%C3%A1%C4%8Dek
any idea?

You should probably run the script from a terminal instead of from the explorer so you can see the error: PermissionError: [WinError 5] Pristup bys odepren: C:/WINDOWS/System32/Cookies.
This is due to the fact that when you run the file that way (explorer), its working directory is C:/WINDOWS/System32 and not your current directory.

So either run it another way (from a terminal) in the working directory you want, or run it as admin (which isn't the best and will put some files it needs into C:/WINDOWS/System32 so not ideal either).

I managed to run it in cmd
how do I run it in python?

python run.py

Or you can copy the command that pycharm runs and that is displayed at the beginning of a run (but be careful of the working directory in that case).

it's all working now
thank you so much <3