Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] raise partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' when call interface upload_file #591

Closed
hzg0601 opened this issue Jun 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hzg0601
Copy link
Collaborator

hzg0601 commented Jun 10, 2023

问题描述 / Problem Description

在环境中按照默认的requirements.txt安装依赖后,发起api.py服务,在调用upload_file接口时,上传.md文件,抛出如下错误:
partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)

@hzg0601 hzg0601 added the bug Something isn't working label Jun 10, 2023
@hzg0601
Copy link
Collaborator Author

hzg0601 commented Jun 10, 2023

这是由于 charset_normalizer模块版本过高导致的,需要降低低charset_normalizer的版本,测试在charset_normalizer==2.1.0上可用。

@leoterry-ulrica
Copy link

leoterry-ulrica commented Nov 17, 2023

这是由于 charset_normalizer模块版本过高导致的,需要降低低charset_normalizer的版本,测试在charset_normalizer==2.1.0上可用。

没能解决,我需要升级才能解决:pip install --force-reinstall charset-normalizer==3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants