Comments (1)
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)
- Support MiddleLayer
- listDrivers() err HOT 5
- driver 33120A 导入后出现错误 HOT 6
- get_Frequency HOT 6
- RPC support iterator, generator and context manager
- test broken
- an app err HOT 2
- Please test the new driver of network analyzer
- Add driver for WX2184
- Raise warning when call `make_image_in_process` in the first time
- APP execute error
- install error
- an error about Driver-AlazarTech_Digitizer HOT 3
- Display used time on Application UI
- ATS9360 Driver error HOT 1
- 关于NI环境变量路径的问题 HOT 4
- a small problem in new version 0.3.6! HOT 1
- error about 'lab.drivers' HOT 1
- Initial Update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qulab.