-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
No config argument specified #3770
Comments
@GitPupper I am sure the config.json is named exactly config.json. F:\document\tongxuan\poke\PokemonGo-Bot>python pokecli.py |
error when use cmd to run "python pokecli.py -i 1 --cache“
F:\document\tongxuan\poke\PokemonGo-Bot>python pokecli.py -i 1 --cache
2016-08-13 01:58:20,486 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-13 01:58:20,486 [ cli] [INFO] No config argument specified, checking for /configs/config.json
usage: pokecli.py [-h] [-cf CONFIG] [-a AUTH_SERVICE] [-u USERNAME]
[-ws WEBSOCKET.SERVER_URL]
[-wss WEBSOCKET.START_EMBEDDED_SERVER]
[-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION]
[-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN] [-w WALK]
[-k GMAPKEY] [-e SHOW_EVENTS] [-d DEBUG] [-t TEST]
[-du DISTANCE_UNIT] [-rt RECONNECTING_TIMEOUT]
[-hr HEALTH_RECORD] [-ac FORTS.AVOID_CIRCLES]
[-mcs FORTS.MAX_CIRCLE_SIZE]
[--catch_randomize_reticle_factor CATCH_RANDOMIZE_RETICLE_FACTOR]
[--catch_randomize_spin_factor CATCH_RANDOMIZE_SPIN_FACTOR]
[--map_object_cache_time MAP_OBJECT_CACHE_TIME]
[--logging_color LOGGING_COLOR]
[-cte CATCH_THROW_PARAMETERS.EXCELLENT_RATE]
[-ctg CATCH_THROW_PARAMETERS.GREAT_RATE]
[-ctn CATCH_THROW_PARAMETERS.NICE_RATE]
[-ctm CATCH_THROW_PARAMETERS.NORMAL_RATE]
[-cts CATCH_THROW_PARAMETERS.SPIN_SUCCESS_RATE]
pokecli.py: error: unrecognized arguments: -i 1 --cache
error when run "run.bat"
Running pokecli.py for count: 0
2016-08-13 02:14:27,561 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-13 02:14:27,561 [ cli] [INFO] No config argument specified, checking for /configs/config.json
2016-08-13 02:14:27,561 [ cli] [INFO] Configuration initialized
2016-08-13 02:14:27,561 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-13 02:14:27,561 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-13 02:14:27,561 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-13 02:14:27,624 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-13 02:14:27,624 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-13 02:14:27,624 [PokemonGoBot] [INFO] [location_found] Location found: 1.3609234,103.8741148 (1.3609234, 103.8741148, 0.0)
2016-08-13 02:14:27,638 [PokemonGoBot] [INFO] [position_update] Now at (1.3609234, 103.8741148, 0)
2016-08-13 02:14:27,638 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-13 02:14:29,733 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO]
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] --- Zyh93 ---
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Level: 1 (Next Level: 350 XP) (Total: 650 XP)
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Pokemon Captured: 1 | Pokestops Visited: 1
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Pokemon Bag: 1/250
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Items: 57/350
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Stardust: 100 | Pokecoins: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] PokeBalls: 53 | GreatBalls: 0 | UltraBalls: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] RazzBerries: 0 | BlukBerries: 0 | NanabBerries: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] LuckyEgg: 0 | Incubator: 0 | TroyDisk: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Potion: 0 | SuperPotion: 0 | HyperPotion: 0 | MaxPotion: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Incense: 2 | IncenseSpicy: 0 | IncenseCool: 0
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO] Revive: 0 | MaxRevive: 0
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO]
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO] Found encrypt_64.dll! Platform: win32 Encrypt.so directory: F:\document\tongxuan\poke\PokemonGo-Bot
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO]
2016-08-13 02:14:32,967 [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-13 22:45:40.968000
2016-08-13 02:14:33,265 [ cli] [INFO]
2016-08-13 02:14:33,265 [ cli] [INFO] Ran for 0:00:06
2016-08-13 02:14:33,265 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
2016-08-13 02:14:33,265 [ cli] [INFO] Travelled 0.00km
2016-08-13 02:14:33,265 [ cli] [INFO] Visited 0 stops
2016-08-13 02:14:33,265 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-13 02:14:33,265 [ cli] [INFO] Threw 0 pokeballs
2016-08-13 02:14:33,265 [ cli] [INFO] Earned 0 Stardust
2016-08-13 02:14:33,265 [ cli] [INFO]
2016-08-13 02:14:33,265 [ cli] [INFO] Highest CP Pokemon:
2016-08-13 02:14:33,279 [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 559, in
main()
File "pokecli.py", line 83, in main
tree = TreeConfigBuilder(bot, config.raw_tasks).build()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 63, in build
instance = worker(self.bot, task_config)
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\base_task.py", line 13, in init
self.initialize()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 46, in initialize
self._validate_item_filter()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 61, in _validate_item_filter
config_item_name))
pokemongo_bot.tree_config_builder.ConfigException: item Greateball does not exist, spelling mistake? (check for valid item names in data/items.json)
2016-08-13 02:14:33,326 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send
ca_certs=self.ca_certs,
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 494, in open
response = self._open(req, data)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 512, in _open
'_open', req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 466, in _call_chain
result = func(*args)
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "C:\Python27\lib\httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1097, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-13 02:14:33,342 [sentry.errors.uncaught] [ERROR] [u'ConfigException: item Greateball does not exist, spelling mistake? (check for valid item names in data/items.json)', u' File "pokecli.py", line 559, in ', u' File "pokecli.py", line 83, in main', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 63, in build', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\base_task.py", line 13, in init', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 46, in initialize', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 61, in _validate_item_filter']
Your config.json (remove your credentials and any other private info)
}
Other Information
OS: Windows 10
Branch: dev
Git Commit: fff1eac
Python Version: Python 2.7.12
The text was updated successfully, but these errors were encountered: