Conflicting Dependencies, Fresh IDE install on Mac Mojave

Workaround found. col_1958 found a solution by installing product release 2018-09.

  • Platform information:
    • Hardware: _CPUArchitecture/RAM/storage_Mac 2.6GHz Intel Core i7
    • OS: _what OS is used and which version_10.14.2
    • Java Runtime Environment: _which java platform is used and what version_build 1.8.0_111-b14
    • openHAB version:2.4
  • Issue of the topic: please be detailed explaining your issue

Using the Eclipse Installer, Eclipse seems to have installed fine. All of the OpenHAB options were selected.

The main error is org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.

It is unfortunate that the error inhibits the “Finish” button, otherwise I could update the build files to resolve dependencies. To get past this I probably need to first install the IDE then pull in all of the repositories from Github.

The same fresh install procedure also fails on a Macbook Pro.

**Executing bootstrap tasks**
Java(TM) SE Runtime Environment 1.8.0_111-b14
Product org.eclipse.products.epp.package.java.latest
Workspace /Users/mattkraus/openhab2-master/ws
Project com.github.openhab2.1_infra.master
Project com.github.openhab2.2_openhab2.master
Project com.github.openhab2.3_openhab1.master
Project com.github.openhab2.4_zigbee.master
Project com.github.openhab2.5_zwave.master
Project com.github.openhab2.6_bacnet.master
Project com.github.openhab2.7_habpanel.master
Project com.github.openhab2.8_habmin.master
Project com.github.openhab2.9_esh.master
Project com.github.openhab2.10_core.master
Bundle org.eclipse.oomph.setup 1.10.0.v20180914-1031, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
Bundle org.eclipse.oomph.setup.core 1.11.0.v20181203-0741, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
Bundle org.eclipse.oomph.setup.installer 1.11.0.v20181107-1003, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
Bundle org.eclipse.oomph.setup.p2 1.10.0.v20180706-1242, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
**Performing Workspace /Users/mattkraus/openhab2-master/ws**
**Performing P2 Director (Eclipse IDE for Java Developers (2018-12))**
Offline = false
Mirrors = true
Resolving 32 requirements from 5 repositories to /Users/mattkraus/openhab2-master/Eclipse.app/Contents/Eclipse
Requirement org.eclipse.wst.xml_ui.feature.feature.group
Requirement org.eclipse.mylyn.java_feature.feature.group
Requirement org.codehaus.groovy.eclipse.feature.feature.group
Requirement org.eclipse.mylyn.git.feature.group
Requirement org.eclipse.pde.feature.group
Requirement org.eclipse.wst.jsdt.feature.feature.group
Requirement org.eclipse.wst.web_ui.feature.feature.group
Requirement epp.package.java [4.10.0,5.0.0)
Requirement org.eclipse.platform.feature.group [4.10.0,5.0.0)
Requirement org.eclipse.rcp.feature.group [4.10.0,5.0.0)
Requirement org.eclipse.buildship.feature.group
Requirement org.eclipse.eclemma.feature.feature.group
Requirement org.eclipse.egit.feature.group
Requirement org.eclipse.egit.mylyn.feature.group
Requirement org.eclipse.epp.mpc.feature.group
Requirement org.eclipse.jdt.feature.group
Requirement org.eclipse.jgit.feature.group
Requirement org.eclipse.m2e.feature.feature.group
Requirement org.eclipse.m2e.logback.feature.feature.group
Requirement org.eclipse.mylyn.bugzilla_feature.feature.group
Requirement org.eclipse.mylyn.context_feature.feature.group
Requirement org.eclipse.mylyn.hudson.feature.group
Requirement org.eclipse.mylyn.ide_feature.feature.group
Requirement org.eclipse.mylyn.wikitext_feature.feature.group
Requirement org.eclipse.mylyn_feature.feature.group
Requirement org.eclipse.tips.feature.feature.group
Requirement org.eclipse.oomph.setup.feature.group
Requirement org.eclipse.oomph.setup.jdt.feature.group
Requirement org.eclipse.oomph.setup.git.feature.group
Requirement org.eclipse.oomph.setup.workingsets.feature.group
Requirement org.eclipse.oomph.setup.projects.feature.group
Requirement org.eclipse.oomph.setup.pde.feature.group
Repository http://dist.springsource.org/snapshot/GRECLIPSE/e4.8
Repository http://download.eclipse.org/technology/epp/packages/2018-12
Repository http://download.eclipse.org/releases/2018-12/201812191000
Repository http://download.eclipse.org/oomph/updates/milestone/latest
Repository http://download.eclipse.org/egit/updates
Adding repository http://download.eclipse.org/technology/epp/packages/2018-12
Adding repository http://download.eclipse.org/releases/2018-12/201812191000
Adding repository http://download.eclipse.org/egit/updates
Adding repository http://download.eclipse.org/oomph/updates/milestone/latest
Adding repository http://dist.springsource.org/snapshot/GRECLIPSE/e4.8
Calculating requirements and dependencies.
Cannot complete the request. Generating details.
ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.
at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.resolve(ProfileTransactionImpl.java:425)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:337)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:733)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3334)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3262)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3243)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3143)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:575)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:701)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1545487021671
ERROR: org.eclipse.equinox.p2.director code=1 Only one of the following can be installed at once: 
ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.14.0.xx-201812211534-e48 (org.eclipse.jdt.core 3.14.0.xx-201812211534-e48)
ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.16.0.v20181130-1748 (org.eclipse.jdt.core 3.16.0.v20181130-1748)
ERROR: org.eclipse.equinox.p2.director code=0 Object Teams Development Tooling Core 3.16.0.OTDT_r272_201812061254 (org.eclipse.jdt.core 3.16.0.OTDT_r272_201812061254)
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1545487021671
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.eclipse.feature.feature.group 0.0.0
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1545487021671
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.feature.group 0.0.0
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Compilerless feature 3.2.0.xx-201812211534-e48 (org.codehaus.groovy.compilerless.feature.feature.group 3.2.0.xx-201812211534-e48)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.headless.feature.feature.group [3.2.0.xx-201812211534-e48,3.2.0.xx-201812211534-e48]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Eclipse Groovy Development Tools 3.2.0.xx-201812211534-e48 (org.codehaus.groovy.eclipse.feature.feature.group 3.2.0.xx-201812211534-e48)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.compilerless.feature.feature.group [3.2.0.xx-201812211534-e48,3.2.0.xx-201812211534-e48]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Headless feature 3.2.0.xx-201812211534-e48 (org.codehaus.groovy.headless.feature.feature.group 3.2.0.xx-201812211534-e48)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.jdt.patch.feature.group [3.2.0.xx-201812211534-e48,3.2.0.xx-201812211534-e48]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: JDI Debug UI 3.10.100.v20181120-0542 (org.eclipse.jdt.debug.ui 3.10.100.v20181120-0542)
ERROR: org.eclipse.equinox.p2.director code=0 To: osgi.bundle; org.eclipse.jdt.core [3.15.0,4.0.0)
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Eclipse Java Development Tools 3.16.0.v20181206-1038 (org.eclipse.jdt.feature.group 3.16.0.v20181206-1038)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.debug.ui [3.10.100.v20181120-0542,3.10.100.v20181120-0542]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From Patch: org.codehaus.groovy.jdt.patch.feature.group 3.2.0.xx-201812211534-e48 Eclipse Java Development Tools 3.16.0.v20181206-1038 (org.eclipse.jdt.feature.group 3.16.0.v20181206-1038)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.core [3.14.0.xx-201812211534-e48,3.14.0.xx-201812211534-e48]
Took 7 seconds.
There are failed tasks.
**Press Back to choose different settings or Cancel to abort.**

