Comments (8)
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.
@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.
@rmadhira86, I don't have Windows 10 but tested it on Windows 11 and it successfully passed the init
:
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:
npx react-native init MyFirstProject --template react-native-template-pytorch-live
(ok if it fails)cd .\MyFirstProject\
yarn
--> My hunch is that it fails here on your machinecd .\models\
.\venv\Scripts\activate
pip install -r .\requirements.txt
python .\make_models.py
cd ..
npx react-native run-android
from playtorch.
@raedle
Hi
Having the same issue on my Windows 10 machine with the npm install
command failing.
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.
So, how do you update these package in reactive native?
from playtorch.
@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.
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.
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)
- PlayTorchJSIModule not found - ios & android m2 macbook pro HOT 2
- It is not possible to convert audio float32 tensor to playable uint8 audio expected by .audioFromBytes() HOT 1
- How to specify interpolation in transforms.resize?
- AudioUtil is not working on Android
- How to convert my yolov5s.pt to yolov5s.ptl HOT 1
- resize function gives error: 'Factory function resize expects 1 argument but 4 are given.'
- Cannot scan QR code from the PlayTorch app HOT 2
- playtorchjsimodule not found
- Mac M1 tutorial failure HOT 2
- unable to load local .ptl model HOT 2
- How to export a Huggingface transfromer model? HOT 3
- react_native_pytorch_core error during gradle build HOT 15
- image data fetch
- Is there a processing step im missing when using a custom trained yolo model?
- Is this project still maintained?
- Unable to work
- CMake Error
- Android build fails | Expo app using prebuild HOT 4
- 'react_native_pytorch_core-Swift.h' file not found during ios build HOT 1
- Add how to use EAS (Expo Application Service) build within this tutorial
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 playtorch.