#๐Ÿ”’ WhisperX update left me clueless

59 messages ยท Page 1 of 1 (latest)

dense rampart
#

Hello, sorry for making a post for what might be a pretty small issue, but I am a very amateurish programmer who just wants to use WhisperX.

Since its update to v3.3.4, it's been given this warning whenever installing the stable version + ffmpeg + py7zr WARNING: Error parsing requirements for numpy: [Errno 2] No such file or directory: '/opt/conda/lib/python3.10/site-packages/numpy-1.26.4.dist-info/METADATA' WARNING: Error parsing requirements for pandas: [Errno 2] No such file or directory: '/opt/conda/lib/python3.10/site-packages/pandas-2.2.2.dist-info/METADATA'along with a lot of dependency errors ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. cudf 24.8.2 requires cubinlinker, which is not installed. cudf 24.8.2 requires cupy-cuda11x>=12.0.0, which is not installed. cudf 24.8.2 requires ptxcompiler, which is not installed. cuml 24.8.0 requires cupy-cuda11x>=12.0.0, which is not installed. dask-cudf 24.8.2 requires cupy-cuda11x>=12.0.0, which is not installed. ucxx 0.39.1 requires libucx>=1.15.0, which is not installed.
If I try to force update it, it gives me this error
ERROR: Cannot uninstall numpy 1.26.4, RECORD file not found. You might be able to recover from this via: 'pip install --force-reinstall --no-deps numpy==1.26.4'.
Trying to actually run WhisperX returns this error RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): operator torchvision::nms does not exist (if necessary, I can provide the script, however it seems like that is not the issue)
I tried restarting the kernel and installing previous versions of torch and numpy, tried force reinstalling numpy with no deps, but nothing seems to be working and chatGPT is of no help either.
Any advice?

true yarrowBOT
#

@dense rampart

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

rough quartz
#

hm interesting

#

so you're using conda

#

Since its update to v3.3.4, So how did you actually upgrade?

dense rampart
#

yeah I think, I'm also using a cloud IDE if that makes a difference

dense rampart
rough quartz
#

this is random but try upgrading pip

#

pip3 install --upgrade pip

#

should be something like this

#

are you using um jupyter?

#

I've never used conda before, so I'm not super sure how it comes into play here

#

I would almost be inclined to start from scratch. Maybe start a new venv and pip install WhisperX there. It should install all dependencies to the new environment again

#

i'm looking at the whisperx github page and they recommend installation through pip anyway

dense rampart
#

oh, I think it might be working

rough quartz
#

oh yeah?

#

what did you end up doing?

dense rampart
#

upgraded pip from 24.0 to 25.1
still got some dependency errors

#

one sec, will keep you updated

#

nevermind. It's still telling me to reinstall numpy after restarting the kernel

dense rampart
#

I'm probably doing something incredibly stupid without noticing

rough quartz
#

no i dont think it's you

#

what a mess

#

are you able to pip uninstall it?

#

this might work

dense rampart
dense rampart
#

ok I'm at a loss. Managed to reinstall a prev version of numpy through the console, tried latest version again
still getting runtime error

Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject```
#

I'd better just downgrade whisperX and hope for the best

rough quartz
#

The solution on SO is to downgrade the python version

#

sorry

#

the um numpy version

#

It's an incompatability between numpy and pandas apparently

#

can you confirm what versions you have right now

#

pip list

#

you can also try pip check to check compatabilities

#

It might be that updating numpy requires also updating the other packages

dense rampart
rough quartz
#

what about pip check

dense rampart
#

yeah, numpy is downgraded to 1.26.4. Though I think installing whisoerX automatically requires the latest package

rough quartz
#

Yeah it probably just installs whatever is listed in requirements.txt. You can change that manually

#

(look up to see its traceback): Does it show a traceback above that error?

dense rampart
# rough quartz what about pip check
cudf 24.8.2 requires cupy-cuda11x, which is not installed.
cudf 24.8.2 requires ptxcompiler, which is not installed.
cuml 24.8.0 requires cupy-cuda11x, which is not installed.
dask-cudf 24.8.2 requires cupy-cuda11x, which is not installed.
ucxx 0.39.1 requires libucx, which is not installed.``` and a bunch of other stuff that exceed the word limit
rough quartz
#

I mentioned pandas, it might actually be transformers library from the error

dense rampart
#

this is before installing whisperx again though

#

which shouldn't be a factor..I think

rough quartz
#

what happens if you pip install whisperx

rough quartz
dense rampart
true yarrowBOT
dense rampart
#

huh, numpy stayed downgraded to 1.26.4

dense rampart
true yarrowBOT
dense rampart
#

looks like a giant mess

dense rampart
#

it really does seem to not be a numpy version issue though

true yarrowBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.