It appears to be a problem with the Oomph project configuration. I installed Eclipse first, then used Import, Projects into Workspace, and selected openHAB. The results generate the same errors.

Same issue here.

Note that following https://www.eclipse.org/smarthome/documentation/development/ide.html does work.

Tried deleting ~/.eclipse but no joy.

Eclipse 2018-12
java version “1.8.0_191”
Apache Maven 3.6.0

Where are Oomph config files tracked and who maintains them?

Edit: “Note that following https://www.eclipse.org/smarthome/documentation/development/ide.html while choosing Eclipse 2018-12 does work.”
In my mind this validated my environment and made openhab’s Oomph setup a suspect.

Install Photon, it’s the latest supported version. There are known issues with the configuration of 2018-12 and openHAB, see https://github.com/eclipse/smarthome/issues/6424
The advice I posted is outdated so I’m striking it through to avoid people from follow the wrong advice if they find this post

I’m also seeing the same; I tried deleting ~/.eclipse and ~/.p2, and the target install folder. Nothing worked.

I ended up just importing the maven project into intellij and dealing with the osgi import errors. Everything else works and I can at least build from the command line.

What version of Phyton do you have installed? I have Python 3.7.2rc1.

Python 2.7.15

Install Photon, it’s the latest supported version. There are known issues with the configuration of 2018-12 and openHAB, see https://github.com/eclipse/smarthome/issues/6424

Thank you @hilbrand. I can confirm choosing the “Proton” version of IDE allowed me to install, compile and run OH on my prev mentioned environment. I did not have to delete ~/.eclipse or remove remove previously installed versions.

Interestingly I had previously tried Eclipse Mars (as shown in the installation screenshots) but this also failed.

I know there is a discussion going on somewhere in the community about updating the installation instructions and the frequency of maintaining it. Can’t remember where I saw that though. Anyone?

Did you mean this discussion:

It was not. Thanks though!

https://www.openhab.org/docs/developer/development/ide.html shows Eclipse Mars in the screenshot so I created https://github.com/openhab/openhab-docs/issues/834

Install Photon, it’s the latest supported version.

@hilbrand, is the latest supported version stated somewhere outside of an issue?

Still no-go here. Python is a little messy on the Mac. If any of this is wrong please let me know.

