-
Notifications
You must be signed in to change notification settings - Fork 29
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
is_V4 == true Argument length = 0 #94
Comments
I just had the same problem, commented on another issue I now see is closed... has there been a minor version release on the neo4j side that has broken the R package? Or less likely, could it be a Windows 11 thing? Comment there: I am getting an error related to the isV4 argument: Error in if (con$is_V4 == TRUE) { : argument is of length zero. con <- neo4j_api$new(url = "http://localhost:7474/", db = "...", user = "neo4j", password = "...", isV4 = TRUE) Connected at http://localhost:7474/ User: neo4j Neo4j database: [...] Neo4j version: 4.4.3 Some methods work fine, but others error: con$ping() sessionInfo() Matrix products: default Random number generation: locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Hello , I have a same issue , when I run : `install_github("davidlrosenblum/neo4r@4.x") con2neo4j <- neo4j_api$new(url = "server http url", con2neo4j <- neo4j_api$new(url = "server http url", or con2neo4j <- neo4j_api$new(url = "server http url", I have this error : and the only way to have a connection I run Error in if (con$is_V4 == TRUE) { : argument is of length zero. I have a MacBook and I tried the code in Rstudio cloud and is always a same problem |
Hello, I have the same problem , any help ? |
Hello @ahxxad I edited the package and its work for me install this from here `{r} con <- neo4j_api$new(url = "host", con$ping() ` |
The is_V4=TRUE is not needed, this was removed a long time ago.
Please use my master not the 4.x
con1 <- neo4j_api$new(
+ url = "http://localhost:7474",
+ user = "neo4j",
+ password = “xxxx"
+ )
[1] "Found Neo4j 4.x”
con1$ping()
[1] TRUE
con1$get_constraints()
No data returned.
con1$get_version()
[1] "Found Neo4j 4.x"
[1] TRUE
… On Nov 2, 2022, at 4:57 AM, Midou Seddik ***@***.***> wrote:
Hello @ahxxad <https://github.com/ahxxad> I edited the package and its work for me install this from here
https://github.com/medseddik1999/neo4rmyedition <https://github.com/medseddik1999/neo4rmyedition>
`{r}
install_github("midouseddik67200/neo4rmyedition")
con <- neo4j_api$new(url = "host",
user = "neo4j", password = "pssword" ,db="graph.db", is_V4=TRUE)
con$ping()
`
—
Reply to this email directly, view it on GitHub <#94 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AFBXAGH76DV6IH6BFYWH2GTWGIUGRANCNFSM5QC3DS2A>.
You are receiving this because you are subscribed to this thread.
|
@davidlrosenblum, the problem with your current master is that it no longer allows for the specification of the database argument ("db="), which is forcing people to use an older commit of your fork. Can you add a new version that does not require the is_V4 argument, but also allows use of the db argument? |
Use my fork
"davidlrosenblum/neo4r”
Here is my session below
R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Workspace loaded from ~/.RData]
library(devtools)
Loading required package: usethis
install_github("davidlrosenblum/neo4r")
Skipping install of 'neo4r' from a github remote, the SHA1 (4de7ea2) has not changed since last install.
Use `force = TRUE` to force installation
library(neo4r)
con1 <- neo4j_api$new(url = "http://localhost:7474",user="neo4j",password=“xxxxj",db="hcanalytics")
[1] "Found Neo4j 4.x”
con1$ping()
[1] TRUE
con1$get_constraints()
constraint <- con1$get_constraints()
constraint
$name
# A tibble: 7 × 1
value
<chr>
1 constraint_case_primaryid
2 constraint_drug_name
3 constraint_manufacturer_name
4 constraint_outcome_code
5 constraint_reaction_description
6 constraint_reportsource_code
7 constraint_therapy_primaryid
$description
# A tibble: 7 × 1
value
<chr>
1 CONSTRAINT ON ( case:Case ) ASSERT (case.primaryid) IS UNIQUE
2 CONSTRAINT ON ( drug:Drug ) ASSERT (drug.name) IS UNIQUE
3 CONSTRAINT ON ( manufacturer:Manufacturer ) ASSERT (manufacturer.manufacturerName) IS UNIQUE
4 CONSTRAINT ON ( outcome:Outcome ) ASSERT (outcome.code) IS UNIQUE
5 CONSTRAINT ON ( reaction:Reaction ) ASSERT (reaction.description) IS UNIQUE
6 CONSTRAINT ON ( reportsource:ReportSource ) ASSERT (reportsource.code) IS UNIQUE
7 CONSTRAINT ON ( therapy:Therapy ) ASSERT (therapy.primaryid) IS UNIQUE
$details
# A tibble: 7 × 1
value
<chr>
1 Constraint( id=6, name='constraint_case_primaryid', type='UNIQUENESS', schema=(:Case {primaryid}), ownedIndex=5 )
2 Constraint( id=4, name='constraint_drug_name', type='UNIQUENESS', schema=(:Drug {name}), ownedIndex=3 )
3 Constraint( id=16, name='constraint_manufacturer_name', type='UNIQUENESS', schema=(:Manufacturer {manufacturerName}), …
4 Constraint( id=12, name='constraint_outcome_code', type='UNIQUENESS', schema=(:Outcome {code}), ownedIndex=11 )
5 Constraint( id=8, name='constraint_reaction_description', type='UNIQUENESS', schema=(:Reaction {description}), ownedIn…
6 Constraint( id=10, name='constraint_reportsource_code', type='UNIQUENESS', schema=(:ReportSource {code}), ownedIndex=9…
7 Constraint( id=14, name='constraint_therapy_primaryid', type='UNIQUENESS', schema=(:Therapy {primaryid}), ownedIndex=1…
attr(,"class")
[1] "neo" "list"
con1$get_version()
[1] "Found Neo4j 4.x"
[1] TRUE
'MATCH (n) RETURN count(*) as count' %>%
+ call_neo4j(con1)
$count
# A tibble: 1 × 1
value
<int>
1 11381
attr(,"class")
[1] "neo" "list"
…
On Nov 2, 2022, at 9:39 AM, David Rosenblum ***@***.***> wrote:
The is_V4=TRUE is not needed, this was removed a long time ago.
Please use my master not the 4.x
con1 <- neo4j_api$new(
+ url = "http://localhost:7474 <http://localhost:7474/>",
+ user = "neo4j",
+ password = “xxxx"
+ )
[1] "Found Neo4j 4.x”
con1$ping()
[1] TRUE
> con1$get_constraints()
No data returned.
> con1$get_version()
[1] "Found Neo4j 4.x"
[1] TRUE
> On Nov 2, 2022, at 4:57 AM, Midou Seddik ***@***.*** ***@***.***>> wrote:
>
>
> Hello @ahxxad <https://github.com/ahxxad> I edited the package and its work for me install this from here
> https://github.com/medseddik1999/neo4rmyedition <https://github.com/medseddik1999/neo4rmyedition>
> `{r}
> install_github("midouseddik67200/neo4rmyedition")
>
> con <- neo4j_api$new(url = "host",
> user = "neo4j", password = "pssword" ,db="graph.db", is_V4=TRUE)
>
> con$ping()
>
> `
>
> —
> Reply to this email directly, view it on GitHub <#94 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AFBXAGH76DV6IH6BFYWH2GTWGIUGRANCNFSM5QC3DS2A>.
> You are receiving this because you are subscribed to this thread.
>
|
Hello,
i'm new to R and neo4j.
I tried to follow the Doc but im stuck at this point:
Here is my code:
install.packages("Rtools")
install_github("davidlrosenblum/neo4r@4.x")
library(httr)
library(devtools)
loading neo4r lib
library(neo4r)
packageVersion('neo4r')
con object
con40 <- neo4j_api$new(url = "http://localhost:7474", user = "neo4j",
password ="mpineo", db = "neo4j", isv4 = TRUE)
testing connection
con40$ping()
con40$get_version()
con40$get_constraints()
-> I'm getting the following error message:
Error in if (con$is_V4 == TRUE) { : argument has length 0
Im using Neo4j Community 4.4.4
(> con40$get_version()
[1] "4.4.4")
My ping worked
con40$ping()
[1] 200
What am I missing?
The text was updated successfully, but these errors were encountered: