Comments (9)
Yes. I hope we could coordinate to have a new Modia version 0.2 taggged for Julia 0,6, 0.7 and 1,0.
from modia.jl.
I have also a difficulty with ModiaMath (which did not appear yesterday). There is now a warning message from Sundials. Reported an issue to Sundials. I wonder why this appears now, because yesterday this did not happen (and I also left Julia an re-entered to running all tests). I think this has to be fixed first.
I do not yet fully understand the package manager, but in the beginning I also got error messages of the type that you reported. I fixed them in the following way:
- ]activate Modia
- ]remove Modia
- ]dev Modia
in this case alwas the version of Modia is used that is under directory .julia/dev
from modia.jl.
I just checked and the Sundials version 2.4.0 used by ModiaMath is released since Aug. 11, and I used this version all the time. It is clear that SparseArrays need to be added to the dependency list of Sundials, but the question is why this warning did not appear much earlier. I do not think it is possible to go back to an earlier version of Sundials because 2.4.0 is the only version supported for Julia 1.0.
So, it seems the only approach is to wait until this is fixed in Sundials.
from modia.jl.
Its not a Sundials issue, but a bad commit to Julias package repository. This is currently being fixed, so best to wait before continuing.
from modia.jl.
Probably, the reason is the folllowing:
- In Sundials, only a REQUIRE file is present, no Projects.toml file and the Projects.toml file is automatically created by the Julia package manager system.
- In the REQUIRE file, the dependency to packages that have been previously in Base (e.g. SparseArrays, LinearAlgebra, Test) are not listed (otherwise, there would be errors if the REQUIRE file is used for Julia 0.6).
- It seems the automatic handling of such "old" REQUIRE files to the "new" Projects.toml file was broken in the METADATA system by some commit to METADATA yesterday or today.
from modia.jl.
The problem with the Julia registry is fixed details here.
I just upgraded Modia to use ModiaMath 0.2.2 and pushed this change.
I tested now with Modia, ModiaMath and Modia3D and all the previous problems that I had today with the installations are gone.
@crlaugh: Please check, whether your reported issue is also gone.
from modia.jl.
I tried it again today on a fresh install of Julia 1.0 in Windows, but still have some errors:
First attempt:
- ]add ModiaMath => ok
- ]test ModiaMath => 81 out of 81 tests ok
- ]add Modia => ok
- ]test Modia => problems:
ERROR: LoadError: UndefVarError: Test not defined Stacktrace: [1] include at .\boot.jl:317 [inlined] [2] include_relative(::Module, ::String) at .\loading.jl:1038 [3] include(::Module, ::String) at .\sysimg.jl:29 [4] include(::String) at .\client.jl:388 [5] top-level scope at none:0 in expression starting at C:\Users\laughman\.julia\packages\Modia\A9BVO\test\runtests.jl:3 ERROR: Package Modia errored during testing
Assuming that we can fix the tests later, I then tried
5. using Modia => more problems:
julia> using Modia [ Info: Precompiling Modia [cb905087-75eb-5f27-8515-1ce0ec8e839e] ERROR: LoadError: LoadError: UndefVarError: @doc_str not defined Stacktrace: [1] top-level scope [2] include at .\boot.jl:317 [inlined] [3] include_relative(::Module, ::String) at .\loading.jl:1038 [4] include(::Module, ::String) at .\sysimg.jl:29 [5] top-level scope at none:2 [6] eval at .\boot.jl:319 [inlined] [7] eval(::Expr) at .\client.jl:389 [8] top-level scope at .\none:3 in expression starting at C:\Users\laughman\.julia\packages\Modia\A9BVO\src\Modia.jl:12 in expression starting at C:\Users\laughman\.julia\packages\Modia\A9BVO\src\Modia.jl:12 ERROR: Failed to precompile Modia [cb905087-75eb-5f27-8515-1ce0ec8e839e] to C:\Users\laughman\.julia\compiled\v1.0\Modia\CBgbi.ji. Stacktrace: [1] error(::String) at .\error.jl:33 [2] macro expansion at .\logging.jl:313 [inlined] [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184 [4] _require(::Base.PkgId) at .\logging.jl:311 [5] require(::Base.PkgId) at .\loading.jl:852 [6] macro expansion at .\logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at .\loading.jl:834
Okay, maybe I need to get the master:
6. ]remove Modia
7. ]add Modia#master => more problems:
(v1.0) pkg> add Modia#master Updating git-repo
https://github.com/ModiaSim/Modia.jl.git`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ModiaMath [80923050]:
ModiaMath [80923050] log:
├─ModiaMath [80923050] has no known versions!
└─restricted to versions * by Modia [e4773e00] — no versions left
└─Modia [e4773e00] log:
├─possible versions are: 0.2.0 or uninstalled
└─Modia [e4773e00] is fixed to version 0.2.0-beta.12`
Any suggestions?
from modia.jl.
I think the reason was that the UUID in ModiaMaths Project.toml file was different to the UUID defined in METADATA. Since this is fixed in version 0.2.4, the issue above should be gone.
Note, Modia with support of Julia 0.6, 0.7, 1.0 and using [email protected] was released. Registration is pending at METADATA.
from modia.jl.
Modia 0.2.1 (runs with Julia 0.6, 0.7, 1.0) is now registered at METADATA. The problems with the installation should be gone.
from modia.jl.
Related Issues (20)
- @instantiateModel with Unitful quantities fails with default UNITFUL_FANCY_EXPONENTS [=true] HOT 1
- Issue with inferring initial conditions for variables used in der() HOT 2
- numerical constant and spaces in equation HOT 1
- Problem with ModiaPlot dependencies
- I am studying this product, but it is incredibly problematic with the version compatibility of other very common libraries, such as JuliaDB. HOT 1
- I would like to use Modia in real-time applications ... does it make sense, is it possible? HOT 2
- linearize!(model, analytic=true, ... HOT 2
- equations = :[ ] ... observation
- dead-time function HOT 1
- ModiaLang v0.8.2 - missing feature in main branch HOT 1
- issue with "m.x_init" HOT 3
- Modia.jl 0.6.1 instantiatemodel fails HOT 4
- Bool parameter converted to Float64 HOT 1
- error when using SVector and SMatrix HOT 1
- Modia crashing "using Modia" HOT 4
- time consuming function "addToResult!"
- docs: How to describe the Map function? HOT 1
- Link to documentation broken HOT 1
- [help] Implementing a basic NPN BJT model HOT 2
- Precompilation fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modia.jl.