Python3 is not required
> For OpehHAB development on a Mac you typically will need two versions of Python. There is the native Python that installs with the OS and Python3 that needs to be installed manually. I already have brew installed so installing Python3 is:
_> _
> brew install python
_> _
_> 1. Native version: python --version, 2.7.10. _
> 2. Python3, python3 --version, 3.7.1
_> _
> On my machine both are installed in /usr/local/bin and this is in my PATH.
> There is also “pip” and “pip3” and both are in /usr/local/bin.
_> _
> There are no environment variables other than PATH required for OpenHAB?

This all could be a big red-herring. Is Python the issue?

The main error is:
ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.
at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)

“For OpehHAB development on a Mac you typically will need two versions of Python.”

Is this a self imposed requirement? I only have 2.7 installed. As you know, 3 has breaking changes from 2. I have to wonder if OH needs Python <3.

Your Eclipse error… you think it’s related to Python?

I don’t know where the reference to python comes from. openHAB is Java. Maybe you misread the reference to the eclipse ide version: Photon

I managed with IDE setup and avoid this error after removing ~/.p2 and ~/.eclipse and using “Photon”

Good point. I don’t know where the requirement came from. After I deleting python3, the error message is unchanged. The error is still conflicting dependencies although I don’t know enough about oomph to understand what the conflict is.

This is the last line before the installation script fails.
When I put this line in my browser I get:

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>snapshot/GRECLIPSE/e4.8</Key>
<RequestId>7708B766615B2C6C</RequestId>
<HostId>
kDlYNk+f08PdWMCCZqdGjoWXSyxGTboAkoe3D5BmMbpLFr7zU6YhqXUjd3NRsuk4IaVt+TS2ONI=
</HostId>
</Error>

I’m not sure what this means but it does not look good.
It seems this might not exist:

<Key>snapshot/GRECLIPSE/e4.8</Key>

When I google “snapshot/GRECLIPSE/e4.8” I find:
http://www.vogella.com/tutorials/Groovy/article.html

3. Installation of the Groovy tools for the Eclipse IDE

In the past, I used Eclipse for Android development and web development but never had issues like this. Not sure where to turn at this point.

Hi all,

same problem here with a fresh IDE install on Mac Mojave. I solved by installing product release 2018-09, which installs smoothly, instead of 2018-12.

ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.
  at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.resolve(ProfileTransactionImpl.java:425)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:337)
  at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:733)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3334)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3262)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3243)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3143)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:575)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:701)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
  ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1546103178213
  ERROR: org.eclipse.equinox.p2.director code=1 Only one of the following can be installed at once: 
    ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.14.0.xx-201812282046-e48 (org.eclipse.jdt.core 3.14.0.xx-201812282046-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.16.0.v20181130-1748 (org.eclipse.jdt.core 3.16.0.v20181130-1748)
    ERROR: org.eclipse.equinox.p2.director code=0 Object Teams Development Tooling Core 3.16.0.OTDT_r272_201812061254 (org.eclipse.jdt.core 3.16.0.OTDT_r272_201812061254)
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1546103178213
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.eclipse.feature.feature.group 0.0.0
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1546103178213
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.feature.group 0.0.0
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Compilerless feature 3.2.0.xx-201812282046-e48 (org.codehaus.groovy.compilerless.feature.feature.group 3.2.0.xx-201812282046-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.headless.feature.feature.group [3.2.0.xx-201812282046-e48,3.2.0.xx-201812282046-e48]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Eclipse Groovy Development Tools 3.2.0.xx-201812282046-e48 (org.codehaus.groovy.eclipse.feature.feature.group 3.2.0.xx-201812282046-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.compilerless.feature.feature.group [3.2.0.xx-201812282046-e48,3.2.0.xx-201812282046-e48]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Headless feature 3.2.0.xx-201812282046-e48 (org.codehaus.groovy.headless.feature.feature.group 3.2.0.xx-201812282046-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.jdt.patch.feature.group [3.2.0.xx-201812282046-e48,3.2.0.xx-201812282046-e48]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: JDI Debug UI 3.10.100.v20181120-0542 (org.eclipse.jdt.debug.ui 3.10.100.v20181120-0542)
    ERROR: org.eclipse.equinox.p2.director code=0 To: osgi.bundle; org.eclipse.jdt.core [3.15.0,4.0.0)
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Eclipse Java Development Tools 3.16.0.v20181206-1038 (org.eclipse.jdt.feature.group 3.16.0.v20181206-1038)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.debug.ui [3.10.100.v20181120-0542,3.10.100.v20181120-0542]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From Patch: org.codehaus.groovy.jdt.patch.feature.group 3.2.0.xx-201812282046-e48 Eclipse Java Development Tools 3.16.0.v20181206-1038 (org.eclipse.jdt.feature.group 3.16.0.v20181206-1038)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.core [3.14.0.xx-201812282046-e48,3.14.0.xx-201812282046-e48]


1 Like

Try going to your chosen installation folder (in my case its ~/Workspace/openhab2-master), and if Eclipse.app is there, right-click and Show Package Contents. In the package I have contents/configuration/org.eclipse.oomph.setup/setup.log.

I also had Android development tools on my Mac and thought they might be conflicting, but now it seems there was no conflict.

Thank you! @col_1958 this worked for me :hugs::hugs::hugs:

Many thanks Marco, install issue solved. There are 578 compile errors but that is an issue for another thread.