Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361465

Summary: Unable to install AMP with ascape according instructions
Product: [Modeling] AMP Reporter: Andrey <deepmindster>
Component: GeneralAssignee: Miles Parker <milesparker>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrey CLA 2011-10-19 15:43:59 EDT
I'm trying to install AMP. I'm using installation guide http://www.eclipse.org/amp/documentation/contents/Installation_Guide.html . When i'm trying to AMP after i installed Ascape as described, i'm getting next error 

Cannot complete the install because of a conflicting dependency.
  Software being installed: AMP Escape (Incubation) 0.9.0.v20110811-0220 (org.eclipse.amp.escape.feature.group 0.9.0.v20110811-0220)
  Software currently installed: Ascape Core Framework 5.6.1.201104281225 (org.ascape.core.feature.group 5.6.1.201104281225)
  Only one of the following can be installed at once: 
    Ascape Core 5.6.1.201104281225 (org.ascape.core 5.6.1.201104281225)
    Ascape Core 5.2.0 (org.ascape.core 5.2.0)
    Ascape Core 5.2.0.v20110610-0008 (org.ascape.core 5.2.0.v20110610-0008)
  Cannot satisfy dependency:
    From: Ascape Core Framework 5.6.1.201104281225 (org.ascape.core.feature.group 5.6.1.201104281225)
    To: org.ascape.core [5.6.1.201104281225]
  Cannot satisfy dependency:
    From: AMP Escape (Incubation) 0.9.0.v20110811-0220 (org.eclipse.amp.escape.feature.group 0.9.0.v20110811-0220)
    To: org.ascape.core [5.2.0.v20110811-0220]

And the same problem when i'm trying to install Ascape after AMP is installed.

Obviously, problem is that ascape version on their update site is 5.6.1 , but AMP require [5.2.0.v20110811-0220] (according exception).

I'm using nigtly builds of AMP from here http://download.eclipse.org/amp/updates/nightly and version of ascape from here http://ascape.sourceforge.net/eclipse 

Also, tryed to use version from here http://www.eclipse.org/amp/installing/downloads.php , but it is version 0.8 there.

Only way to install amp with ascape i found is to download required version of ascape manually.
Comment 1 Miles Parker CLA 2011-10-19 16:04:24 EDT
Thanks for the bug Andre. This is sort of a known difficulty that we've been trying to work out. The problem is really one of Eclipse process. It's hard to keep the two versions in synch as we have to go through a contribution process any time we want to update the version of Ascape that we include int the AMP build. It just occurred to me though, I'm not sure that there is any reason for the Ascape core to be marked as a singleton.

So you tried it both ways, that is a) installing Ascape first then AMP, and installing AMP first, then Ascape?

What did you mean by "download manually". How did you install it in that case?
Comment 2 Andrey CLA 2011-10-19 16:19:34 EDT
(In reply to comment #1)
> Thanks for the bug Andre. This is sort of a known difficulty that we've been
> trying to work out. The problem is really one of Eclipse process. It's hard to
> keep the two versions in synch as we have to go through a contribution process
> any time we want to update the version of Ascape that we include int the AMP
> build. It just occurred to me though, I'm not sure that there is any reason for
> the Ascape core to be marked as a singleton.
> 
> So you tried it both ways, that is a) installing Ascape first then AMP, and
> installing AMP first, then Ascape?

right.

> 
> What did you mean by "download manually". How did you install it in that case?

You know.. it is possible to download jars for AMP (from here http://www.eclipse.org/amp/installing/downloads.php ) and change in file content.xml (or something like... from .jar) required version of software (Ascape in our case). And then try to rebuild jar and have eclipse to use rebuilded jar with changed content.xml (instead of installing plugin via update site), but i didnt try this way because the version of AMP by the link is 0.8 - too old i think.

http://plosquare.blogspot.com/2011/04/fix-for-cannot-complete-install-because.html
Comment 3 Andrey CLA 2011-10-19 16:23:12 EDT
> http://plosquare.blogspot.com/2011/04/fix-for-cannot-complete-install-because.html

oops.. this link never mind, just forgot to delete while writing.
Comment 4 Miles Parker CLA 2011-10-19 17:23:50 EDT
The last builds are always at:

https://hudson.eclipse.org/hudson/job/amp-nightly/lastSuccessfulBuild/artifact/amp.downloads/

If you want to attempt this hackery. :)
Comment 5 Andrey CLA 2011-10-19 18:58:36 EDT
(In reply to comment #4)
> The last builds are always at:
> 
> https://hudson.eclipse.org/hudson/job/amp-nightly/lastSuccessfulBuild/artifact/amp.downloads/
> 
> If you want to attempt this hackery. :)

:)

Thanks for the link. I tryed. It was installed without problems after editing files. But i dont think it works because no one from ascape examples are working. But escape examples are working right.

I think i'll try simphony.

Thanks again,
Andrey.
Comment 6 Miles Parker CLA 2011-10-19 19:54:57 EDT
(In reply to comment #5)
> (In reply to comment #4)
> > The last builds are always at:
> > 
> > https://hudson.eclipse.org/hudson/job/amp-nightly/lastSuccessfulBuild/artifact/amp.downloads/
> > 
> > If you want to attempt this hackery. :)
> 
> :)
> 
> Thanks for the link. I tryed. It was installed without problems after editing
> files. But i dont think it works because no one from ascape examples are
> working. But escape examples are working right.
> 
> I think i'll try simphony.
> 
> Thanks again,
> Andrey.

Hang on, what do you need the seperate Ascape support for?
Comment 7 Andrey CLA 2011-10-19 20:10:41 EDT
> Hang on, what do you need the seperate Ascape support for?

I'm not sure i need exactly Ascape. I just used Installation Guide and tryed to AMP install as described there. Faced problem. I'm not sure even i need either Ascape or Repast. Just there are 2 options in manual - ascape and repast.

May be you could advise me a little: i need just create test model, for example, Epstain's rebellion to see what i can do with AMP and how i can do it. Do i need install also repast or ascape for it? Or installation without repast and ascape will ok? Looks like escape examples work for me..
Comment 8 Andrey CLA 2011-10-19 20:16:17 EDT
for examlple here http://www.eclipse.org/amp/documentation/contents/Installation_Guide.html  i found:

> AGF 3D (recommended): http://lwjgl.org/update
> AMF for Ascape (recommended for Java developers): http://ascape.sourceforge.net/eclipse
> AMF for Repast (for people using Repast): http://mirror.anl.gov/pub/repastsimphony/site.xml (non P2)

I installed lwjgl and since I'm familar with Java I tryed to use AMF for Ascape...
Comment 9 Miles Parker CLA 2011-10-19 20:16:33 EDT
(In reply to comment #7)
> > Hang on, what do you need the seperate Ascape support for?
> 
> I'm not sure i need exactly Ascape. I just used Installation Guide and tryed to
> AMP install as described there. Faced problem. I'm not sure even i need either
> Ascape or Repast. Just there are 2 options in manual - ascape and repast.

OK. Gotcha. Those are targets and they are *totally* optional. (Repast isn't even really supported anymore as they dropped some things that we needed and it hasn't been worth updating to target that.)

Sounds like the manual is confusing on this point. :(

> 
> May be you could advise me a little: i need just create test model, for
> example, Epstain's rebellion to see what i can do with AMP and how i can do it.
> Do i need install also repast or ascape for it? Or installation without repast
> and ascape will ok? Looks like escape examples work for me..

Cool, that's one of my favorites. You're getting the original code for it in this package that I wrote ten years ago. :) So yeah, just go with the Escape models. BTW, you can download a nice little jar file from the ascape source forge site that will let you run the model stand alone.
Comment 10 Miles Parker CLA 2011-10-19 20:20:08 EDT
OK, you would have done much better with this:

http://www.eclipse.org/amp/installing/updates.php

Or even this:

http://www.eclipse.org/amp/installing/index.php

That's what you get for reading the manual. ;)

For 3D support, try the Epidemic 3D model.

BTW, the Brookings models are all Java only, they're not built using AMF. You can ignore the AMF bits if you just want to write stuff in Ascape for now. Play around with making changes to the Epidemic model if you want to experiment with AMF. Have fun.
Comment 11 Andrey CLA 2011-10-19 20:30:00 EDT
> Cool, that's one of my favorites. You're getting the original code for it in
> this package that I wrote ten years ago. :) 

Oh, cool :) BTW, nice to meet you, Miles Parker :)

> So yeah, just go with the Escape
> models. BTW, you can download a nice little jar file from the ascape source
> forge site that will let you run the model stand alone.

> BTW, the Brookings models are all Java only, they're not built using AMF. You
can ignore the AMF bits if you just want to write stuff in Ascape for now. Play
around with making changes to the Epidemic model if you want to experiment with
AMF. Have fun.

I see all. Thank you very much.
Andrey.