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.

manual set-up error: Command failed: /tmp/rncli-init-template-lRLLcg/node_modules/react-native-template-pytorch-live/script.js

See original GitHub issue

Version

No response

Problem Area

react-native-pytorch-core (core package)

Steps to Reproduce

OS: Ubuntu 20.04.3 LTS python3 -V: Python 3.8.5

List of all installed node.js modules with npm -g ls --depth=0:

/usr/local/lib
├── corepack@0.10.0
├── expo-cli@4.13.0
├── n@8.0.1
├── npm@8.1.2
└── yarn@1.22.17

command: npx react-native init MyFirstProject --template react-native-template-pytorch-live

Expected Results

               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          

                  Welcome to React Native!                
                 Learn once, write anywhere               

✔ Downloading template
✔ Copying template
✔ Processing template
⠙ Executing post init script node:child_process:903
    throw err;
    ^

Error: Command failed: cd ./models && python3 -m venv ./venv 2> ./error.log             && source ./venv/bin/activate 2> ./error.log             && pip install --upgrade pip 2> ./error.log             && pip install -r requirements.txt 2> ./error.log             && python -W ignore make_models.py 2> ./error.log
    at checkExecSyncError (node:child_process:826:11)
    at execSync (node:child_process:900:15)
    at Object.<anonymous> (/tmp/rncli-init-template-lRLLcg/node_modules/react-native-template-pytorch-live/script.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  status: 127,
  signal: null,
  output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
  pid: 12763,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(0) [Uint8Array] []
}
✖ Executing post init script 
error Error: Command failed: /tmp/rncli-init-template-lRLLcg/node_modules/react-native-template-pytorch-live/script.js

if needed, I can supply the outcome when run with --verbose

Code example, screenshot, or link to repository

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chauvinSimoncommented, Dec 10, 2021

To answer your question:

“In addition to installing the models, were you able to run PyTorch Live on Android or iOS from Ubuntu?”

I think I could not even install the models properly. And was not able to run it on any device.


I was not sure if I should use npx react-native init or npx torchlive-cli init to initialize a project based on react-native-template-pytorch-live.

Both commands seems successful.

I make sure my emulator is running.

Below are reporting the results of the two methods (both fail).

first version - with npx react-native run-android

error: package org.pytorch.rn.core.ml.processing does not exist

cd "/home/simonchauvin/drafts/live/MyFirstProject" && npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 986 file(s) to forward-jetify. Using 12 workers...
info Starting JS server...
info Installing the app...

> Task :react-native-gesture-handler:compileDebugJavaWithJavac

> Task :react-native-safe-area-context:compileDebugJavaWithJavac

> Task :react-native-screens:compileDebugJavaWithJavac

