Closed dheavy closed 6 months ago
LGTM !
I see the root cause. Can you just add OS = "windows" between line 50 and 51? See that there is a case problem?
Ah! Saw it! Thanks. Ensuring in the fix that the returned value is always deterministic (lower case).
Not sure how this got past me on the original commit. Thank you for your work on this!
No worries! My pleasure!
Note I have purposely not applied linter's results to this PR because it would apply to many unrelated changes. I believe it should be done in a different PR.
Great catch @dheavy, and thanks for assisting @TashaSkyUp!
I have a similar error message:
UnboundLocalError: local variable 'asset_url' referenced before assignment
OS Details:
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
What OS are you using? and hardware architecture? looks like maybe linux? Have you pulled down the changes on main?
Thanks for the fast response. I wrote the OS details in the previous comment. The last pull fix these problem, thanks, but now I have other. Let me check if maybe these errors are already reported...
@hpsaturn if you know how can you run this in python for me and share the results?
OS = platform.system().lower()
ARCH = platform.machine()
print(OS,ARCH)
#!/bin/python
import platform
OS = platform.system().lower()
ARCH = platform.machine()
print(OS,ARCH)
Output:
linux x86_64
Problem
Fixes the following error occurring when installing Piper TTS:
It constantly happens on macOS, preventing first run of the
poetry run 01 --local
command. It is seems to be happening on Windows as well (see https://github.com/OpenInterpreter/01/issues/167#issuecomment-2024628495).Solution
Setting the
asset_url
variable before using it.How To Test
poetry run 01 --local
from thesoftware
directory.Discussion
Fix from #170 seemingly created a small regression by setting the value for
asset_url
in a Windows-only code-block.