apache / incubator-hugegraph-ai

The integration of HugeGraph with artificial intelligence
https://hugegraph.apache.org
Apache License 2.0
46 stars 22 forks source link

[Question] Build local development environment #11

Open JackyYangPassion opened 10 months ago

JackyYangPassion commented 10 months ago

Problem Type (问题类型)

others (please comment below)

Before submit

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

simon824 commented 10 months ago

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