Skip to content

how to import the third packages,ModuleNotFoundError: No module named 'pymysql' error: exit status 255 #8797

@tingaicompass

Description

@tingaicompass

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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.

Dify version

0.8.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1.First I went into the sanbox container and installed mysql
pip install pymysql

anyio              4.4.0
certifi            2024.8.30
charset-normalizer 3.3.2
exceptiongroup     1.2.2
h11                0.14.0
httpcore           1.0.5
httpx              0.27.2
idna               3.8
Jinja2             3.1.4
MarkupSafe         2.1.5
pip                23.0.1
PyMySQL            1.1.1
PySocks            1.7.1
requests           2.32.3
setuptools         65.5.1
sniffio            1.3.1
socksio            1.0.0
typing_extensions  4.12.2
urllib3            2.2.2
wheel              0.44.0

2.Entering python verifies that import pymysql is OK

3.But I went to the front-end page, used the code execution module, and reported an error:

No module named 'pymysql' error: exit status 255

✔️ Expected Behavior

How to solve please give me a detailed case

❌ Actual Behavior

No module named 'pymysql' error: exit status 255

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working🤔 cant-reproduceWe can not reproduce it or the information is limited

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions