Coder Social home page Coder Social logo

Comments (3)

jasonscharff avatar jasonscharff commented on June 27, 2024 2

@josebet1 I'll be damned when you invent server side UI testing.

from mhacks8.

josebet1 avatar josebet1 commented on June 27, 2024 1

@jreinstra You killed the server.

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(_self.__args, *_self.__kwargs)
File "/root/mhacks8/utils.py", line 90, in generate_sketch_dict
sketch_dict
File "/root/mhacks8/utils.py", line 110, in calc_sketchiness
nearby_crimes_score(sketch_dict, lat, lon)
File "/root/mhacks8/utils.py", line 127, in nearby_crimes_score
for doc in cursor:
File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 1090, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 1032, in _refresh
self.__max_await_time_ms))
File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 850, in __send_message
*_kwargs)
File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 844, in _send_message_with_response
exhaust)
File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 855, in _reset_on_error
return func(_args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pymongo/server.py", line 131, in send_message_with_response
response_data = sock_info.receive_message(1, request_id)
File "/usr/local/lib/python2.7/dist-packages/pymongo/pool.py", line 272, in receive_message
self._raise_connection_failure(error)
File "/usr/local/lib/python2.7/dist-packages/pymongo/pool.py", line 372, in _raise_connection_failure
raise error
LoopExit: ('This operation would block forever', <Hub at 0x7f0a6d21c910 epoll pending=0 ref=0 fileno=20 resolver=<gevent.resolver_thread.Resolver at 0x7f0a6c2db6d0 pool=<ThreadPool at 0x7f0a6c2db710 0/1/10>> threadpool=<ThreadPool at 0x7f0a6c2db710 0/1/10>>)

Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(_self.__args, *_self.__kwargs)
File "/root/mhacks8/utils.py", line 90, in generate_sketch_dict
sketch_dict
File "/root/mhacks8/utils.py", line 110, in calc_sketchiness
nearby_crimes_score(sketch_dict, lat, lon)
File "/root/mhacks8/utils.py", line 127, in nearby_crimes_score
for doc in cursor:
File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 1090, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 1032, in _refresh
self.__max_await_time_ms))
File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 850, in __send_message
*_kwargs)
File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 844, in _send_message_with_response
exhaust)
File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 855, in _reset_on_error
return func(_args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pymongo/server.py", line 131, in send_message_with_response
response_data = sock_info.receive_message(1, request_id)
File "/usr/local/lib/python2.7/dist-packages/pymongo/pool.py", line 272, in receive_message
self._raise_connection_failure(error)
File "/usr/local/lib/python2.7/dist-packages/pymongo/pool.py", line 372, in _raise_connection_failure
raise error
LoopExit: ('This operation would block forever', <Hub at 0x7f0a6d21cb90 epoll pending=0 ref=0 fileno=27 resolver=<gevent.resolver_thread.Resolver at 0x7f0a6c2db650 pool=<ThreadPool at 0x7f0a6c2eb0d0 0/1/10>> threadpool=<ThreadPool at 0x7f0a6c2eb0d0 0/1/10>>)

from mhacks8.

josebet1 avatar josebet1 commented on June 27, 2024

It broke because of #9, seems like unit/ui tests are missing (?!?!?)

from mhacks8.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.