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

Elevenlabs API issue? #13

Closed
ComradeKooruchan opened this issue Aug 20, 2023 · 3 comments
Closed

Elevenlabs API issue? #13

ComradeKooruchan opened this issue Aug 20, 2023 · 3 comments

Comments

@ComradeKooruchan
Copy link

ComradeKooruchan commented Aug 20, 2023

Tried to install but console keeps crashing, got this in my log file

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
D:\Waifu-master\venv\Scripts\python.exe: No module named playwright
DEPRECATION: unidic-lite is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: jieba is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: gruut-lang-fr is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: gruut-lang-es is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: gruut-lang-en is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: gruut-lang-de is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: bnunicodenormalizer is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: bnnumerizer is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: gruut-ipa is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: audioread is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: pyvts is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Traceback (most recent call last):
File "D:\Waifu-master\main.py", line 4, in
import utils.Elevenlabs
File "D:\Waifu-master\utils\Elevenlabs.py", line 9, in
ELEVENLABS_API=set_api_key(KEY)
File "D:\Waifu-master\venv\lib\site-packages\elevenlabs\simple.py", line 10, in set_api_key
os.environ["ELEVEN_API_KEY"] = api_key
File "C:\Python310\lib\os.py", line 685, in setitem
value = self.encodevalue(value)
File "C:\Python310\lib\os.py", line 743, in check_str
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not NoneType

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Running command git clone --filter=blob:none --quiet https://github.com/openai/whisper.git 'C:\Users\kaj7\AppData\Local\Temp\pip-req-build-c7wty_4y'

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Traceback (most recent call last):
File "D:\Waifu-master\main.py", line 4, in
import utils.Elevenlabs
File "D:\Waifu-master\utils\Elevenlabs.py", line 9, in
ELEVENLABS_API=set_api_key(KEY)
File "D:\Waifu-master\venv\lib\site-packages\elevenlabs\simple.py", line 10, in set_api_key
os.environ["ELEVEN_API_KEY"] = api_key
File "C:\Python310\lib\os.py", line 685, in setitem
value = self.encodevalue(value)
File "C:\Python310\lib\os.py", line 743, in check_str
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not NoneType

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Running command git clone --filter=blob:none --quiet https://github.com/openai/whisper.git 'C:\Users\kaj7\AppData\Local\Temp\pip-req-build-r2zrpbct'

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Traceback (most recent call last):
File "D:\Waifu-master\main.py", line 4, in
import utils.Elevenlabs
File "D:\Waifu-master\utils\Elevenlabs.py", line 9, in
ELEVENLABS_API=set_api_key(KEY)
File "D:\Waifu-master\venv\lib\site-packages\elevenlabs\simple.py", line 10, in set_api_key
os.environ["ELEVEN_API_KEY"] = api_key
File "C:\Python310\lib\os.py", line 685, in setitem
value = self.encodevalue(value)
File "C:\Python310\lib\os.py", line 743, in check_str
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not NoneType

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Running command git clone --filter=blob:none --quiet https://github.com/openai/whisper.git 'C:\Users\kaj7\AppData\Local\Temp\pip-req-build-iapa0y9c'

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Traceback (most recent call last):
File "D:\Waifu-master\main.py", line 4, in
import utils.Elevenlabs
File "D:\Waifu-master\utils\Elevenlabs.py", line 9, in
ELEVENLABS_API=set_api_key(KEY)
File "D:\Waifu-master\venv\lib\site-packages\elevenlabs\simple.py", line 10, in set_api_key
os.environ["ELEVEN_API_KEY"] = api_key
File "C:\Python310\lib\os.py", line 685, in setitem
value = self.encodevalue(value)
File "C:\Python310\lib\os.py", line 743, in check_str
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not NoneType

any help would be greatly appreciated!

@TumblerWarren
Copy link
Owner

Did you change the format of the .env file from text to all types then saved it?

Cause on downloading it will be downloaded in .txt format. You have to resave the file by naming it as .env and select the format to all types.

@ComradeKooruchan
Copy link
Author

That worked, however it's now crashing after mic input

@ComradeKooruchan
Copy link
Author

Nvmd, figured it out

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