Inquire about the specific location or alternative solutions of the plugin development module #10692

Closed
opened 2026-02-21 18:49:59 -05:00 by yindo · 0 comments
Owner

Originally created by @xuchanghong170 on GitHub (Mar 12, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

plugin.py:

from dify_client.plugins import Plugin, ActionResponse

import psycopg2
from typing import Dict, Any, Optional

class PostgreSQLPlugin(Plugin):
     ...
(myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ python3 -c "from dify_client.plugins import Plugin; print(Plugin)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'dify_client.plugins'
(myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ python3 -c "from dify_client.plugins import Plugin; print(Plugin)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'dify_client.plugins'
(myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ ls -l $VIRTUAL_ENV/lib/python*/site-packages/dify_client
total 24
-rw-r--r-- 1 xch xch    72 Mar 13 02:05 __init__.py
drwxr-xr-x 2 xch xch  4096 Mar 13 02:05 __pycache__
-rw-r--r-- 1 xch xch 16043 Mar 13 02:05 client.py
(myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ python3 -c "import dify_client; print(dir(dify_client))"
['ChatClient', 'CompletionClient', 'DifyClient', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'client']

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @xuchanghong170 on GitHub (Mar 12, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. 1. plugin.py: ``` from dify_client.plugins import Plugin, ActionResponse import psycopg2 from typing import Dict, Any, Optional class PostgreSQLPlugin(Plugin): ... ``` 2. ``` (myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ python3 -c "from dify_client.plugins import Plugin; print(Plugin)" Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'dify_client.plugins' ``` 3. ``` (myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ python3 -c "from dify_client.plugins import Plugin; print(Plugin)" Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'dify_client.plugins' ``` 4. ``` (myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ ls -l $VIRTUAL_ENV/lib/python*/site-packages/dify_client total 24 -rw-r--r-- 1 xch xch 72 Mar 13 02:05 __init__.py drwxr-xr-x 2 xch xch 4096 Mar 13 02:05 __pycache__ -rw-r--r-- 1 xch xch 16043 Mar 13 02:05 client.py ``` 5. ``` (myenv) xch@XCH-XIAOXIN:~/software/dify/sdks/python-client$ python3 -c "import dify_client; print(dir(dify_client))" ['ChatClient', 'CompletionClient', 'DifyClient', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'client'] ``` ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 🌚 invalid label 2026-02-21 18:49:59 -05:00
yindo closed this issue 2026-02-21 18:49:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10692