Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems installing Modia#master on Julia 1.0 #52

Closed
crlaugh opened this issue Sep 20, 2018 · 9 comments
Closed

Problems installing Modia#master on Julia 1.0 #52

crlaugh opened this issue Sep 20, 2018 · 9 comments

Comments

@crlaugh
Copy link
Contributor

crlaugh commented Sep 20, 2018

Since Martin updated ModiaMath to version 0.2.2, I tried installing Modia on a clean installation of Julia 1.0. Unfortunately, I get some errors:

(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

Does it make sense to have a new release of Modia that is compatible with Julia 1.0? Or is there another way to get Modia to install given this new release of ModiaMath?

@HildingElmqvist
Copy link
Contributor

Yes. I hope we could coordinate to have a new Modia version 0.2 taggged for Julia 0,6, 0.7 and 1,0.

@MartinOtter
Copy link
Member

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

@MartinOtter
Copy link
Member

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.

@MartinOtter
Copy link
Member

Its not a Sundials issue, but a bad commit to Julias package repository. This is currently being fixed, so best to wait before continuing.

@MartinOtter
Copy link
Member

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.

@MartinOtter
Copy link
Member

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.

@crlaugh
Copy link
Contributor Author

crlaugh commented Sep 20, 2018

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?

@MartinOtter
Copy link
Member

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 ModiaMath@0.2.4 was released. Registration is pending at METADATA.

@MartinOtter
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants