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

bacnet driver not working #22

Open
BalazsHoranyi opened this issue Mar 3, 2016 · 5 comments
Open

bacnet driver not working #22

BalazsHoranyi opened this issue Mar 3, 2016 · 5 comments

Comments

@BalazsHoranyi
Copy link

I am trying to run the bacnet driver and am getting the following error
bacnet_driver

Has anyone run this module before or run into this issue?
Please let me know if you need any more information
Thanks

@gtfierro
Copy link
Member

gtfierro commented Mar 3, 2016

Read through these comments; you'll need to install the bacnet-stack library, and then you can likely re-run setup.py with the bacnet module support uncommented. Try that and then let me know

@BalazsHoranyi
Copy link
Author

Thanks for the quick reply. Where should i put the bacnet-stack-0.6.0 folder?
I tired to place it in smap/python and am getting the following error when trying to run python setup.py build
bacnet

@gtfierro
Copy link
Member

gtfierro commented Mar 4, 2016

What directory are you running setup.py from? Try running it from within smap/python and not the base directory of the repo

@BalazsHoranyi
Copy link
Author

I am running setup.py from smap/python. I can run the swig command by itself though. Here is the complete output from setup.py
bacnet_setup
Thanks for the help.

@BalazsHoranyi
Copy link
Author

So I prefixed python/ to the swig sources in setup.py and that fixed the problem. I was wondering if someone had an example of a bacnet config file. I'm not entirely sure what i am supposed to pass to db for the bacnet driver
with open(opts.get('db'), 'r') as fp: self.db = json.load(fp)

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