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

Error importing Base #503

Open
bdas123 opened this issue Aug 16, 2022 · 2 comments
Open

Error importing Base #503

bdas123 opened this issue Aug 16, 2022 · 2 comments

Comments

@bdas123
Copy link

bdas123 commented Aug 16, 2022

I installed PyJulia using the instructions provided here.

When I run the following commands, I get a JuliaError:

import julia
julia.install()
from julia import Base
JuliaError: Exception 'ArgumentError' occurred while calling julia code:
const PyCall = Base.require(Base.PkgId(Base.UUID("438e738f-606a-5dbb-bf0a-cddfbfd45ab0"), "PyCall"))
@mkitti
Copy link
Member

mkitti commented Aug 30, 2022

Try running

using Pkg
pkg"add PyCall"
pkg"build PyCall"

@mkitti
Copy link
Member

mkitti commented Sep 7, 2022

I suspect this is the trace.

julia> const PyCall = Base.require(Base.PkgId(Base.UUID("438e738f-606a-5dbb-bf0a-cddfbfd45ab0"), "PyCall"))
ERROR: ArgumentError: Package PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
 [1] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1306
 [2] _require_prelocked(uuidkey::Base.PkgId)
   @ Base .\loading.jl:1200
 [3] macro expansion
   @ .\lock.jl:223 [inlined]
 [4] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:1195
 [5] top-level scope
   @ REPL[1]:1

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

2 participants