Trying to install JIBX m2e connector in eclipse- Getting install error - m2eclipse

Cannot complete the install because one or more required items could not be found.
Software currently installed: m2e connector for JiBX 1.2.3.201107241325 (org.jibx.m2e.feature.feature.group 1.2.3.201107241325)
Missing requirement: m2e connector for JiBX 1.2.3.201107241325 (org.jibx.m2e.plugin 1.2.3.201107241325) requires 'bundle org.eclipse.m2e.jdt [1.0.0,1.1.0)' but it could not be found
Cannot satisfy dependency:
From: m2e connector for JiBX 1.2.3.201107241325 (org.jibx.m2e.feature.feature.group 1.2.3.201107241325)
To: org.jibx.m2e.plugin [1.2.3.201107241325]

Related

Error: package or namespace load failed for ‘glmmTMB’

I am trying to use package glmmTMB. When I call library(glmmTMB) this is the error message:
">library(glmmTMB)
Error: package or namespace load failed for ‘glmmTMB’ in inDL(x, as.logical(local), as.logical(now), ...):
function 'Rcpp_precious_remove' not provided by package 'Rcpp'
In addition: Warning messages:
1: package ‘glmmTMB’ was built under R version 4.0.5
2: In checkMatrixPackageVersion() :
Package version inconsistency detected.
TMB was built with Matrix version 1.3.4
Current Matrix version is 1.2.18
Please re-install 'TMB' from source using install.packages('TMB', type = 'source') or ask CRAN for a binary version of 'TMB' matching CRAN's 'Matrix' package
I have tried using install.packages('TMB', type = 'source') with no luck. Any ideas?
It's a FAQ -- search for 'Rcpp_precious_remove' not provided by package 'Rcpp'.
In short you are mixing a NEWER compilatio nof something that was built with Rcpp 1.0.7 present with an older installed version which lacks the symbol.
Fix: install.packages("Rcpp") to get the newer Rcpp. And I generally recommend regular update.packages() runs to avoid these issues.

Trouble building yesod/amazonka dependencies in a Haskell Stack project

I'm trying to use the excellent AWS SDK amazonka in the backend portion of an API built using the equally excellent web framework yesod, but I am having great difficulty getting the dependencies for these two libraries to work together.
I started the scaffolded yesod project with
stack new my-project yesod-mongo
which populated my cabal file with the most recent version of yesod (1.6.0). Naively adding the dependencies amazonka-core and amazonka-ssm (for example) to my cabal file comes back with
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for my-project-0.0.0:
amazonka-core must match -any, but the stack configuration has no specified version
(latest matching version is 1.5.0)
amazonka-ssm must match -any, but the stack configuration has no specified version
(latest matching version is 1.5.0)
needed since my-project is a build target.
As suggested, I tried adding amazonka-core-1.5.0 and amazonka-ssm-1.5.0 to my stack.yaml file under extra-deps, but this doesn't work:
Warning: WARNING: /home/ubuntu/my-project/my-project.cabal was modified manually.
Ignoring package.yaml in favor of cabal file. If you want to use package.yaml
instead of the cabal file, then please delete the cabal file.
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for amazonka-core-1.5.0:
conduit-1.3.0.2 from stack configuration does not match >=1.1 && <1.3 (latest
matching version is 1.2.13.1)
needed due to my-project-0.0.0 -> amazonka-core-1.5.0
After a bit of digging, it seems that the snapshot that the yesod template was built off of is lts-11.6, but the most recent snapshot that the amazonka library is included in is lts-10.9. So, I tried building the project again from the yesod-mongo template, but this time specifying an older snapshot:
ubuntu:~$ stack new my-project yesod-mongo --resolver lts-10.9
Downloading template "yesod-mongo" to create project "my-project" in my-project/ ...
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- my-project/
Selected resolver: lts-10.9
Resolver 'lts-10.9' does not have all the packages to match your requirements.
classy-prelude version 1.3.1 found
- my-project requires ==1.4.*
classy-prelude-conduit version 1.3.1 found
- my-project requires ==1.4.*
classy-prelude-yesod version 1.3.1 found
- my-project requires ==1.4.*
http-conduit version 2.2.4 found
- my-project requires ==2.3.*
persistent version 2.7.1 found
- my-project requires ==2.8.*
persistent-mongoDB version 2.6.0 found
- my-project requires ==2.8.*
yesod version 1.4.5 found
- my-project requires ==1.6.*
yesod-auth version 1.4.21 found
- my-project requires ==1.6.*
yesod-core version 1.4.37.3 found
- my-project requires ==1.6.*
yesod-form version 1.4.16 found
- my-project requires ==1.6.*
yesod-static version 1.5.3.1 found
- my-project requires ==1.6.*
Using package flags:
- my-project: dev = False, library-only = False
Now I am at a loss and more than a little frustrated. It seems like perhaps the template is ignoring the snapshot specification. So, my question:
Is there a way to build the scaffolded site from a template that uses a specific snapshot to fill in the cabal and stack.yaml files? Is there anything else I can do to get this to work?
Happy to provide more information if it's helpful.
Edit: I also tried bumping down the versions of the packages in the above snippet, and while this solves the issue of building dependencies, now the scaffolded site doesn't compile (presumably because things have changed in a meaningful way from yesod-1.4.5 to yesod-1.6.0).
Unfortunately you can't use Commercial Haskell's stack templates with yesod and amazonka as of now. The reasons being:
There was a recent conduit rewrite in version 1.3
Some breaking changes were introduced in recent Yesod 1.6 which depends on conduit >= 1.3
Amazonka doesn't work with recent version of conduit
The only way for you to get it working is switching back to old version of stack templates (those templates which actually worked with stackage resolver 10.9) and then using that to create a new project. Fortunately, Stack supports custom stack templates:
$ stack new my-project https://raw.githubusercontent.com/github-user-id/stack-templates/master/my-template.hsfiles

