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

没有看到lxml的用处 #12

Open
toyo2333 opened this issue Dec 30, 2023 · 1 comment
Open

没有看到lxml的用处 #12

toyo2333 opened this issue Dec 30, 2023 · 1 comment

Comments

@toyo2333
Copy link

早上也遇到了依赖库的问题。但我把这个库的安装注释掉了。也能正常工作。

请问哪里用到了这个库的功能么?

@rcy1314
Copy link
Owner

rcy1314 commented Dec 30, 2023

因为运行有报错才加的,报错时报的构建lxml包时出现问题,在工作流中,我加的一些依赖是为方便切换不同翻译py文件而存在,换而言之,它针对的不是一个my-mtranslate.py的处理,所以可能有些依赖不是必须的,如果有的依赖去掉也能正常运行的话去掉即可,在这里lxml包作用是提供对XML和HTML的处理功能,而报错的libxml2和libxslt提供了对解析和操作XML和XSLT的支持问题,之前运行没有报错过,可能跟上游包更新有关,最后不必完全和示例中的工作流代码一样,可以根据自己的需要改动即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants