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

No such file or directory: 'config/p' #352

Closed
t-v opened this issue Aug 22, 2016 · 4 comments
Closed

No such file or directory: 'config/p' #352

t-v opened this issue Aug 22, 2016 · 4 comments

Comments

@t-v
Copy link

t-v commented Aug 22, 2016

Executed Command

$ python pokecli.py config/config.yml

Expected Behavior

The bot to start and read all the config files

Actual Behavior

Traceback (most recent call last):
File "pokecli.py", line 88, in
main()
File "pokecli.py", line 73, in main
kernel.boot()
File "/home/xxx/git/OpenPoGoBot/app/kernel.py", line 55, in boot
self.load_config()
File "/home/xxx/git/OpenPoGoBot/app/kernel.py", line 39, in load_config
for node in os.listdir(os.path.join(config_dir, plugin_config_dir)):
OSError: [Errno 2] No such file or directory: 'config/p'

Steps to Reproduce

Loading the most default config

Other Information

OS: Fedora 24
Git Commit: 37560cf

@niicojs
Copy link
Contributor

niicojs commented Aug 22, 2016

Look at the config.yml example, it has changed quite a bit recently so you have to update yours to match the example.

@t-v
Copy link
Author

t-v commented Aug 22, 2016

@nicoschmitt I did check it, and it seems it doesn't do what the code expects. This is why I made a small pullrequest of it.
The main issue was in the plugins part:
`plugins:
# Do not automatically load the specified plugins
exclude: []

# Plugin directories to load
include:
    - ./plugins

# Load plugin YAML config files from this folder
config: "plugins"`

As you can see, the last part is a string instead of a list and in the code, it tries to iterate over that. To fix it in my config file, I put brackets around it. (see pullrequest)

@niicojs
Copy link
Contributor

niicojs commented Aug 22, 2016

It should be:
config:

  • plugins

In your yml.

@niicojs
Copy link
Contributor

niicojs commented Aug 24, 2016

config.yml.example is correct.

@niicojs niicojs closed this as completed Aug 24, 2016
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