Spark sql errors

I try to work with spark-sql but I had the following errors :
error: missing or invalid dependency detected while loading class file
'package.class'. Could not access term annotation in package
org.apache.spark, because it (or its dependencies) are missing. Check
your build definition for missing or conflicting dependencies. (Re-run
with -Ylog-classpath to see the problematic classpath.) A full
rebuild may help if 'package.class' was compiled against an
incompatible version of org.apache.spark. warning: Class
org.apache.spark.annotation.InterfaceStability not found - continuing
with a stub. error: missing or invalid dependency detected while
loading class file 'SparkSession.class'. Could not access term
annotation in package org.apache.spark, because it (or its
dependencies) are missing. Check your build definition for missing or
conflicting dependencies. (Re-run with -Ylog-classpath to see the
problematic classpath.) A full rebuild may help if
'SparkSession.class' was compiled against an incompatible version of
org.apache.spark.
My configuration :
Scala 2.11.8
Spark-core_2.11-2.1.0
Spark-sql_2.11-2.1.0
Note: I use SparkSession.
After dig into the error message, I know how to solve this kind of errors.
For example:
Error - Symbol 'term org.apache.spark.annotation' is missing... A full rebuild may help if 'SparkSession.class' was compiled against an incompatible version of org.apache.spark
Open SparkSession.class, search "import org.apache.spark.annotation.", you will find import org.apache.spark.annotation.{DeveloperApi, Experimental, InterfaceStability}. It's sure that these classes is missing in classpath. You'll need to find the artifact which conclude these classes.
So open https://search.maven.org and search with c:"DeveloperApi" AND g:"org.apache.spark", you will find the missing artifact is spark-tags as #Prakash answered.
In my situation, just add dependencies spark-catalyst and spark-tags in pom.xml works.
But it's weird that why maven not auto resolve transitive dependencies here?
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.2.0</version>
<scope>provided</scope>
</dependency>
If I use the above depencency, only spark-core_2.11-2.2.0.jar is in maven dependency; While if I change version to 2.1.0 or 2.3.0, all transitive dependencies will be there.
You need to include following artifacts to avoid the dependency issues.
spark-unsafe_2.11-2.1.1
spark-tags_2.11-2.1.1

Cabal Configure Failed Ubuntu + IntelliJ plugin

So I am trying out a Haskell developing with the following IntelliJ plugin:
https://plugins.jetbrains.com/plugin/7453?pr=
GitHub page here:
https://github.com/rikvdkleij/intellij-haskell
The only issue I have with this plugin is as follows: When I try to run my code I keep getting this error message saying that the Cabal Configure Failed. NOTE: Before anyone asks, I have told IntelliJ that GHCs is located at usr/bin/ghc. And yes, I am running Ubuntu-MATE 16.04
Why am I getting this error, and is there a way to fix it?
EDIT: Cabal --version returns the following output:
cabal-install version 1.22.6.0
using version 1.22.5.0 of the Cabal library
Running Cabal Configure, from terminal, in my project directory results in the following output:
Resolving dependencies...
Configuring Test-0.0.1...
cabal: At least the following dependencies are missing:
doctest -any
And IntelliJ knows my cabal data path to be:
/home/avi/.cabal

How to install UML plugin in Eclipse Juno

