HumanBrainProject / fairgraph

High-level Python API for the EBRAINS Knowledge Graph
Apache License 2.0
10 stars 6 forks source link

last commit is causing an import error #91

Open lzehl opened 2 months ago

lzehl commented 2 months ago
----> 1 from fairgraph import KGClient
      2 
      3 kg_client = KGClient(host="core.kg.ebrains.eu")

ImportError: cannot import name 'KGClient' from 'fairgraph' (unknown location)
apdavison commented 2 months ago

I cannot reproduce this error. How did you install fairgraph, and which folder are you running this code in?

lzehl commented 2 months ago

I installed fairgraph within a Jupyter Notebook (planned for a course). Normal pip install fairgraph worked however installing the dev version with:

git clone https://github.com/HumanBrainProject/fairgraph.git fairgraph
pip install ./fairgraph

did not work and ended in the above stated error. I also deinstalled fairgraph beforehand. I will further investigate though what went wrong on my machine.