#๐Ÿ”’ Numpy Error When Running Repo Code

58 messages ยท Page 1 of 1 (latest)

rain grotto
coarse ventureBOT
#

@rain grotto

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.

mint delta
#
File "D:\Real Time Voice Clone\beatrice_trainer_webui\venv\Lib\site-packages\numpy_init__.py", line 411, in _getattr
raise AttributeError(
AttributeError: np.NaN was removed in the NumPy 2.0 release. Use np.nan instead.. Did you mean: 'nan'?
#

this is a different error than the one you mentioned.

rain grotto
#

OK, well, I don't know what that error is either.

mint delta
#

did you read it?

rain grotto
#

Yes, I don't know what it means

#

Do I have to replace that code in some line?

slim shuttle
#

np.NaN was removed, change your code to use np.nan instead.

rain grotto
#

It isn't my code

#

It's a repo

slim shuttle
#

Oh thatโ€™s not your repo?

#

Then youโ€™ll have to change their code

rain grotto
#

No. I am trying to run it.

mint delta
#

you cloned the repo didn't you?
you can change the code in the repo and reinstall.

slim shuttle
#

Or install older numpy

rain grotto
#

I tried that

#

I downgraded to numpy 1.24.1...error persisted

slim shuttle
#

That error?
Or the other error?

mint delta
rain grotto
#

Let me look

mint delta
#

you probably downgraded in the global while the batch file uses a venv...

rain grotto
#

pip install --upgrade numpy==1.10.1

#

I think I was in the venv

#

maybe not...how do I activate the venv?

#

NVM, I remembered ho

#

now I've downgraded in the venv

mint delta
rain grotto
#

I just did it, so I am in it

mint delta
rain grotto
#

nope

mint delta
#

you'll have to expand, we can't read minds.

rain grotto
#

same error

#

I did .\venv\Scripts\activate.bat

#

in the venv did pip install --upgrade numpy==1.10.1

mint delta
#

run pip list

rain grotto
#

then ran the repo from inside the venv....same error

mint delta
#

what error?

rain grotto
#

run p[ip list....where do I run that?

#

The error I posted in the link

#

There's an error when trying to downgrade numpy

mint delta
#

ok, in the terminal, with the venv active, run

#

pip uninstall numpy && pip install distutils numpy==1.10.1

rain grotto
#

ERROR: Could not find a version that satisfies the requirement distutils (from versions: none)
ERROR: No matching distribution found for distutils

#

although it did show that numpy 2.0.2 was uninstalled

mint delta
#

what do you get with pip install numpy==1.26.4?

rain grotto
#

it is doing something...no error yet

#

it shows successfully installed numpy 1.26.4

#

now shall I try running the repo?

mint delta
#

yes.

rain grotto
#

Looks like it runs

#

thanks for the help

mint delta
#

np

coarse ventureBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.