tinydb failure
See original GitHub issueSpecs
- Leon version: * Master 360d102
- OS (or browser) version: Linux 4.4.0-140-generic
- Node.js version:
node --version -> v11.1.0
- Complete “npm run check” output:
╰─➤ npm run check
> leon@1.0.0-beta.0 check /mnt/storage0/overminddl1/leon/leon
> babel-node scripts/run-check.js
⠋
---
.: CHECKING :.
➡ /bin/sh -c node --version
✔ v11.1.0
➡ /bin/sh -c npm --version
✔ 6.4.1
➡ /bin/sh -c pipenv --version
✔ pipenv, version 2018.11.26
➡ /bin/sh -c pipenv --where
✔ /mnt/storage0/overminddl1/leon/leon/bridges/python
➡ /bin/sh -c pipenv run python --version
✔ Python 3.6.8
➡ /bin/sh -c pipenv run python bridges/python/main.py en leon randomnumber "Give me a random number"
✖ Error: Command failed: /bin/sh -c pipenv run python bridges/python/main.py en leon randomnumber "Give me a random number"
Traceback (most recent call last):
File "bridges/python/main.py", line 4, in <module>
import utils
File "/mnt/storage0/overminddl1/leon/leon/bridges/python/utils.py", line 11, in <module>
from tinydb import TinyDB, Query, operations
ModuleNotFoundError: No module named 'tinydb'
Expected Behavior
Should not crash.
Actual Behavior
See above in the check. Relevant section:
➡ /bin/sh -c pipenv run python bridges/python/main.py en leon randomnumber "Give me a random number"
✖ Error: Command failed: /bin/sh -c pipenv run python bridges/python/main.py en leon randomnumber "Give me a random number"
Traceback (most recent call last):
File "bridges/python/main.py", line 4, in <module>
import utils
File "/mnt/storage0/overminddl1/leon/leon/bridges/python/utils.py", line 11, in <module>
from tinydb import TinyDB, Query, operations
ModuleNotFoundError: No module named 'tinydb'
Running the listed command manually has the same result
How Do We Reproduce?
All I did was spool up a default python 3.6 + npm 11 docker image with a data directory of the git clone, ran pip install pipenv
, ran npm install
, ran npm run check
and the above appeared.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Advanced Usage — TinyDB 4.7.0 documentation
Opening multiple TinyDB instances on the same data (e.g. with the JSONStorage ) may result in unexpected behavior due to query caching. See...
Read more >How to solve tinydb error - Discuss - Kodular Community
Hallo everyone, I tried to retrieve data from tiny db after I did store value from airtable to tinydb, data managed to enter...
Read more >TinyDB insertion fails - python - Stack Overflow
I was holding it wrong. insert() expects a dict object while json.dumps() generates a string. from tinydb import TinyDB, Query import json ...
Read more >data loss in TinyDB on app restart - MIT App Inventor Help
I have below code. QR_Ban_tru_6.aia (84.4 KB) When there is no internet connection, it automatically saves data to TinyDB.
Read more >tinydb::error - Rust - Docs.rs
Contains various items related to errors inside of TinyDB. Enums. DatabaseError. An error enum for the possible faliure states of the crate::Database ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess this is because the Python modules were installed under another env. Once you have the correct prerequisites, maybe a
npm run postinstall
could help as it will install the Python modules.Hello @OvermindDL1,
Got it, thanks for your explanations BTW.