-
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
bot wont boot up : ValueError: Expecting property name #966
Comments
I committed fix, please test. |
after git pull :
|
im getting the same error as above with lastest pull. just to confirm |
I get a different error:
|
Ensure that there is no comma separator in the last json value. |
here is the last line of my json config file, just to eject this possibility
|
Try to completely remove the catch and release keys, and also the leftover comma friom the "evolve_captured" key afterwards. |
@mehdi-S you have a malformed son in the configuration. Check for commas |
I've been following this thread and after cleaning the catch and release keys I used the command posted by @mehdi-S |
what you see is exactly the defaut config.json.exemple with my value, so maybe the typo is also in the default file and need to be corrected works fine without the catch/release key to confirm |
Is the parser fine with the // comments in the JSON structure? |
@ngkogkos |
now the bot dont release anything anymore and frequently get into
|
The example config looks like this:
but since the last line is commented out there is one comma too much. It should be
right? |
yep, not a valid JSON with that last comma
|
Exactly. Same for the "catch" key also |
had the same issue, after deleting the catch lines it works only if i put the config in the root direct...on windows it doestn work in the configs file....and realy...do we need for only ONE file a dir?! :/ |
@tpmodding files could increase in future |
@tpmodding you maybe are on the master branch, where configs/ folder dont exist already ? |
no i'm on dev, i have the dir but it works only when i put the file to pokecli.py and start with python pokecli.py -cf config.json |
@tpmodding dont you try to use |
it shouldn matter? if i start with "python pokecli.py" shouldnt it auto-load from configs/config.json? or am i wrong? |
Change the last lines of the config to:
The problem is the comma.... |
for the moment, this issue is closed Solution :Don't forget is you want to get rid of the
object, to also remove comma after do the same for the catch line and you're good to go ! |
Expected Behavior
start normally
Actual Behavior
Steps to Reproduce
git clone latest build on dev branch
doing initial step
edit the config.json file
Other Information
OS: Debian x64_86
Git Commit: c4c3487
The text was updated successfully, but these errors were encountered: