am15h / tflite_flutter_plugin

TensorFlow Lite Flutter Plugin
https://pub.dev/packages/tflite_flutter
Apache License 2.0
508 stars 353 forks source link

`tflite_flutter` not found in .pub-cache directory #144

Open erluxman opened 3 years ago

erluxman commented 3 years ago

As per the installation instruction, we need to locate this directory

~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ but even after I do flutter pub get after adding the dependency to pubspec file, this directory is not generated.

I tried doing

pod install
pod install --repo-update 
flutter pub cache repair

I even tried to manually add pod 'TensorFlowLiteC', '~> 2.2.0', in Podfile But nothing seems to help.

As no one seems to have reported this issue earlier, am I missing something silly in this installation?

lively-bigyan commented 3 years ago

Having the same issue myself. I am only using android for development as of now. Any help would be appreciated.

andycancado commented 3 years ago

As per the installation instruction, we need to locate this directory

~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ but even after I do flutter pub get after adding the dependency to pubspec file, this directory is not generated.

I tried doing

pod install
pod install --repo-update 
flutter pub cache repair

I even tried to manually add pod 'TensorFlowLiteC', '~> 2.2.0', in Podfile But nothing seems to help.

As no one seems to have reported this issue earlier, am I missing something silly in this installation?

Run --> flutter pub cache add tflite_flutter --version "0.9.0"

lively-bigyan commented 3 years ago

That also didn't work. The problem was that we were navigating to the folder from command line. ~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ this command returns pub cache but not the one inside flutter. When I navigated to the directory path above from the flutter installation folder, tflite_flutter was there.

andycancado commented 3 years ago

dart pub cache add tflite_flutter --version "0.9.0"

yaizudamashii commented 3 years ago

That also didn't work. The problem was that we were navigating to the folder from command line. ~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-<plugin-version>/ this command returns pub cache but not the one inside flutter. When I navigated to the directory path above from the flutter installation folder, tflite_flutter was there.

I also got stuck on this issue. I think it deserves an update on README.

wahyuseven commented 3 years ago

any updates about this issue? i also cant find tflite_flutter folder in that path

wahyuseven commented 3 years ago

i fixed it!!, so all you need is to re-instal the dart and flutter library from mac and then check again ~/.pub-cache/hosted/pub.dartlang.org/ the folder of tflite_flutter will be there as soon as you do flutter pub get on your flutter project

hami-sh commented 3 years ago

dart pub cache add tflite_flutter --version "0.9.0"

This worked for me! Thanks :D