mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-10-15 18:11:52 +00:00
[GH-ISSUE #148] Error: Could not import the 'talkinghead' module. #82
Labels
No labels
bug
duplicate
planned
pull-request
under consideration
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Extras#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xNissX233 on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/148
Reinstalled multiple times and installed all requirements, when trying to run it says:
Same with CPU mode
@Cohee1207 commented on GitHub (Sep 5, 2023):
Python version?
@xNissX233 commented on GitHub (Sep 5, 2023):
I followed this installation guide: https://docs.sillytavern.app/extras/installation/
So python 3.11
@Cohee1207 commented on GitHub (Sep 5, 2023):
And what is your operating system? Could you specify which requirement files you used exactly?
@xNissX233 commented on GitHub (Sep 5, 2023):
I'm using Arch Linux.
The requirement files is this one: https://github.com/SillyTavern/SillyTavern-Extras/blob/main/requirements-complete.txt
@Cohee1207 commented on GitHub (Sep 5, 2023):
Thank you for the clarification. wxpython is not automatically installed in Linux because it fails to install on colab but is needed to run this module. Please run this in your conda env:
pip install wxpython==4.2.1@xNissX233 commented on GitHub (Sep 5, 2023):
after successfully installing it, I run extras with the module activated and now it crashes with this error:
Trying to run it with only the talkinghead module, gives this other error:
@Cohee1207 commented on GitHub (Sep 5, 2023):
The log implies that you are not running it with Python 3.11. (First line and this part:
installer_files/env/lib/python3.10).I highly encourage you not to mix the Extras files with oobabooga files, Please put the installation folder somewhere, there could be conflicts between them that are hard to catch.
@xNissX233 commented on GitHub (Sep 5, 2023):
That's true, for this try I tried with the old installation and that's why, my bad. I didn't know the old installation had an old python version (this installation was not used in my other tries, just this one because I was lazy to reinstall again).
I reinstalled again and now it crashes with this error:
@Cohee1207 commented on GitHub (Sep 5, 2023):
Try updating gcc-libs package with pacman. Or do a complete system update if possible.
@xNissX233 commented on GitHub (Sep 5, 2023):
I did a full update and remains the same (there was no gcc-libs updates available, I updated the last time yesterday so it's expected)
@Cohee1207 commented on GitHub (Sep 5, 2023):
I found this: https://github.com/rstudio/reticulate/issues/1282#issuecomment-1272473007
This is for a different program, but outlines the potential solutions pretty nicely. I would try option 3 with replacing this library
/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/miniconda/envs/extras/bin/../lib/libstdc++.so.6with a symbolic link to your system libstdc++.so.6, which usually resides inusr/lib/x86_64-linux-gnu/libstdc++.so.6@xNissX233 commented on GitHub (Sep 5, 2023):
Now crashes with this:
I tried replacing with the symbolic link and also tried with the file the system link points to, same result.
@Cohee1207 commented on GitHub (Sep 6, 2023):
Sorry, out of ideas for now, I don't have a broad Linux (or Arch specifically) knowledge to propose anything else.
@Ph0rk0z commented on GitHub (Sep 6, 2023):
I have no problem with venv shared with textgen or python 3.10. Hardest part was installing wxpython because it needed gnome development libraries. I think I had to compile it from scratch.
op has broken libs: https://stackoverflow.com/questions/76902771/pacman-symbol-lookup-error-usr-lib-libcurl-so-4-undefined-symbol-libssh2-se
@xNissX233 commented on GitHub (Sep 7, 2023):
The problem was that I didn't set the correct path of the folder. Now I got it running but still throws an error when trying to load the default page:
@xNissX233 commented on GitHub (Sep 7, 2023):
I checked the md5sum of my file and it's the same as the one in the official Arch repos, so I don't think I have broken libs
Also I get this if I run in the correct path:
I'm in the path of the server.py file, all requirements installed and still could not import module
@Ph0rk0z commented on GitHub (Sep 7, 2023):
You have to run the "app.py" python separately. It didn't auto start it for me. I usually run it first. For some reason on one of them, the eyes blink but the mouth doesn't move. There aren't a lot of chars with expressions that worked for me yet. I think I'll have to generate some and matte them.
@xNissX233 commented on GitHub (Sep 7, 2023):
what app.py do you mean? the one in talkinghead/tha3/app/? If I run it (from extras folder, conda environment active) it crashes with:
@Ph0rk0z commented on GitHub (Sep 7, 2023):
Then you still didn't properly install wxpython. It was kind hard like I said, had to do it from source.
@xNissX233 commented on GitHub (Sep 7, 2023):
I did pip install wxPython, is not enough?
@Ph0rk0z commented on GitHub (Sep 7, 2023):
Did it install or fail? It failed on me with that command until I installed a bunch of libs. Ended up compiling it.
https://stackoverflow.com/questions/8609666/python-importerror-no-module-named-wx
@xNissX233 commented on GitHub (Sep 7, 2023):
It installed fine
@Ph0rk0z commented on GitHub (Sep 7, 2023):
Its not importing so it couldn't have or it went in wrong venv.
@xNissX233 commented on GitHub (Sep 7, 2023):
Well I know it couldn't import... but now I don't know why it could be, there's no other output apart from that one, and I didn't make the mistakes I made with the other errors, I don't know what I'm doing wrong now, everything else works perfectly
@Ph0rk0z commented on GitHub (Sep 7, 2023):
does it show up when you pip list?
You can always do: https://aur.archlinux.org/packages/python-wxpython-git
@xNissX233 commented on GitHub (Sep 7, 2023):
it shows:
wxPython 4.2.1
Maybe the version is not correct? Also depending on the directory I run from, I sometimes get this:
I think it's the same error I got in RVC, but that one got solved with the correct cd, but this one won't...
@xNissX233 commented on GitHub (Sep 7, 2023):
So if I run it normally I get this:
And the problem could be the version of that library, so I try replacing with my library which is the correct version and then get this other error:
And trying to replace more libraries doesn't change anything anymore.
And trying to run app.py has other errors...
Is this absolutely only my fault? no one else has this errors?
@Ph0rk0z commented on GitHub (Sep 8, 2023):
I had problems with wxpython like you but I googled them all and fixed it. What I do different is I have an nvidia conda environment with latest torch and not 50 venv for each project. Super rare that requirements are actually those versions for a reason. Some of these repos want you to install torch 1.0.x like a crazy person.
You have to investigate why curl is broken.. my guess is when you fix the glib for WX it's different from the one curl was compiled for. These are total arch problems which is why when I installed my ML server I was like arch, fuck no. Went with mint to have some stability in libraries.
I think your fastest fix is to put glib back how it was and compile wx from source instead of using the pip package.
@xNissX233 commented on GitHub (Sep 15, 2023):
Update: After a lot of updates on Arch this days and reinstalling extras, the error is exactly the same. I think that this is not an Arch problem but a problem with this program itself...
@Ph0rk0z commented on GitHub (Sep 15, 2023):
Well.. if you think so. It runs on my machine.
@Meamzy commented on GitHub (Oct 3, 2023):
@RBNXI, you might not have the requirements installed, I had same issue and figured it out here:
github.com/SillyTavern/SillyTavern-Extras@0d73db91e7/server.py (L183)Basically if there are modules not found (no matter which module) this will return you
So I did:
And found out I didn't have some modules installed, such as 'scipy", so I went to the requirements-complete and installed it from there. (had to skip a couple of failing ones)
@Aliceinchainsaw commented on GitHub (Oct 20, 2023):
Excellent tip, mine was missing 'matplotlib'
@xNissX233 commented on GitHub (Oct 20, 2023):
As I sad in my last comment, I don't have the "Could not import the 'talkinghead' module." error anymore. Running server.py crashes with
ImportError: /run/media/ruben/Prime/CharacterAI/SillyTavern-extras/miniconda/envs/extras/bin/../lib/libstdc++.so.6: version GLIBCXX_3.4.32 not found (required by /run/media/ruben/Prime/CharacterAI/SillyTavern-extras/miniconda/envs/extras/lib/python3.11/site-packages/wx/_core.cpython-311-x86_64-linux-gnu.so)And I installed all the requirements from requirements-complete, so I don't think it's a problem with python requirements.