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

Cannot create characters in textgen. #60

Open
crabdancing opened this issue Oct 29, 2023 · 2 comments
Open

Cannot create characters in textgen. #60

crabdancing opened this issue Oct 29, 2023 · 2 comments

Comments

@crabdancing
Copy link

crabdancing commented Oct 29, 2023

When running textgen-nvidia as of 7b9730e, and attempting to add a new character via Parameters -> Character:

FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/ypar8406iyb6r22n755ygvfbplwjs050-textgen-patchedSrc/nix/store/ypar8406iyb6r22n755ygvfbplwjs050-textgen-patchedSrc/characters/TestCharacter.yaml'

Where TestCharacter is the name of the character created through the UI wizard.

Needless to say, it probably is not supposed to be trying to write to the nix store, so, bug? :P

@MatthewCroughan
Copy link
Member

Textgen upstream can only run inside of the same directory as the source code. To fix that, I made a bunch of symlinks which trick it into redirecting those state folders to ~/.textgen, though I haven't completely fixed it, as you've figured out. When it says it's writing to the Nix Store, this is fine, because the directory in the Nix Store that it's writing to is actually a symlink to ~/.textgen

@crabdancing
Copy link
Author

Ah, that explains some of the weird symlink-ridden shell scripts I saw on my last skim through. But how are you dealing with the fact that ~/.textgen expands to multiple paths depending on which user is running it?

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