May be this question has been asked several times. But i am not getting exact solution. So, i have post this question here..
I try hard to install UML2 Tool SDK plugin in Eclipse Juno. I have try to install by following steps.
help -> Install New Software
Add URL as "http://download.eclipse.org/releases/ganymede"
I have select UML2 Tools SDK (Incubation) under Models and Model Development.
I have click next, then i get error like this.
Cannot complete the install because one or more required items could
not be found. Software being installed: UML2 Tools SDK (Incubation)
0.8.0.v200809231457 (org.eclipse.uml2tools.sdk.feature.group 0.8.0.v200809231457) Software currently installed: Eclipse IDE for Java EE Developers 1.5.1.20120917-1257 (epp.package.jee
1.5.1.20120917-1257) Missing requirement: OCL 2.0 Binding for Ecore 1.3.0.v200905271400 (org.eclipse.ocl.ecore 1.3.0.v200905271400) requires 'bundle org.eclipse.emf.ecore [2.5.0,2.6.0)' but it could not
be found Only one of the following can be installed at once:
EMF Ecore 2.8.3.v20130125-0546 (org.eclipse.emf.ecore 2.8.3.v20130125-0546)
EMF Ecore 2.7.0.v20120127-1122 (org.eclipse.emf.ecore 2.7.0.v20120127-1122)
EMF Ecore 2.8.1.v20120911-0500 (org.eclipse.emf.ecore 2.8.1.v20120911-0500)
EMF Ecore 2.8.0.v20120606-0717 (org.eclipse.emf.ecore 2.8.0.v20120606-0717)
EMF Ecore 2.4.2.v200902171115 (org.eclipse.emf.ecore 2.4.2.v200902171115) Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 1.5.1.20120917-1257 (epp.package.jee 1.5.1.20120917-1257)
To: org.eclipse.epp.package.jee.feature.feature.group [1.5.1.20120917-1257] Cannot satisfy dependency:
From: Eclipse Workbench Model 0.10.1.v20120523-1955 (org.eclipse.e4.ui.model.workbench 0.10.1.v20120523-1955)
To: bundle org.eclipse.emf.ecore [2.6.0,3.0.0) Cannot satisfy dependency:
From: Object Constraint Language (OCL) 2.0 Compatibility API 1.1.101.v200808291106 (org.eclipse.emf.ocl 1.1.101.v200808291106)
To: bundle org.eclipse.ocl.ecore [1.1.0,2.0.0) Cannot satisfy dependency:
From: Object Constraint Language (OCL) 2.0 Compatibility API 1.1.101.v200901271800 (org.eclipse.emf.ocl 1.1.101.v200901271800)
To: bundle org.eclipse.ocl.ecore [1.1.0,2.0.0) Cannot satisfy dependency:
From: Java EE IDE Feature 1.5.1.20120917-1257 (org.eclipse.epp.package.jee.feature.feature.group
1.5.1.20120917-1257)
To: org.eclipse.platform.feature.group [4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO]
Cannot satisfy dependency:
From: OCL 2.0 Binding for Ecore 1.2.1.v200807301850 (org.eclipse.ocl.ecore 1.2.1.v200807301850)
To: bundle org.eclipse.emf.ecore [2.4.0,2.5.0) Cannot satisfy dependency:
From: Eclipse Platform 4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO (org.eclipse.platform.feature.group
4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO)
To: org.eclipse.rcp.feature.group [4.2.1.v20120814-120134-7IAPA8BrHQicS-rjP0GbqK780kMy] Cannot satisfy
dependency:
From: Eclipse RCP 4.2.1.v20120814-120134-7IAPA8BrHQicS-rjP0GbqK780kMy (org.eclipse.rcp.feature.group
4.2.1.v20120814-120134-7IAPA8BrHQicS-rjP0GbqK780kMy)
To: org.eclipse.ui.workbench [3.103.1.v20120906-120042] Cannot satisfy dependency:
From: Eclipse Workbench 3.103.1.v20120906-120042 (org.eclipse.ui.workbench 3.103.1.v20120906-120042)
To: bundle org.eclipse.e4.ui.model.workbench 0.9.1 Cannot satisfy dependency:
From: UML2 Diagramming (Incubation) 0.8.1.v200809231457 (org.eclipse.uml2.diagram.feature.group 0.8.1.v200809231457)
To: org.eclipse.uml2.diagram.statemachine [0.8.1.v200809231457] Cannot satisfy dependency:
From: UML2 State Machine Diagram Plugin (Incubation) 0.8.1.v200809231457 (org.eclipse.uml2.diagram.statemachine 0.8.1.v200809231457)
To: bundle org.eclipse.emf.ocl 0.0.0 Cannot satisfy dependency:
From: UML2 Tools SDK (Incubation) 0.8.0.v200809231457 (org.eclipse.uml2tools.sdk.feature.group 0.8.0.v200809231457)
To: org.eclipse.uml2.diagram.feature.group [0.8.1.v200809231457]
I hope you will provide a solution for my problem.
I got the solution, I should use "download.eclipse.org/releases/juno" as a URL for Eclipse Juno. Now it is working fine.

Resources