Git Product home page Git Product logo

Comments (8)

pot2mayo avatar pot2mayo commented on July 23, 2024 1

Quick update, after updating the masked-view package to 0.1.11 this error disappear but another incompatibility comes up with the ts-jest and jest packages.

Note that using npm install --force can be used to bypass the issue but fixing the package versioning in the base template would be a much better option :)

from playtorch.

pot2mayo avatar pot2mayo commented on July 23, 2024 1

@raedle
My solution is not good enough for a PR since it still require to use the force mode for installing packages.
Ideally we'd like a versioning that is compatible across all packages without forcing.

from playtorch.

raedle avatar raedle commented on July 23, 2024

@rmadhira86, I don't have Windows 10 but tested it on Windows 11 and it successfully passed the init:

Screen Shot 2022-01-28 at 8 28 50 AM

Looking at the error message, it seems to be an issue with yarn not being able to resolve peer dependencies. What does the following command output on your machine?

yarn config get registry

Is this error consistently reproducible for you, e.g., does it happen every time you run the npx react-native init MyFirstProject --template react-native-template-pytorch-live command?

If yes, you can try the following steps to get you unblocked:

  1. npx react-native init MyFirstProject --template react-native-template-pytorch-live (ok if it fails)
  2. cd .\MyFirstProject\
  3. yarn --> My hunch is that it fails here on your machine
  4. cd .\models\
  5. .\venv\Scripts\activate
  6. pip install -r .\requirements.txt
  7. python .\make_models.py
  8. cd ..
  9. npx react-native run-android

from playtorch.

pot2mayo avatar pot2mayo commented on July 23, 2024

@raedle
Hi
Having the same issue on my Windows 10 machine with the npm install command failing.

image

Looking at the npm logs, the issue seems to be coming from the masked-view package.

33 http fetch GET 200 https://registry.npmjs.org/@react-native-community%2Fmasked-view 1427ms (cache revalidated)
34 silly fetch manifest [email protected]
35 http fetch GET 200 https://registry.npmjs.org/react 48ms (cache revalidated)
36 silly fetch manifest react@^16.0
37 timing idealTree Completed in 1589ms
38 timing command:install Completed in 1609ms
39 verbose stack Error: unable to resolve dependency tree
39 verbose stack     at Arborist.[failPeerConflict] (C:\Users\cocha\AppData\Roaming\nvm\v16.10.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1327:25)
39 verbose stack     at Arborist.[loadPeerSet] (C:\Users\cocha\AppData\Roaming\nvm\v16.10.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1293:34)
39 verbose stack     at async Arborist.[buildDepStep] (C:\Users\cocha\AppData\Roaming\nvm\v16.10.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:906:11)
39 verbose stack     at async Arborist.buildIdealTree (C:\Users\cocha\AppData\Roaming\nvm\v16.10.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:210:7)
39 verbose stack     at async Promise.all (index 1)
39 verbose stack     at async Arborist.reify (C:\Users\cocha\AppData\Roaming\nvm\v16.10.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:147:5)
39 verbose stack     at async Install.install (C:\Users\cocha\AppData\Roaming\nvm\v16.10.0\node_modules\npm\lib\install.js:170:5)
40 verbose cwd Z:\Projects\yolox-sku110k\ReactNativePytorchLive
41 verbose Windows_NT 10.0.19044
42 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
43 verbose node v16.10.0
44 verbose npm  v7.24.0
45 error code ERESOLVE
46 error ERESOLVE unable to resolve dependency tree
47 error
48 error While resolving: [email protected]
48 error Found: [email protected]
48 error node_modules/react
48 error   react@"17.0.1" from the root project
48 error
48 error Could not resolve dependency:
48 error peer react@"^16.0" from @react-native-community/[email protected]
48 error node_modules/@react-native-community/masked-view
48 error   @react-native-community/masked-view@"^0.1.10" from the root project
48 error
48 error Fix the upstream dependency conflict, or retry
48 error this command with --force, or --legacy-peer-deps
48 error to accept an incorrect (and potentially broken) dependency resolution.
48 error
48 error See C:\Users\cocha\AppData\Local\npm-cache\eresolve-report.txt for a full report.
49 verbose exit 1

from playtorch.

anthonyweidai avatar anthonyweidai commented on July 23, 2024

So, how do you update these package in reactive native?

from playtorch.

pot2mayo avatar pot2mayo commented on July 23, 2024

@anthonyweidai
I updated the masked-view version in package.json but for the jest issue I haven't found any package not generating an error so I just went with the npm install --force option for now.

from playtorch.

raedle avatar raedle commented on July 23, 2024

Thanks for providing a solution, @pot2mayo!

Do you want to submit a PR that updates the masked-view version for the template?

PS: PyTorch Live uses yarn, which means versions are locked in the yarn.lock file

from playtorch.

raedle avatar raedle commented on July 23, 2024

The new PlayTorch API, the PlayTorch app + Snack, and the PlayTorch Expo config plugin are now better alternatives to experiment with on-device ML models.

Closing this issue due to inactivity. Please reopen if this is still ongoing!

from playtorch.

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.