Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Two different errors #75

Open
Sh1z0 opened this issue Apr 18, 2019 · 0 comments
Open

Two different errors #75

Sh1z0 opened this issue Apr 18, 2019 · 0 comments

Comments

@Sh1z0
Copy link

Sh1z0 commented Apr 18, 2019

While trying to run the bot i encountered two errors.

The first is when Steam is not running

2019-04-19 00:08:36 - INFO - bot - APScheduler failed to schedule run, forcing run now
2019-04-19 00:08:36 - DEBUG - bot - Value run_now modified
2019-04-19 00:08:36 - DEBUG - bot - Value stop modified
2019-04-19 00:08:36 - INFO - apscheduler.scheduler - Scheduler started
2019-04-19 00:08:36 - INFO - bot.provider.Steam - Starting Steam...
2019-04-19 00:08:39 - CRITICAL - bot - Could not get a provider, take a look at your config file
2019-04-19 00:08:39 - CRITICAL - bot - Win handle is not valid for Steam
2019-04-19 00:08:39 - DEBUG - bot - Traceback (most recent call last):
File "main.py", line 48, in setup_runtime
dlRuntime.set_provider(get_provider(uconfig.get('bot', 'provider'))(scheduler, uconfig, dlRuntime))
File "D:\Yugioh\bot\providers\steam\steam.py", line 47, in init
self.ensure_resolutions_matches()
File "D:\Yugioh\bot\providers\steam\steam.py", line 137, in ensure_resolutions_matches
img = self.get_img_from_screen_shot()
File "D:\Yugioh\bot\providers\actions.py", line 39, in get_img_from_screen_shot
screen_shot = self.take_png_screenshot()
File "D:\Yugioh\bot\providers\steam\steam.py", line 293, in take_png_screenshot
raise Exception("Win handle is not valid for Steam")
Exception: Win handle is not valid for Steam

The second is when Steam is running

2019-04-19 00:09:36 - INFO - bot - APScheduler failed to schedule run, forcing run now
2019-04-19 00:10:36 - INFO - bot - APScheduler failed to schedule run, forcing run now
2019-04-19 00:11:36 - INFO - bot - APScheduler failed to schedule run, forcing run now
2019-04-19 00:11:37 - DEBUG - bot - Value stop modified
2019-04-19 00:11:37 - DEBUG - bot - Value run_now modified
2019-04-19 00:11:37 - INFO - apscheduler.scheduler - Scheduler started
2019-04-19 00:11:37 - CRITICAL - bot - Could not get a provider, take a look at your config file
2019-04-19 00:11:37 - CRITICAL - bot - Failed to Steam screen
2019-04-19 00:11:37 - DEBUG - bot - Traceback (most recent call last):
File "main.py", line 48, in setup_runtime
dlRuntime.set_provider(get_provider(uconfig.get('bot', 'provider'))(scheduler, uconfig, dlRuntime))
File "D:\Yugioh\bot\providers\steam\steam.py", line 47, in init
self.ensure_resolutions_matches()
File "D:\Yugioh\bot\providers\steam\steam.py", line 137, in ensure_resolutions_matches
img = self.get_img_from_screen_shot()
File "D:\Yugioh\bot\providers\actions.py", line 39, in get_img_from_screen_shot
screen_shot = self.take_png_screenshot()
File "D:\Yugioh\bot\providers\steam\steam.py", line 307, in take_png_screenshot
raise Exception("Failed to Steam screen")
Exception: Failed to Steam screen

I am also not sure what to make of "Could not get a provider, take a look at your config file" i set the config file as per the instructions

Copy of the config file:

[locations]
home = .
assets = .\assets
bin = .\bin
log = .\log
cache_file = .\assets\predefined.h5

[bot]
startbotonstartup = False
runtimepersistence = runTimeOptions.json
provider = Steam
sleep_factor = 1
persist = True

[steam]
location = D:\Steam

Also it looks like i can not start the bot with gui -s

Edit 2: Test with Nox, works like a charm (but i think its confused by the card trader and event icons)

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

No branches or pull requests

1 participant