-
Notifications
You must be signed in to change notification settings - Fork 122
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
Error: Could not import the 'talkinghead' module. #148
Comments
Python version? |
I followed this installation guide: https://docs.sillytavern.app/extras/installation/ So python 3.11 |
And what is your operating system? Could you specify which requirement files you used exactly? |
I'm using Arch Linux. |
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: |
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:
|
The log implies that you are not running it with Python 3.11. (First line and this part: |
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).
|
Try updating gcc-libs package with pacman. Or do a complete system update if possible. |
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) |
I found this: rstudio/reticulate#1282 (comment) |
Now crashes with this:
I tried replacing with the symbolic link and also tried with the file the system link points to, same result. |
Sorry, out of ideas for now, I don't have a broad Linux (or Arch specifically) knowledge to propose anything else. |
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:
|
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 |
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:
|
I did pip install wxPython, is not enough? |
It installed fine |
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 |
it shows: 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... |
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. |
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... |
@RBNXI, you might not have the requirements installed, I had same issue and figured it out here: Line 183 in 0d73db9
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) |
Excellent tip, mine was missing 'matplotlib' |
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 And I installed all the requirements from requirements-complete, so I don't think it's a problem with python requirements. |
Reinstalled multiple times and installed all requirements, when trying to run it says:
Same with CPU mode
The text was updated successfully, but these errors were encountered: