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

"Database error:" logged when trying to access web UI #2

Open
joncodis opened this issue Apr 30, 2013 · 2 comments
Open

"Database error:" logged when trying to access web UI #2

joncodis opened this issue Apr 30, 2013 · 2 comments

Comments

@joncodis
Copy link

Hi Glenn,
I'm working on getting your cool project setup using Raspberry Pi devices for the WiFi sensors. For the Snoopy server, I have set up a VM running Ubuntu 12.04 LTS 32bit, as per your notes in the server setup. I'm getting probe data, am seeing wigle activity, and see streetview images being saved under "web_data", so it looks like things are working. When I access the web ui however, I only get the boxes with the mac addresses for the title, but with no content inside the boxes. In the snoopy.log file, I see errors scroll by on each click of the mouse as I try to refresh the view. Please see a snapshot of errors I am seeing below and let me know if you wish me to send the full log for close inspection.

Any ideas?

Thanks!

Jon

2013-04-29 17:03:53 ERROR init.py: Database error:
File "/home/woodstock/snoopy/server/bin/snoopy/src/snoopy/plugins/wigle.py", line 13, in wigle
db.Probe.probe_ssid == db.Wigle.ssid

TypeError('() takes exactly 2 arguments (3 given)',)
2013-04-29 17:03:53 ERROR app.py: Exception on /client/data/get [POST]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1504, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1264, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1262, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1248, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/woodstock/snoopy/server/bin/snoopy/src/snoopy/web/init.py", line 14, in decorated_function
return f(_args, *_kwargs)
File "/home/woodstock/snoopy/server/bin/snoopy/src/snoopy/web/main.py", line 98, in client_data_get
cldata[options['name']] = dict(title=options['title'], data=fn(mac))
File "/home/woodstock/snoopy/server/bin/snoopy/src/snoopy/plugins/wigle.py", line 13, in wigle
db.Probe.probe_ssid == db.Wigle.ssid
TypeError: () takes exactly 2 arguments (3 given)
2013-04-29 17:03:53 INFO _internal.py: 192.168.1.107 - - [29/Apr/2013 17:03:53] "POST /client/data/get HTTP/1.1" 500 -
2013-04-29 17:03:53 INFO _internal.py: 192.168.1.107 - - [29/Apr/2013 17:03:53] "GET /static/css/images/ui-icons_cccccc_256x240.png HTTP/1.1" 200 -

@xeroxnir
Copy link

xeroxnir commented Aug 8, 2013

I have the same problem, no idea how to solve it...

@th36r1m
Copy link

th36r1m commented Sep 12, 2013

I addressed the issue in my pull request. Try "pip uninstall requests" and then "pip install requests==0.14.2"

You will probably encounter a couple other issues that I have addressed as well, so if you encounter a problem you can check out my fork.

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

3 participants