You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "JackyYangPassion (via GitHub)" <gi...@apache.org> on 2023/10/19 03:26:59 UTC

[I] [Question] Build local development environment [incubator-hugegraph-ai]

JackyYangPassion opened a new issue, #11:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/11

   ### Problem Type (问题类型)
   
   others (please comment below)
   
   ### Before submit
   
   - [X] I had searched in the [issues](https://github.com/apache/hugegraph-toolchain/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](https://github.com/apache/incubator-hugegraph-ai/assets/13795366/d0fff7bc-0993-48d5-be74-c49251103513)
   
   
   # Solution:
   ![result](https://github.com/apache/incubator-hugegraph-ai/assets/13795366/d74049c9-339a-4ad7-b662-a888a7c636a0)
   
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Question] Build local development environment [incubator-hugegraph-ai]

Posted by "JackyYangPassion (via GitHub)" <gi...@apache.org>.
JackyYangPassion commented on issue #11:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/11#issuecomment-3336677152

   ```
   ✅ 在 PyCharm 中配置 HugeGraph 项目的环境
   
   打开项目
   在 PyCharm 里打开 incubator-hugegraph-ai 这个目录。
   
   选择解释器 (Interpreter)
   
   打开 Preferences (⌘, 或 File → Settings)
   
   找到 Project → Python Interpreter
   
   点击右上角齿轮 ⚙️ → Add Interpreter
   
   选择 Add Local Interpreter → Existing Environment
   
   指定到你之前用 uv 创建的虚拟环境:
   
   /完整路径/incubator-hugegraph-ai/.venv/bin/python
   
   
   点击 OK,等待 PyCharm 加载依赖。
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Question] Build local development environment [incubator-hugegraph-ai]

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #11: [Question] Build local development environment
URL: https://github.com/apache/incubator-hugegraph-ai/issues/11


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Question] Build local development environment [incubator-hugegraph-ai]

Posted by "simon824 (via GitHub)" <gi...@apache.org>.
simon824 commented on issue #11:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/11#issuecomment-1776396048

   has been fix in #17 
   <img width="371" alt="image" src="https://github.com/apache/incubator-hugegraph-ai/assets/18065113/2b79027c-370f-4966-8479-3a02523f3b5e">
   or we can set env like: 
   `export PYTHONPATH=$(pwd)/hugegraph-llm/src:$(pwd)/hugegraph-ml/src:$(pwd)/hugegraph-python-client/src`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org