got error when running stack ghci - ghci

I ran stack ghci, but always got the following error. How do I fix it? What dose it tell me?
$stack ghci
Downloaded lts-10.4 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

You must be sure that your current stack version(see stack --version) support lts-10.4. Actual version of stack is 1.6.3. If your stack version is older you can upgrade stack by stack upgrade or your package manager(if you install stack using it).
https://github.com/fpco/stackage/issues/3132

Related

Is there a new version for the flutter tflite package?

I started working with Flutter and Dart lately, and I'm building a project using the tflite package. But when I want to build the app, even the demo app when just adding the tflite package to my dependencies in pubspec.yaml, to my phone (Xiaomi redmi note 10, android 12) it shows this error:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\User\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\tflite-1.1.2\android\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':tflite'.
> No signature of method: build_9lbq7rfhl5cpix99148s3txh6.android() is applicable for argument types: (build_9lbq7rfhl5cpix99148s3txh6$_run_closure2) values: [build_9lbq7rfhl5cpix99148s3txh6$_run_closure2#77b9e791]
* 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 5s
Exception: Gradle task assembleDebug failed with exit code 1
Also, when I firstly clicked 'pub get' after depending on tflite, it showed this error:
The plugin `tflite` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
but since I am not the package author, i didn't thought much of it.
I've seen that the tflite package was lastly updated 18 months ago.
So, is there an updated version of the package? Or, is there an alternative for running the google teachable machine?
That is the last known edit to the package. If there are issues that make it unusable now, I'd suggest leaving an issue on their GitHub page so that they can address it moving forward. Unfortunately, you might have to find an alternative to using that package, or edit the package locally yourself to get rid of any dependency issues.
Judging from the volume of issues on this package raised on github (https://github.com/shaqian/flutter_tflite), I don't think it's being maintained at all anymore.

Flutter ObjectBox Unit Testing - Failed to load dynamic library 'lib/objectbox.dll' [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
This post was edited and submitted for review 6 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm building my new Flutter app with objectBox as DB.
When I write a unittest that includes objectBox, at running the test I get following error message:
Failed to load "C:\Dev\flutter_rebuild\test\db_model_test.dart": Invalid argument(s): Failed to load dynamic library 'lib/objectbox.dll': 126
I found this on:
https://opensourcelibs.com/lib/objectbox-dart
It shows how to download an include the "objectbox.dll" to Windows so that the test can run in Android Studio.
Dart standalone programs:
Install the packages pub get
Install objectbox-c system-wide:
macOS/Linux: execute the following command (answer Y when it asks about installing to /usr/lib)
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
macOS: if dart later complains that it cannot find the libobjectbox.dylib you probably have to unsign the dart binary (source: dart issue):
sudo codesign --remove-signature $(which dart)
Windows: use "Git Bash" or similar to execute the following command
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
Then copy the downloaded lib/objectbox.dll to C:\Windows\System32\ (requires admin privileges).
ObjectBox generates code binding code for classes you want stored based using build_runner. After you've defined your persisted entities (see below), run pub run build_runner build or flutter pub run build_runner build.

linphone-sdk compilation error - Could not find a support sound driver API

I am trying to compile linphone-sdk on Centos 7.8 and got the following error.
Call Stack (most recent call first):
cmake/FindBV16.cmake:40 (find_package_handle_standard_args)
CMakeLists.txt:190 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at CMakeLists.txt:327 (message):
Could not find a support sound driver API. Use -DENABLE_SOUND=NO if you
don't care about having sound.
After that, I did a
cmake -DENABLE_SOUND=NO ..
and rebuilt
cmake --build .
but still got the same error. Any idea?
The system has the alsa-lib installed
alsa-plugins-pulseaudio-1.1.6-1.el7.x86_64
alsa-firmware-1.0.28-2.el7.noarch
alsa-lib-1.1.8-1.el7.x86_64
alsa-utils-1.1.8-2.el7.x86_64
alsa-tools-firmware-1.1.0-1.el7.x86_64
Thanks

Fixing an upgrade error on Raspberry Pi 3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I get the following error doing an upgrade on my Raspberry pi. Any idea how I would go about fixing it?
dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.24-11+deb9u4_armhf.deb (--unpack):
trying to overwrite '/usr/include/netax25/ax25.h', which is also in package libax25 1.1.2-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev_2.24-11+deb9u4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
According to Debian documentation:
This happens because somebody made a bonehead packaging error, or a graceless transition of including a file in one package rather than the other. The fix is as follows:
Note down the names of the two packages that are both trying to claim ownership of the same file. In this case, package libc6-dev is trying to update a file previously installed by package kdebase.
Do a "--force-overwrite" install of the new package, thus:
Your solution would be:
dpkg -i --force-overwrite libc6-dev_2.24-11+deb9u4_armhf.deb
Additional Information: https://wiki.debian.org/Broken_pipe

Where can I get a Xerces-C compatible with XML::XERCES 2.7.0?

This question is in continuation of this post, I have tried installing Xerces-C but the thing is Xerces-C version is 2.8.0 and 3.0.0 and XML::XERCES latest version is 2.7.0 and so am getting following error message:
Update2: Here is the error which am getting, it says there is somekind of version mismatch.
Using XERCES_LIB = /home/adoshi/XML-Parser/Parser2/
xerces-c_2_8_0-hppa-hpux-acc_3(1)/xerces-c_2_8_0-hppa-hpux-acc_3/lib
Using XERCES_INCLUDE = /home/adoshi/XML-Parser/Parser2/
xerces-c_2_8_0-hppa-hpux-acc_3(1)/xerces-c_2_8_0-hppa-hpux-acc_3/include
WARNING
You have defined the XERCESCROOT variable, but the file:
XERCESCROOT/src/xercesc/config.status
does not seem to point to the config.status file that was used to
build your Xerces-C library. Without that file, I may not be able to
properly build the C++ glue files that come with Xerces.pm.
Proceeding anyway ...
Using Xerces-C version info from /home/adoshi/XML-Parser/Parser2/xerces
-c_2_8_0-hppa-hpux-acc_3(1)/xerces-c_2_8_0-hppa-hpux-acc_3/include/xercesc/util
/XercesVersion.hpp
*** Version Mismatch ***
You are attempt to build XML::Xerces-2.7.0-0 using Xerces-C-2.8.0,
this will most likely fail, so I am aborting.
You must use Xerces-C-2.7.0
Any guidance would be highly appreciated.
Did you read the download page that clearly says "Older releases are available from the archive download site."? Perhaps you can find a 2.7.0 release there.