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

Julia 1.10.1+ breaks automatic installation of AutoEIS #95

Closed
benjamin5988 opened this issue Feb 27, 2024 · 2 comments
Closed

Julia 1.10.1+ breaks automatic installation of AutoEIS #95

benjamin5988 opened this issue Feb 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@benjamin5988
Copy link

benjamin5988 commented Feb 27, 2024

What is your workaround for this? I cannot install or run v0.0.25 for this reason. whenever i try to import autoeis it segfaults

@ma-sadeghi
Copy link
Collaborator

ma-sadeghi commented Feb 27, 2024

Good catch. We're aware of the issue, but didn't get the chance to fix it yet. For now, find the autoeis directory, edit julia_helpers.py and replace:

def install_julia():
    """Installs Julia using juliapkg."""
    # Importing juliacall automatically installs Julia using juliapkg
    import juliacall

with:

def install_julia():
    """Installs Julia using juliapkg."""
    # Importing juliacall automatically installs Julia using juliapkg
    import juliapkg
    juliapkg.require_julia("=1.10.0")
    juliapkg.resolve()
    import juliacall

PS. If you don't know how to locate autoeis directory, just Google "where are Python packages stored + your_operating_system".

Related: JuliaPy/PythonCall.jl/issues/464, JuliaLang/julia/issues/53363

@ma-sadeghi ma-sadeghi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
@ma-sadeghi ma-sadeghi reopened this Feb 27, 2024
@ma-sadeghi ma-sadeghi changed the title workaround for "Importing juliacall always tries to grab and install the latest Julia #463" Julia 1.10.1+ breaks automatic installation of AutoEIS Feb 27, 2024
@ma-sadeghi ma-sadeghi added the bug Something isn't working label Feb 27, 2024
@ma-sadeghi
Copy link
Collaborator

juliacall has been patched to prevent installing Julia > 1.10.0, so this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants