Conflicting Dependencies, Fresh IDE install on Mac Mojave

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.

Please note that the latest supported eclipse IDE to use is Photon:
https://www.eclipse.org/smarthome/documentation/development/ide.html

Newer versions have among others problem with using the configured formatting of java.

Unfortunately the openHAB documentation lacks somewhat behind in this area.

Edit: 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

1 Like

Hilbrand, maybe I can organize the tracking of this. Do you know if someone sets an ‘officially’ supported version of Eclipse?