OpenInterpreter / 01

The open-source language model computer
http://openinterpreter.com/01
GNU Affero General Public License v3.0
4.77k stars 472 forks source link

AttributeError: module 'os' has no attribute 'uname'. #145

Closed MartinMF closed 3 months ago

MartinMF commented 3 months ago

Running poetry run 01 --server --local results in the following error (on Windows):

(01) C:\Users\Martin\01\software>poetry run 01 --server --local

○

Starting...

▌ 01 is compatible with several local model providers.

[?] Which one would you like to use?:
 > Ollama
   LM Studio

5 Ollama models found. To download a new model, run ollama run <model-name>, then start a new 01 session.

For a full list of downloadable models, check out https://ollama.com/library

[?] Select a downloaded Ollama model:
   failed
   NAME
   custom_model_0
 > llama2
   mixtral

Using Ollama model: llama2

Exception in thread Thread-13 (run_until_complete):
Traceback (most recent call last):
  File "C:\Users\Martin\anaconda3\envs\01\Lib\threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "C:\Users\Martin\anaconda3\envs\01\Lib\threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Martin\anaconda3\envs\01\Lib\asyncio\base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\Martin\01\software\source\server\server.py", line 413, in main
    service_instance = ServiceClass(config)
                       ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Martin\01\software\source\server\services\tts\piper\tts.py", line 11, in __init__
    self.install(config["service_directory"])
  File "C:\Users\Martin\01\software\source\server\services\tts\piper\tts.py", line 37, in install
    OS = os.uname().sysname
         ^^^^^^^^
AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.