> Task :app:compileDebugJavaWithJavac FAILED
94 actionable tasks: 94 executed
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /home/simonchauvin/drafts/live/MyFirstProject/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:19: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.BaseIValuePacker;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:20: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.BertTokenizer;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:21: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.PackerContext;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:22: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.PackerRegistry;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:24: error: cannot find symbol
public class BertQAPacker extends BaseIValuePacker {
                                  ^
  symbol: class BaseIValuePacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:34: error: cannot find symbol
  protected void register(final PackerRegistry registry) {
                                ^
  symbol:   class PackerRegistry
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:45: error: cannot find symbol
  private BertTokenizer getBertTokenizer(PackerContext packerContext)
                                         ^
  symbol:   class PackerContext
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:45: error: cannot find symbol
  private BertTokenizer getBertTokenizer(PackerContext packerContext)
          ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:68: error: cannot find symbol
  private IValue packString(final JSONObject jobject, final PackerContext packerContext)
                                                            ^
  symbol:   class PackerContext
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:86: error: cannot find symbol
  private String decodeBertQAAnswer(final IValue ivalue, final PackerContext packerContext)
                                                               ^
  symbol:   class PackerContext
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:33: error: method does not override or implement a method from a supertype
  @Override
  ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:35: error: cannot find symbol
    super.register(registry);
    ^
  symbol:   variable super
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:47: error: cannot find symbol
    BertTokenizer bertTokenizer = (BertTokenizer) registry.get("bert_tokenizer_custom");
    ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:47: error: cannot find symbol
    BertTokenizer bertTokenizer = (BertTokenizer) registry.get("bert_tokenizer_custom");
                                   ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:47: error: cannot find symbol
    BertTokenizer bertTokenizer = (BertTokenizer) registry.get("bert_tokenizer_custom");
                                                  ^
  symbol:   variable registry
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:49: error: cannot find symbol
      bertTokenizer = new BertTokenizer(packerContext.specSrcJson.getString("vocabulary_bert"));
                          ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:50: error: cannot find symbol
      registry.store("bert_tokenizer_custom", bertTokenizer);
      ^
  symbol:   variable registry
  location: class BertQAPacker
Note: /home/simonchauvin/drafts/live/MyFirstProject/android/app/src/debug/java/org/pytorch/live/example/ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
17 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /home/simonchauvin/drafts/live/MyFirstProject/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:19: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.BaseIValuePacker;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:20: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.BertTokenizer;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:21: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.PackerContext;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:22: error: package org.pytorch.rn.core.ml.processing does not exist
import org.pytorch.rn.core.ml.processing.PackerRegistry;
                                        ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:24: error: cannot find symbol
public class BertQAPacker extends BaseIValuePacker {
                                  ^
  symbol: class BaseIValuePacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:34: error: cannot find symbol
  protected void register(final PackerRegistry registry) {
                                ^
  symbol:   class PackerRegistry
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:45: error: cannot find symbol
  private BertTokenizer getBertTokenizer(PackerContext packerContext)
                                         ^
  symbol:   class PackerContext
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:45: error: cannot find symbol
  private BertTokenizer getBertTokenizer(PackerContext packerContext)
          ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:68: error: cannot find symbol
  private IValue packString(final JSONObject jobject, final PackerContext packerContext)
                                                            ^
  symbol:   class PackerContext
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:86: error: cannot find symbol
  private String decodeBertQAAnswer(final IValue ivalue, final PackerContext packerContext)
                                                               ^
  symbol:   class PackerContext
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:33: error: method does not override or implement a method from a supertype
  @Override
  ^
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:35: error: cannot find symbol
    super.register(registry);
    ^
  symbol:   variable super
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:47: error: cannot find symbol
    BertTokenizer bertTokenizer = (BertTokenizer) registry.get("bert_tokenizer_custom");
    ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:47: error: cannot find symbol
    BertTokenizer bertTokenizer = (BertTokenizer) registry.get("bert_tokenizer_custom");
                                   ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:47: error: cannot find symbol
    BertTokenizer bertTokenizer = (BertTokenizer) registry.get("bert_tokenizer_custom");
                                                  ^
  symbol:   variable registry
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:49: error: cannot find symbol
      bertTokenizer = new BertTokenizer(packerContext.specSrcJson.getString("vocabulary_bert"));
                          ^
  symbol:   class BertTokenizer
  location: class BertQAPacker
/home/simonchauvin/drafts/live/MyFirstProject/android/app/src/main/java/org/pytorch/live/example/BertQAPacker.java:50: error: cannot find symbol
      registry.store("bert_tokenizer_custom", bertTokenizer);
      ^
  symbol:   variable registry
  location: class BertQAPacker
Note: /home/simonchauvin/drafts/live/MyFirstProject/android/app/src/debug/java/org/pytorch/live/example/ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
17 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s

    at makeError (/home/simonchauvin/drafts/live/MyFirstProject/node_modules/execa/index.js:174:9)
    at /home/simonchauvin/drafts/live/MyFirstProject/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/home/simonchauvin/drafts/live/MyFirstProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)
    at async Command.handleAction (/home/simonchauvin/drafts/live/MyFirstProject/node_modules/@react-native-community/cli/build/index.js:186:9)
info Run CLI with --verbose flag for more details.

second version - with npx torchlive-cli run-android

cd MyFirstProjectCLI && npx torchlive-cli run-android

BUILD SUCCESSFUL in 22s
132 actionable tasks: 132 executed
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=org.pytorch.live.example/.MainActivity }
Done in 25.97s.

but the emulator shows a message in red:

“Unable to load script.Make sure you are either running a Metro server or that your bundle ‘index.android.bundle’ is packaged correctly for release.”

I start metro:

npm start

> myfirstprojectcli@0.0.0 start
> react-native start

                                                      
                        #######                       
                   ################                   
                #########     #########               
            #########             ##########          
        #########        ######        #########      
       ##########################################     
      #####      #####################       #####    
      #####          ##############          #####    
      #####    ###       ######       ###    #####    
      #####    #######            #######    #####    
      #####    ###########    ###########    #####    
      #####    ##########################    #####    
      #####    ##########################    #####    
      #####      ######################     ######    
       ######        #############        #######     
         #########        ####       #########        
              #########          #########            
                  ######### #########                 
                       #########                      
                                                      
                                                      
                    Welcome to Metro!
              Fast - Scalable - Integrated



To reload the app press "r"
To open developer menu press "d"

then again npx torchlive-cli run-android. It ends with BUILD SUCCESSFUL in 22s.

then in the metro terminal, it start bundling ./index.js` but fails with:

BUNDLE  ./index.js 

error: Error: Unable to resolve module ../../models/detr_resnet50.ptl from /home/simonchauvin/drafts/live/MyFirstProjectCLI/src/examples/ObjectDetectionExample.tsx: 

None of these files exist:
  * detr_resnet50.ptl
  * models/detr_resnet50.ptl/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  25 | const modelInfo: ModelInfo = {
  26 |   name: 'DETR',
> 27 |   model: require('../../models/detr_resnet50.ptl'),
     |                   ^
  28 | };
  29 |
  30 | const objectColors = [
    at ModuleResolver.resolveDependency (/home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:211:15)
    at DependencyGraph.resolveDependency (/home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/node-haste/DependencyGraph.js:413:43)
    at Object.resolve (/home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/lib/transformHelpers.js:317:42)
    at resolve (/home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/DeltaBundler/traverseDependencies.js:629:33)
    at /home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/DeltaBundler/traverseDependencies.js:645:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/DeltaBundler/traverseDependencies.js:644:33)
    at /home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/DeltaBundler/traverseDependencies.js:329:33
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/home/simonchauvin/drafts/live/MyFirstProjectCLI/node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:24)

in MyFirstProjectCLI/models there are,

bert_qa.ptl.live.spec.json
detr_resnet50.ptl.live.spec.json
error.log
make_models.py
mnist.ptl.live.spec.json
mobilenet_v3_large.ptl.live.spec.json
mobilenet_v3_small.ptl.live.spec.json
requirements.txt
resnet18.ptl.live.spec.json
venv

if I touch detr_resnet50.ptl, then comes the next error Unable to resolve module ../../models/mnist.ptl.


By the way, npx torchlive-cli doctor gives:

  _                 _     _ _           
 | |_ ___  _ __ ___| |__ | (_)_   _____ 
 | __/ _ \| '__/ __| '_ \| | \ \ / / _ \
 | || (_) | | | (__| | | | | |\ V /  __/
  \__\___/|_|  \___|_| |_|_|_| \_/ \___|
                                        
torchlive version 0.1.1

Homebrew
  🚫 not installed

Python
  🚫 not installed

Watchman
  🚫 not installed

Node.js
  🚫 not installed

React Native should not be installed locally
  ✅ package does not exist.

Yarn
  🚫 not installed

Java Development Kit
  🚫 not installed

Android SDK Manager
  📍 path: /home/simonchauvin/Android/Sdk/tools/bin/sdkmanager
  🏁 min version: 26.1.1
/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/utils/CommandUtils.js:65
                throw new Error('not yet implemented');
                      ^

Error: not yet implemented
    at Object.execute (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/utils/CommandUtils.js:65:23)
    at execute (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/utils/CommandUtils.js:96:37)
    at Object.getVersion (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/utils/CommandUtils.js:106:30)
    at HealthCheck.satisfies (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/commands/HealthCheck.js:40:36)
    at runHealthCheck (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/cli-commands/Doctor.js:136:57)
    at /home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/cli-commands/Doctor.js:217:13
    at Array.forEach (<anonymous>)
    at /home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/cli-commands/Doctor.js:216:22
    at step (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/cli-commands/Doctor.js:41:23)
    at Object.next (/home/simonchauvin/.npm/_npx/e9a46805b0361e9c/node_modules/torchlive-cli/build/cli-commands/Doctor.js:22:53)

There is definitely something wrong with my installation.

I will stop my experiments here and wait for the linux support.

Thank you @aaronespasa for your help!

0reactions
chauvinSimoncommented, Dec 13, 2021

Thank you @liuyinglao Indeed, python3 -W ignore make_models.py could create the missing models.

One issue I had was with which env to activate. At the end, what worked for me was to use the venv of my first version (manual set up) which was correct, and run python3 -W ignore make_models.py in the second project (with CLI).

A bit complicated. But eventually, I could start the app, both on the device and in the emulator.

Again, thank you both for your help. The issue can be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing playwright using npm gives error `command failed`
I tried to install playwright using the command npm i playwright. But got an error npm ERR! code 1 npm ERR! path ...
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >
Error - JavaScript - MDN Web Docs - Mozilla
Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions.
Read more >
Addressing common errors in React Native - LogRocket Blog
Explore common React Native errors such as "command not found" and learn about ... BUILD FAILED in 13s error Failed to install the...
Read more >
Troubleshooting Common Errors - Gatsby
If you encounter a webpack error that says Generating SSR bundle failed after installing a plugin and trying to run gatsby develop or...
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