-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hello I am a novice so this may seem obvious but when I try to connect to a local postgres database using the following code:
Repo.connect(
adapter = Octo.Adapters.PostgreSQL,
dbname = "postgis",
user = "postgres"
)I get the following error:
MethodError: no method matching getpass(::Base.DevNull, ::IOContext{Base.PipeEndpoint}, ::String)
Closest candidates are:
getpass(!Matched::Base.TTY, ::IO, ::AbstractString) at util.jl:261
getpass(::String)@util.jl:291
var"#Connection#17"(::Bool, ::Int64, ::Dict{String, String}, ::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, ::Type{LibPQ.Connection}, ::String)@connections.jl:309
Connection@connections.jl:265[inlined]
var"#db_connect#1"(::Base.Pairs{Symbol, String, Tuple{Symbol, Symbol}, NamedTuple{(:dbname, :user), Tuple{String, String}}}, ::typeof(Main.PostgreSQLLoader.db_connect))@PostgreSQL.jl:19
var"#invokelatest#2"(::Base.Pairs{Symbol, String, Tuple{Symbol, Symbol}, NamedTuple{(:dbname, :user), Tuple{String, String}}}, ::typeof(Base.invokelatest), ::Any)@essentials.jl:731
var"#connect#1"(::Module, ::Nothing, ::Bool, ::Base.Pairs{Symbol, String, Tuple{Symbol, Symbol}, NamedTuple{(:dbname, :user), Tuple{String, String}}}, ::typeof(Octo.Repo.connect))@Repo.jl:83
top-level scope@[Local: 1](http://localhost:1234/edit?id=c37d6530-e4d7-11ed-2220-d3f608429ebb#)[inlined]
```sql
All the dependencies should be installed.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels