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

How to Run update needed: Installation requires no white spaces in Python installation directory or Windows username #39

Open
Wisdawn opened this issue Jun 20, 2023 · 0 comments

Comments

@Wisdawn
Copy link

Wisdawn commented Jun 20, 2023

Many non-programmers use oobabooga's text-generation-webui and your long_term_memory extension for writing fiction, text-roleplaying, and similar hobbies. So, despite this potentially being already well-known for most programmers and specialists, many of the fiction writers may not be aware that Step 3 in your "How to Run" section may fail when attempted in the textgen conda environment via conda activate textgen simply because their Windows username has a white space! Like "John Smith" instead of "John.Smith" or "JohnSmith." And Python installs some of its directories and files in the C:\Users\John Smith\ path.

I have confirmed this because I just finished a rather complex process of changing my Windows username to one without spaces on the whole system, including the Windows registry (if anyone comes across this, the most tedious step is replacing all instances in the registry, so with Computer in the Registry Editor selected, File -> Export two .reg files, keep one as back up, and use Replace within a text editor on the other to replace all instances of the old name with the new space-free one).

Only after I changed my username to a single word, I was able to do Step 3 of How to Run without issues, pip install -r extensions/long_term_memory/requirements.txt within the textgen conda environment. Please note that I was able to do the aforementioned pip install outside the textgen conda environment, but that prevented the extension from working once text-generation-webui was shut down once and launched later.

It took me ages to find all this out, especially that the space in my Windows username is a major reason I wasn't able to correctly install or run this great extension. So, I thought it may help others a lot if you add a short note in Step 3 letting readers know that they most probably will have problems installing the extension within the textgen conda environment if they have a space in their Windows username and, by proxy, in some of their installed Python directories and files.

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

1 participant