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

Start bugs #7

Open
pascalo7 opened this issue Jun 11, 2015 · 10 comments
Open

Start bugs #7

pascalo7 opened this issue Jun 11, 2015 · 10 comments

Comments

@pascalo7
Copy link

No description provided.

@pascalo7 pascalo7 changed the title I get this message every time I try and run the script I've tried on python 2.7 and 3.4 Please remove Jun 11, 2015
@Andygmb
Copy link
Owner

Andygmb commented Jun 11, 2015

Sorry - this was my fault for not including required modules (of which PRAW is one) in the readme. Did you get your issue sorted?

@pascalo7
Copy link
Author

Yeah but i came across a few others, let me go find what they were

@pascalo7
Copy link
Author

:0: UserWarning: The keyword `bot` in your user_agent may be problematic.
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\twitchy_the_bot-master\setup.py", line 12
, in <module>
    r.login(username=username, password=password)
  File "c:\Python27\lib\site-packages\praw\__init__.py", line 1331, in login
    self.request_json(self.config['login'], data=data)
  File "c:\Python27\lib\site-packages\praw\decorators.py", line 189, in wrapped
    raise error_list[0]
praw.errors.InvalidUserPass: `wrong password` on field `passwd`

@pascalo7 pascalo7 changed the title Please remove Start bugs Jun 11, 2015
@Andygmb
Copy link
Owner

Andygmb commented Jun 11, 2015

The warning about the usage of the word "bot" in the useragent string should no longer happen. The other error is due to an invalid password - did you update config.py with the bot's username/password/subreddit?

https://github.com/Andygmb/twitchy_the_bot/blob/master/config.py#L1-L2

@pascalo7
Copy link
Author

:0: UserWarning: The keyword `bot` in your user_agent may be problematic.
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\twitchy_the_bot-master\setup.py", line 15
, in <module>
    with open("default_wiki_config.json", "r") as configjson:
IOError: [Errno 2] No such file or directory: 'default_wiki_config.json'

and i updated to the latest version of the bot (if it had been updated)

@Andygmb
Copy link
Owner

Andygmb commented Jun 11, 2015

Unfortunately that's an issue with running the bot on windows currently - #2 I haven't had time to switch to windows to test it out.

However you can fix it yourself by adding the absolute path to the file on this line:

https://github.com/Andygmb/twitchy_the_bot/blob/master/setup.py#L15

Judging by your previous tracebacks you would want to change it to

with open("C:\Users\Administrator\Desktop\twitchy_the_bot-master\default_wiki_config.json", "r") as configjson:

@pascalo7
Copy link
Author

Thanks, I'll try that out in a bit

@Andygmb
Copy link
Owner

Andygmb commented Jun 11, 2015

Cool - let me know if it works out or if you have any other issues.

@pascalo7
Copy link
Author

:0: UserWarning: The keyword `bot` in your user_agent may be problematic.
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\twitchy_the_bot-master\setup.py", line 15
, in <module>
    with open("C:\Users\Administrator\Desktop\twitchy_the_bot-master\default_wik
i_config.json", "r") as configjson:
IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Users\\Administrator\\D
esktop\twitchy_the_bot-master\\default_wiki_config.json'

@Andygmb
Copy link
Owner

Andygmb commented Jun 12, 2015

Will fix this later today when I get to a windows machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants