I was trying to run a simple model created using teachable machine from google using tflite_flutter, followed the documentation in the package page.
But the following error occurred
Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libtensorflowlite_c.so': dlopen failed: library "libtensorflowlite_c.so" not found
this is my code
load() async {
tf.Interpreter inter = await tf.Interpreter.fromAsset('model.tflite');
var input = [
[1.23, 6.54, 7.81, 3.21, 2.22]
];
var output = List.filled(1 * 2, 0).reshape([1, 2]);
inter.run(input, output);
print(output);
}
Related
I'm Developing VOIP application in Flutter. Got below error and call not connected not in every case but in random case its happen.
Sip Registration Snippet
static void registeredSip(SipData sp) async {
UaSettings settings = UaSettings();
settings.webSocketUrl = 'wss://${sp.sipDomin}:${sp.sipPort}';
settings.webSocketSettings.allowBadCertificate = true;
var uri = 'sip:${sp.sipUsername}#${sp.sipDomin}';
settings.uri = uri;
settings.authorizationUser = sp.sipUsername;
settings.password = sp.sipPassword;
settings.displayName = sp.sipUsername;
globals.helper!.start(settings);
}
Starting Sip Call snippets below
SIPUAHelper helperObj = globals.helper!;
helperObj.call(typedNumber,voiceonly: true, mediaStream: null);
Error
sip_ua_helper.dart:224 ::: call failed with cause: Code: [408], Cause: Canceled, Reason: SIP ;cause=408 ;text="Request Timeout"
I'm using Sip_ua for Calling.
When adding neovim to my home-manager config (nix on MacOs), like so
programs.neovim = {
enable = true;
package = pkgs.neovim;
viAlias = true;
extraPackages = [
pkgs.rnix-lsp
];
};
I get the following error
these 5 derivations will be built:
/nix/store/7z24wy5ccgjhkw8zc39926z5r0pqfd59-neovim-0.8.0.drv
/nix/store/18kwwzrpsqaa6whyz3shlmidz0lp5sx5-home-manager-fonts.drv
/nix/store/zq40m1z7bl7azgay2gd39c769j5ypszd-home-manager-path.drv
/nix/store/37hvbw396bp6j89grhyqqxb772vbj6j4-activation-script.drv
/nix/store/dghqgkn78cpzq2fwclbg1rkjybwg7dr4-home-manager-generation.drv
building '/nix/store/7z24wy5ccgjhkw8zc39926z5r0pqfd59-neovim-0.8.0.drv'...
/nix/store/lig4bdiwsr9lfb8x8plpnasg95vrw98q-hook/nix-support/setup-hook: line 115: /nix/store/42yqjb325cpgs1gycv3sk9dki1y0qli0-neovim-0.8.0/bin/nvim-python3: Permission denied
error: builder for '/nix/store/7z24wy5ccgjhkw8zc39926z5r0pqfd59-neovim-0.8.0.drv' failed with exit code 1;
last 1 log lines:
> /nix/store/lig4bdiwsr9lfb8x8plpnasg95vrw98q-hook/nix-support/setup-hook: line 115: /nix/store/42yqjb325cpgs1gycv3sk9dki1y0qli0-neovim-0.8.0/bin/nvim-python3: Permission denied
For full logs, run 'nix log /nix/store/7z24wy5ccgjhkw8zc39926z5r0pqfd59-neovim-0.8.0.drv'.
error: 1 dependencies of derivation '/nix/store/18kwwzrpsqaa6whyz3shlmidz0lp5sx5-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zq40m1z7bl7azgay2gd39c769j5ypszd-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dghqgkn78cpzq2fwclbg1rkjybwg7dr4-home-manager-generation.drv' failed to build
Any ideas what might cause this?
package takes as input an unwrapped version of neovim (without the python/node… wrapper since home-manager does the wrapping itself) as you can see here. Since this value is anyway set by default you can just remove it:
programs.neovim = {
enable = true;
viAlias = true;
extraPackages = [
pkgs.rnix-lsp
];
};
I have the below code that I want to read all music in downloads but it's giving the above error. What can be the problem
final dartFile = Glob("/storage/emulated/0/Download/**.mp3");
for (var entity in dartFile.listSync()) {
print(entity.uri);
}
Below is my manifest file
I am trying to read the data from .mvt file by using the below code
#override
Future<DatastoreReadResult?> readLabelsSingle(Tile tile) async {
VectorTile tiles = await VectorTile.fromPath(path: './mapsforge_flutter/lib/src/data/6160.mvt');
VectorTileLayer layer =
tiles.layers.firstWhere((layer) => layer.name == 'building');
layer.features.forEach((feature) {
feature.decodeGeometry();
if (feature.geometryType == GeometryType.Point) {
var geojson = feature.toGeoJson<GeoJsonPoint>(x: 4823, y: 6160, z: 14);
print(geojson?.type);
print(geojson?.properties);
print(geojson?.geometry?.type);
print(geojson?.geometry?.coordinates);
print('\n');
}
});
but after running the code i am getting bellow error
E/flutter ( 1225): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FileSystemException: Cannot open file, path = './mapsforge_flutter/lib/src/data/6160.mvt' (OS Error: No such file or directory, errno = 2)
My folder structure are as below which are on my desktop
mapsforge_flutter
└───mapsforge_flutter
└───lib
└───src
└───data(file is here)
Please help me to resolve the error
please trying to build a FLUTTER client to access IPFS server using dart_ipfs_client
my function
sendMessage() async {
print('-------------1');
var ipfs = Ipfs(url: 'http://10.0.2.2:5001');
print('-------------2');
var addRes = await ipfs.add(utf8.encode('Hello World!'));
print('-------------3');
}
I have this error
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception:
SocketException: OS Error: Connection timed out, errno = 110, address
= 10.0.2.2, port = 41004
Please is the any solution to fix this?