Is this safe to install?

I had a problem in the past with getting error from calibre informing me that there are multipler versions on a library on my system and that it was broken. I guess it was becuase I installed some python packages via pip. Not I need to install something which is not in the repo and is python and I am worried to make the same simtake again. How can I be sure that installing this https://github.com/openai/whisper is not going to cause problems in the future?

There’s an AUR package:

https://aur.archlinux.org/packages/whisper-git

1 Like

The calibre in the official Arch repo is not broken. I’ve been using it all this while without any issues.

Perhaps you could be a little more specific with regards to what those errors are?

Bad idea unless you use a virtual environment.

You can be sure by: A) finding a version of it on the AUR and then installing the AUR version; or B) creating a virtual environment, and then use pip to install it in the virtual environment you created.

I am not saying the package is broken, I am saying it was broken on my system because of something on my system. You helped me on that issue if you recall.

Thank you, I search it in there and got no results, don’t know why https://archlinux.org/packages/?sort=&q=whisper&maintainer=&flagged=

1 Like

You don’t have to search it; @Stagger_Lee gave you the link already.

What I meant is that I was searching for it before ask about it here and could not find it.

You can search for AUR packages with the yay command, which is better because yay treats your search expression as regular expressions—meaning, you will get matches for packages with the exact name but also the ones whose names and package descriptions contain the search phrase.

$ yay -Ss whisper

I did that too, that is why I am surprised. I think it showed up in the yay search and I didn’t noticed. I was looking for something with open ai somewhere in it I suppose. It is good that I is available to. I think I need to resize my root partition in the future. The package is 6GB installed. Is it safe to do this? I have done it before but not on Linux. Should I worry it gets into trouble with fstab or something? I am going to boot from USB to do that. that much I know.

Resizing partitions is generally very safe to do. How easy it is or how much time the operation will take depends on how your partitions are organized; if there is a partition that is right beside your root partition, then the system will have to move all the contents of the neighboring partition elsewhere in order to give up the space to your root partition.

Yup. The live environment has Gparted installed, so you can do it.

You don’t have to worry about fstab unless you:

  1. change the filesystem of a partition
  2. merge two partitions into one

If you are only resizing, the partitioning tool (assuming it is sane), will not alter the parameters (UUID, etc) that are already inside your fstab when you first installed your system.

1 Like

That being said, it is generally good practice to backup all your data before performing any operations that involve reorganizing your entire disk.

Thanks , yeah I am just resizing to give some more room in root for installed apps. I think giving it 100G maybe be better. They say the default should be 30G, but some packages like this whisper package or latex are going to need a lot of space.

I am using timeshift and I backup my /home directory daily. the only worrisome thing in my current system is that timeshift still stores the snapshots on the same hard drive. I can’t use it automatics feature if I use a different drive so that is the only iffy part of it.

How much storage do you have in total? 256 GB, maybe, if it’s a laptop? It also depends on how you are planning to use your system. If you have a lot of personal data (music, videos, documents, etc.), then you might wanna leave more space for your home. If you are planning to install a lot of stuff, then leave more space for your root.

Although most people would recommend just putting your /home and / in the same partition.

I am good on storage, for now, It is a 1T drive unfortunately it is HDD tho, so in the future I am add a m.2 SSD for the root.

I think separating / and /home is for just mounting the old /home in a new install easily. I have not done such a thing yet so I am not how useful it is. I is just something I went by at the time of installing my OS.

Installed it and it is not working, not sure what is the issue:

❯ whisper 02.mp3 -o test
Traceback (most recent call last):
  File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/usr/lib/python3.10/http/client.py", line 1454, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/whisper", line 33, in <module>
    sys.exit(load_entry_point('whisper==1.0', 'console_scripts', 'whisper')())
  File "/usr/lib/python3.10/site-packages/whisper/transcribe.py", line 304, in cli
    model = load_model(model_name, device=device, download_root=model_dir)
  File "/usr/lib/python3.10/site-packages/whisper/__init__.py", line 102, in load_model
    checkpoint_file = _download(_MODELS[name], download_root, in_memory)
  File "/usr/lib/python3.10/site-packages/whisper/__init__.py", line 49, in _download
    with urllib.request.urlopen(url) as source, open(download_target, "wb") as output:
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>

This is a Python exception. It usually occurs when connection is broken before the client manages to receive the data it is supposed to receive from the server. This could be caused by many things:

  1. Something is wrong with the server
  2. Connectivity issues.
  3. Bug in whisper

There is nothing you can do in scenario 1 and 3. For scenario 2, you should check your internet connection. Also, are you using a firewall?

No I have not messed with my network settings at all. I was suspecting that too, but my internet is fine, I also tried to use tor in case it is something related to my ISP. I thought whisper is supposed to work offline tho so I am not sure why it should use internet in the first place. That is why I suspect maybe the install is broken and the error maybe is misleading.

I might take a look at whisper’s source code later when I have time.

1 Like

Let me know if you found something. It is a super useful program so knowing more about it is not going to be waste of time.