neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
https://neo4j.com/labs/apoc
Apache License 2.0
1.71k stars 493 forks source link

How to config apoc while using sandbox? #1806

Closed ninjakx closed 3 years ago

ninjakx commented 3 years ago

Traceback:

ClientError: [Procedure.ProcedureCallFailed] Failed to invoke procedureapoc.load.json: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your apoc.conf

I am working on yelp dataset and for that using kaggle kernel and created a sandbox project.

from py2neo import Graph
import pandas as pd

graph = Graph("bolt://XX.XX.XXX.XXX:7687", auth=("neo4j", "password")) 

query="""
CALL apoc.load.json("../input/yelp-dataset/yelp_academic_dataset_business.json");
"""
graph.run(query)

How do I make it work in kaggle kernel? when I am using neo4j desktop I am able to load it but not with using sandbox.

jexp commented 3 years ago

You cannot access the filesystem on a sandbox, so please use remote http(s) URLs instead for your data.