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

Can you please replace the natural language processing library #156

Open
LGlassySky opened this issue Jun 6, 2023 · 2 comments
Open

Can you please replace the natural language processing library #156

LGlassySky opened this issue Jun 6, 2023 · 2 comments

Comments

@LGlassySky
Copy link

For natural language processing, the PATTERN library only supports Python 3.6. Can we switch to the spaCy library to support the latest Python?

@ThereforeGames
Copy link
Owner

Hi @LGlassySky,

I am able to run NLP features such as [autocorrect] that rely on the Pattern library in Python v3.10:

image

Is there a particular shortcode that's giving you trouble?

@LGlassySky
Copy link
Author

Hi @LGlassySky,

I am able to run NLP features such as that rely on the Pattern library in Python v3.10:[autocorrect]

image

Is there a particular shortcode that's giving you trouble?

Hi @ThereforeGames ,

Here is my running environment:
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.3.2

The following error occurs every time I start the webui,
Installing requirements for Unprompted - natural language processing: pattern@git+https://github.com/NicolasBizzozzero/pattern
Couldn't install requirements for Unprompted - natural language processing: pattern@git+https://github.com/NicolasBizzozzero/pattern.
Command: "D:\sd-webui-aki-v4\py310\python.exe" -m pip install pattern@git+https://github.com/NicolasBizzozzero/pattern --prefer-binary --index-url https://mirror.baidu.com/pypi/simple
Error code: 1
stdout: Looking in indexes: https://mirror.baidu.com/pypi/simple, https://mirrors.aliyun.com/pypi/simple
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting pattern@ git+https://github.com/NicolasBizzozzero/pattern
Cloning https://github.com/NicolasBizzozzero/pattern to c:\users\glassysky\appdata\local\temp\pip-install-xkbl3e6z\pattern_f5c1bf01315546c88915a8c12e953754
Resolved https://github.com/NicolasBizzozzero/pattern to commit 66ab34453a3443c06a4ebda092c8d1947c83b17a
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'

stderr: Running command git clone --filter=blob:none --quiet https://github.com/NicolasBizzozzero/pattern 'C:\Users\Glassysky\AppData\Local\Temp\pip-install-xkbl3e6z\pattern_f5c1bf01315546c88915a8c12e953754'
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Glassysky\AppData\Local\Temp\pip-install-xkbl3e6z\pattern_f5c1bf01315546c88915a8c12e953754\setup.py", line 12, in
from pattern import version
ImportError: cannot import name 'version' from 'pattern' (D:\sd-webui-aki-v4\py310\lib\site-packages\pattern_init_.py)
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(ERROR) Failed to install pattern@git+https://github.com/NicolasBizzozzero/pattern dependency for Unprompted - natural language processing functions may not work
Installing requirements for Unprompted - [img2pez]: sentence-transformers
Installing requirements for Unprompted - [pix2pix_zero]: salesforce-lavis
Installing requirements for Unprompted - [zoom_enhance]: color-matcher
image
image

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