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

ConfigParser.NoSectionError #1

Closed
t0mekk opened this issue Jun 28, 2017 · 5 comments
Closed

ConfigParser.NoSectionError #1

t0mekk opened this issue Jun 28, 2017 · 5 comments

Comments

@t0mekk
Copy link

t0mekk commented Jun 28, 2017

I cant make it work.
Tried on Pi3B Xubuntu and Raspbian (latest versions).
Im getting errors trying run web_server.py.
2017-06-28_22-37-50
Probably its something with "commands" module, which is depreciated since Python 2.6 (I'm on 2.7).
https://docs.python.org/2/library/commands.html

@nickpesce
Copy link
Collaborator

Hey! I believe the problem was just that the default config file didn't follow the most recent format. I updated it and the error that you posted should be fixed. I can't test it right now because I don't have any lights plugged in, so can you tell me if everything works? Thanks!

@t0mekk
Copy link
Author

t0mekk commented Jun 29, 2017

web_server.py now works, thanks :]
but there's another problem, with generate.py - I'm getting error that "Range" is not defined (or smt),
What I've done - in commands.py added ranges = [], in generate.py api_dict_format replaced with api_list_format, it helped, but api-ai refuses to read generated jsons.

If its needed Ill create next issue later (and upload some screens).

@nickpesce
Copy link
Collaborator

I seem to have neglected generate.py after making changes to the range system. i updated it to work with simple sections of lights, but not zones, which are groups of sections. I will do that when I get a setup to test on.

@nickpesce
Copy link
Collaborator

Does everything work for you now?

@t0mekk
Copy link
Author

t0mekk commented Jun 30, 2017

yup, now it's working. issue resolved :) thank you for help.

I had problem with uploading jsons also (had to copy-paste manually its contents, and del some commas and brackets to make it work).

I'm wraping my head around api-ap now.

@t0mekk t0mekk closed this as completed Jun 30, 2017
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