incubator-hugegraph-ai icon indicating copy to clipboard operation
incubator-hugegraph-ai copied to clipboard

[Question] Build local development environment

Open JackyYangPassion opened this issue 2 years ago • 1 comments

Problem Type (问题类型)

others (please comment below)

Before submit

  • [X] I had searched in the issues and found no similar issues.

Environment (环境信息)

python 3.10 Pycharm mac

Your Question (问题描述)

Use pycharm to run test.py and report an error

Traceback (most recent call last):
  File "/Users/yangjiaqi/Documents/hugegraph_concurrency/repo/incubator-hugegraph-ai/hugegraph-python/example/test.py", line 18, in <module>
    from src.client import PyHugeClient
ModuleNotFoundError: No module named 'src'

Process finished with exit code 1

Root cause:

image

Solution:

result

JackyYangPassion avatar Oct 19 '23 03:10 JackyYangPassion

has been fix in #17 image or we can set env like: export PYTHONPATH=$(pwd)/hugegraph-llm/src:$(pwd)/hugegraph-ml/src:$(pwd)/hugegraph-python-client/src

simon824 avatar Oct 24 '23 02:10 simon824