Coder Social home page Coder Social logo

Comments (1)

Lagikna avatar Lagikna commented on August 11, 2024
results = lab.query()
results.display()
print('%d results found.' % results.count())
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-4-8ba9aa32f2d0> in <module>()
      1 results = lab.query()
----> 2 results.display()
      3 print('%d results found.' % results.count())

B:\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\lib\site-packages\lab\db\_query.py in display(self, start, stop, figsize)
    138 
    139     def display(self, start=0, stop=10, figsize=None):
--> 140         self.ui.display(start, stop, figsize)
    141 
    142 

B:\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\lib\site-packages\lab\db\_query.py in display(self, start, stop, figsize)
     35         for index, record in enumerate(self.querySet.query_set[start:stop]):
     36             #tableHTML[index+2] = self.tableRow(index+start, record, figsize)
---> 37             task = asyncio.ensure_future(self.tableRow(index+start, record, figsize))
     38             task.add_done_callback(functools.partial(callback, pos=index))
     39             self._tasks.append(task)

B:\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\lib\asyncio\tasks.py in ensure_future(coro_or_future, loop)
    517         if loop is None:
    518             loop = events.get_event_loop()
--> 519         task = loop.create_task(coro_or_future)
    520         if task._source_traceback:
    521             del task._source_traceback[-1]

B:\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\lib\asyncio\base_events.py in create_task(self, coro)
    280         Return a task object.
    281         """
--> 282         self._check_closed()
    283         if self._task_factory is None:
    284             task = tasks.Task(coro, loop=self)

B:\WinPython-64bit-3.6.3.0Qt5\python-3.6.3.amd64\lib\asyncio\base_events.py in _check_closed(self)
    355     def _check_closed(self):
    356         if self._closed:
--> 357             raise RuntimeError('Event loop is closed')
    358 
    359     def _asyncgen_finalizer_hook(self, agen):

RuntimeError: Event loop is closed

from qulab.

Related Issues (20)

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.