GithubHelp home page GithubHelp logo

Comments (9)

HildingElmqvist avatar HildingElmqvist commented on August 22, 2024

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.

MartinOtter avatar MartinOtter commented on August 22, 2024

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:

  1. ]activate Modia
  2. ]remove Modia
  3. ]dev Modia

in this case alwas the version of Modia is used that is under directory .julia/dev

from modia.jl.

MartinOtter avatar MartinOtter commented on August 22, 2024

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.

MartinOtter avatar MartinOtter commented on August 22, 2024

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.

MartinOtter avatar MartinOtter commented on August 22, 2024

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.

MartinOtter avatar MartinOtter commented on August 22, 2024

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.

crlaugh avatar crlaugh commented on August 22, 2024

I tried it again today on a fresh install of Julia 1.0 in Windows, but still have some errors:

First attempt:

  1. ]add ModiaMath => ok
  2. ]test ModiaMath => 81 out of 81 tests ok
  3. ]add Modia => ok
  4. ]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.

MartinOtter avatar MartinOtter commented on August 22, 2024

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.

MartinOtter avatar MartinOtter commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.