question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specs

  • 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:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
louistiticommented, Feb 22, 2019

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.

1reaction
louistiticommented, Feb 12, 2019

Hello @OvermindDL1,

Got it, thanks for your explanations BTW.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found