Open xning opened 2 years ago
@xning I'm not sure I understand what is your problem. The dialog window you get tells you that you have already loaded in the package browser some library which is incompatible with the library you want to load. There are only two options at that point: either cancel the operation (maybe you started it by mistake, e.g. by selecting the wrong file), or unload all previously loaded library and reload the library you are interested into with its proper dependencies, as declared in the uses annotation.
In most cases, the second option does exactly what you need, i.e. it loads it and allows you to use it. If you find this error message annoying, you can disable the automatic loading of the conflicting library in Tools | Options | Libraries.
Do I miss something?
@casella
I tried the second option, and didn't resolve the problem. OMEdit reports:
[3] 15:21:20 Scripting Notification You can install the requested package using one of the commands: installPackage(ADGenKinetics, "1.0.0+r23", exactMatch=true) installPackage(ADGenKinetics).
[4] 15:21:20 Scripting Error Failed to load package ADGenKinetics (default) using MODELICAPATH /home/dao/.openmodelica/libraries/:/opt/openmodelica-nightly/bin/../lib/omlibrary.
Tried to install the package as above advice, but failed.
@casella
For some package, after start OMEdit, first directly load the package, will report errors and advice to try the second option. But the second option didn't resolve problem. Hence the error msg comes again and again.
@casella
I download nearly all the packages from https://build.openmodelica.org/rpm/omlib/ and only follows works
Annex60 1.0.0 BioChem 1.0.2 BondLib 2.3 BrineProp 0.5.6 Buildings 7.0.0 BuildSysPro 3.3.0 Chemical 1.4.0 Complex 4.0.0.mo DESLib 1.6.1 DriveControl 3.1.0 ElectroMechanicalDrives 2.2.0 examples ExtendedPetriNets 1.0 FailureModes 1.2.1 FaultTriggering 0.6.6 FCSys 0.2.6 FeedDriveLibrary.mo HanserModelica 1.1.0 IBPSA latest IDEAS 2.1.0 index.json KeyWordIO 0.9.0 LinearMPC 1.mo MEV 1.0.1 Modelica 4.0.0 Modelica_DeviceDrivers 2.0.0 ModelicaDEVS 1.mo Modelica_Noise 1.0 Beta.1 ModelicaServices 4.0.0 Modelica_StateGraph2 2.0.3 Modelica_Synchronous 0.93.0 ModelicaTest 4.0.0 ModelicaTest trunk Modelica trunk MotorcycleDynamics MVEMLib 1.0.1 NcDataReader2 2.5.0 NeuralNetwork 1.0 Nuclear.mo ObjectStab 1.1 Dev ObsoleteModelica4 4.0.0.mo OpenHydraulics 1.0 OpenIPSL 1.5.0 PhotoVoltaics 1.6.0 Physiolibrary 2.3.2-beta PlanarMechanics 1.5.0 PlanarMechanicsTest 1.5.0 PNlib 2.2 PowerFlow 0.3 PowerGrids 1.0.0 PowerSystems latest PVSystems 0.6.2 ScalableTestSuite 1.11.5 SiemensPower 2.1 beta SiemensPower OMCtest SolarTherm 0.2 SolarTherm alberto-merge Spot 0.706.1 SystemDynamics 2.1.1 test TestDerivative.mo ThermoSysProLogo.mo VehicleInterfaces 1.2.5 WasteWater 2.1.0 wbEHPTLib.mo WindPowerPlants 1.2.0
Description
Steps to Reproduce
Expected Behavior
The latest openmodelicalibraries work with openmodelica-nightly
Screenshots
Version and OS
Additional Context