GithubHelp home page GithubHelp logo

Comments (18)

musm avatar musm commented on May 27, 2024 1

I get problem on windows with this package. can we please not redownload all of conda if it is already installed. Please something like PyPlots where it uses the system conda installation.

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024

Let me also say that this is the first time I have encountered an error that said "conda is doing something else". It hasn't happened to me with any other package so far. (as far as I can remember!)

from symengine.jl.

isuruf avatar isuruf commented on May 27, 2024

Can you try below as the error message suggests?

using Conda
Conda.runconda(`clean --lock`, "C:\\Users\\migos\\.julia\\v0.6\\SymEngine\\deps\\usr")

Lock file is there probably because a Conda command was interrupted or something like that.

from symengine.jl.

certik avatar certik commented on May 27, 2024

@Datseris sorry about that, I haven't encountered this error either. Let us know if @isuruf's suggestion fixes it.

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024

Tried to run the suggestion, got this:

julia> using Conda

julia> Conda.runconda(`clean --lock`, "C:\\Users\\migos\\.julia\\v0.5\\SymEngine\\deps\\usr")
ERROR: ArgumentError: Path to conda environment is not valid.
 in prefix at C:\Users\migos\.julia\v0.5\Conda\src\Conda.jl:60 [inlined]
 in _install_conda(::String, ::Bool) at C:\Users\migos\.julia\v0.5\Conda\src\Conda.jl:202
 in runconda(::Cmd, ::String) at C:\Users\migos\.julia\v0.5\Conda\src\Conda.jl:130

from symengine.jl.

isuruf avatar isuruf commented on May 27, 2024

Sorry, that should have been just

using Conda
Conda.runconda(`clean --lock`)

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024

So, here is the thing. When I do my first package update, I get the error I describe in this post. After that, if I do again update, nothing goes wrong.
During this second update attempt, when nothing goes wrong, I tried the command:

julia> Conda.runconda(`clean --lock`)
removing: C:\Users\migos\.julia\v0.5\Conda\deps\usr\pkgs\.conda_lock-9344

But I don't know what to do now

from symengine.jl.

isuruf avatar isuruf commented on May 27, 2024

If nothing goes wrong on the second attempt, does using SymEngine work?

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024

Yes, it does work. There are no errors at least when using SymEngine, but I don't know any commands to run to see if it really works.

from symengine.jl.

isuruf avatar isuruf commented on May 27, 2024

Pkg.test("SymEngine") will test the package

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024
julia> Pkg.test("SymEngine")
INFO: Testing SymEngine
ERROR: LoadError: LoadError: error compiling _symbol: error compiling _symbol: could not load library "symengine"
The specified module could not be found.

 in include_from_node1(::String) at .\loading.jl:488 (repeats 2 times)
 in process_options(::Base.JLOptions) at .\client.jl:262
 in _start() at .\client.jl:318
while loading C:\Users\migos\.julia\v0.5\SymEngine\test\test-dense-matrix.jl, in expression starting on line 5
while loading C:\Users\migos\.julia\v0.5\SymEngine\test\runtests.jl, in expression starting on line 4
==================================================[ ERROR: SymEngine ]==================================================

failed process: Process(`'C:\Users\migos\AppData\Local\Julia-0.5.0\bin\julia' -Cx86-64 '-JC:\Users\migos\AppData\Local\Julia-0.5.0\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\migos\.julia\v0.5\SymEngine\test\runtests.jl'`, ProcessExited(1)) [1]

========================================================================================================================
ERROR: SymEngine had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:740
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
 in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258

from symengine.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 27, 2024

You have ParameterizedFunctions, so just give the repo example a go:

f = @ode_def LotkaVolterra begin
  dx = a*x - b*x*y
  dy = -c*y + d*x*y
end a=>1.5 b=>1 c=3 d=1

It should build everything but throw a warning that it cannot invert the Hessian (which is mathematically correct)

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024

Nope, not even that:

julia> f = @ode_def LotkaVolterra begin
         dx = a*x - b*x*y
         dy = -c*y + d*x*y
       end a=>1.5 b=>1 c=3 d=1
ERROR: error compiling #ode_def_opts#1: error compiling symbolize: error compiling symbols: error compiling _symbol: could not load library "symengine"
The specified module could not be found.

 in ode_def_opts(::Symbol, ::Dict{Symbol,Bool}, ::Expr, ::Expr, ::Vararg{Expr,N}) at C:\Users\migos\.julia\v0.5\ParameterizedFunctions\src\ode_def_opts.jl:5

*yes I know its the same error

from symengine.jl.

isuruf avatar isuruf commented on May 27, 2024

@musm, Conda.jl can be configured to use a system conda installation. https://github.com/JuliaPy/Conda.jl#using-an-already-existing-conda-installation

from symengine.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 27, 2024

This issue could probably be closed, right?

from symengine.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 27, 2024

Bumping the closing? I thought @Datseris 's problems were fixed.

from symengine.jl.

isuruf avatar isuruf commented on May 27, 2024

Right, now that we are not using Conda on windows, this should be fixed

from symengine.jl.

Datseris avatar Datseris commented on May 27, 2024

Right now I don't have any problems, that is true. Pkg.update() works fine (it does that REALLY weird thing where it installs a huge amount of stuff everytime).

from symengine.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.