LANDIS-II-Foundation / Extension-Biomass-Harvest

LANDIS extension for simulating the effects of forest management.
https://sites.google.com/site/landismodel/extensions/biomass-harvest
Apache License 2.0
0 stars 10 forks source link

Method not found: 'SpeciesList Landis.Library.SiteHarvest.BasicParameterParser`1.ReadSpeciesToPlant()'. #50

Closed geryan closed 3 months ago

geryan commented 4 years ago

I'm not certain if this is actually an issue with this extension or the Harvest management library.

Landis v7 recently installed from github on Ubuntu 18.04.1 and running dotnet 2.2.8. Works fine when Biomass Harvest extension is turned off, but fails when loading Biomass Harvest Extension.

Loading Biomass Harvest extension ...
   Registering Data:  Harvest.PrescriptionName.
   Registering Data:  Harvest.TimeOfLastEvent.
   Registering Data:  Harvest.CohortsDamaged.
Internal error occurred within the program:
  Method not found: 'SpeciesList Landis.Library.SiteHarvest.BasicParameterParser`1.ReadSpeciesToPlant()'.

Stack trace:
   at Landis.Library.HarvestManagement.InputParametersParser.ReadPrescriptions(List`1 prescriptions, Int32 harvestTimestep)
   at Landis.Library.HarvestManagement.InputParametersParser.Parse()
   at Landis.Utilities.TextParser`1.Parse(LineReader reader)
   at Landis.Data.Load[T](String path, ITextParser`1 parser)
   at Landis.Extension.BiomassHarvest.PlugIn.LoadParameters(String dataFile, ICore mCore)
   at Landis.Model.LoadExtensions(ExtensionAndInitFile[] extensions)
   at Landis.Model.Run(String scenarioPath, IUserInterface ui)
   at Landis.App.Main(String[] args) in /opt/Core-Model-v7-LINUX/Tool-Console/src/App.cs:line 99

We've run these scripts in the past with no problems and the appropriate libraries appear to be installed but new installation is failing. Lost from here.

Thanks,

Gerry

rmscheller commented 4 years ago

Gerry,

Are you running the latest Biomass Harvest installer? I thought this issue was fixed. If not, contact Eric Gustafson directly as he is the chief harvest developer. I've also flagged Austin here, who has worked on harvest most recently.

Rob

geryan commented 4 years ago

Thanks Rob

Should be the latest installer as it was cloned directly from the github repository master branch so will be what is up here.

I'll contact Eric directly. I can find a USDA email address, but please ping me if that's unlikely to be the best one.

Cheers,

Gerry

rmscheller commented 4 years ago

Gerry, And you also updated the harvest libraries? That is where the bulk of the code resides.

geryan commented 4 years ago

Hi Rob, yes - all freshly installed from the github repos.

rdt12 commented 4 years ago

Hi Gerry,

Did you ever solve your problem? I'm seeing the same error under Ubuntu 16.04 and dotnet 2.0.0?

I'm installing:

https://github.com/LANDIS-II-Foundation/Extension-Base-Harvest/archive/v4.1.zip https://github.com/LANDIS-II-Foundation/Extension-Biomass-Harvest/archive/v4.1.zip

rdt12 commented 4 years ago

Hi,

I solved my problem. I was building using a script that references a number of "archive/*.zip" files, but checked out the repository:

    https://github.com/LANDIS-II-Foundation/Support-Library-Dlls-v7.git

There must have been an incompatible change introduced at some time in that repo. I checked out commit:

 63978adf8ea85e9f7e89beee8bfb2df1bc835371

(just before the last time the container was successfully built) from the Support-Library_Dlls-v7 repo and built a version that runs without error.

So, my error was not a problem with Extension-Biomass-Harvest.

rmscheller commented 4 years ago

Ron,

I'm not sure I follow. Where do these archive/zip files reside? And the current commit is working, or an older commit?

Thanks!

Rob

VincentBG98 commented 3 years ago

Hello,

I post my issue here as it is quite similar to the first one. I unfortunately not understand the solution find by Mr. Tapia.

I am using NECN, SCRAPPLE and Biomass BDA, everything working before I add Biomass Harvest and I don't know where is the issue. Any idea ?

You'll find below the issue given by the log and attached the settings of the extension (I'm using Landis-II 7.0 and Biomass Harvest 4.3).

2021-04-05 16:52:10,894 - Running Biomass Harvest ... 2021-04-05 16:52:12,204 - Internal error occurred within the program: 2021-04-05 16:52:12,206 - Object reference not set to an instance of an object. 2021-04-05 16:52:12,207 - 2021-04-05 16:52:12,207 - Stack trace: 2021-04-05 16:52:12,227 - at Landis.Library.HarvestManagement.FireRiskRank.ComputeRank(Stand stand, Int32 i) at Landis.Library.HarvestManagement.StandRankingMethod.Landis.Library.HarvestManagement.IStandRankingMethod.RankStands(List1 stands, StandRanking[] rankings) at Landis.Library.HarvestManagement.AppliedPrescription.InitializeForHarvest(List1 stands) at Landis.Library.HarvestManagement.ManagementArea.HarvestStands() at Landis.Extension.BiomassHarvest.PlugIn.Run() at Landis.Model.Run(String scenarioPath, IUserInterface ui) at Landis.App.Main(String[] args) in C:\Users\Austen\Documents\GitHub\Core-Model-v7\Tool-Console\src\App.cs:line 98

biom-harvest-Business-as-usual.txt

Thanks a lot,

Vincent

rmscheller commented 3 years ago

Vincent,

Fire Risk Rank might depend on using the Dynamic Fuels extension; it may not be compatible with SCRPPLE.

R

VincentBG98 commented 3 years ago

Rob,

It is more simple than it seems...

Thanks a lot !