Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init() unexpected keyword 'key' + Windows issue #55

Closed
papiLUL opened this issue Feb 6, 2021 · 10 comments
Closed

init() unexpected keyword 'key' + Windows issue #55

papiLUL opened this issue Feb 6, 2021 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@papiLUL
Copy link

papiLUL commented Feb 6, 2021

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

@papiLUL papiLUL added the bug Something isn't working label Feb 6, 2021
@papiLUL papiLUL changed the title im to dumb im getting this message Feb 6, 2021
@Tkd-Alex
Copy link
Owner

Tkd-Alex commented Feb 6, 2021

Share a screenshot or full error logs

@papiLUL
Copy link
Author

papiLUL commented Feb 6, 2021

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

@Rakambda
Copy link
Contributor

Rakambda commented Feb 6, 2021

In FilterCondition, replace key with by.

https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#filtercondition

@Tkd-Alex
Copy link
Owner

Tkd-Alex commented Feb 6, 2021

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

@Rakambda
Copy link
Contributor

Rakambda commented Feb 6, 2021

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

@papiLUL
Copy link
Author

papiLUL commented Feb 6, 2021

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?

@Rakambda
Copy link
Contributor

Rakambda commented Feb 6, 2021

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).

@papiLUL
Copy link
Author

papiLUL commented Feb 6, 2021

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

@Rakambda
Copy link
Contributor

Rakambda commented Feb 6, 2021

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).

@papiLUL
Copy link
Author

papiLUL commented Feb 6, 2021

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

@Tkd-Alex Tkd-Alex changed the title im getting this message init() got an unexpected keyword argument 'key' + Windows issue Feb 7, 2021
@Tkd-Alex Tkd-Alex closed this as completed Feb 7, 2021
@Tkd-Alex Tkd-Alex changed the title init() got an unexpected keyword argument 'key' + Windows issue init() unexpected keyword 'key' + Windows issue Feb 7, 2021
@Tkd-Alex Tkd-Alex added help wanted Extra attention is needed and removed bug Something isn't working labels Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants