meta-generating error

March 28, 2024, 20:53

interr_

Hi, Sorry for the trouble, but I would highly appreciate if you could resolve this issue. So it all started when I just set up my raspi, and I also had a camera module, so I tried to test it using this repo: https://github.com/washieuanan/Raspberry-Pi-Emotion-Recognition. However, after the kind help of one of the mods, we seemed to be getting this issue: "metadata-generation-failed", we tried a reboot and everything but it still won't work. This was after using a venv because, when we ran the command pip install -r requirements.txt, we got the following error:. I would really appreciate help because this is urgent. Thanks!!

k9t33n

Could you show me that scrolled up pic again actually?

interr_

which one

interr_

1 or 2

k9t33n

Both

interr_



interr_

here you go

k9t33n

No not that

interr_

should i send a vid?

interr_

just scrolling?

k9t33n


k9t33n


k9t33n

Same pic?

k9t33n

Although bad picture it's useful

interr_

i think so

k9t33n

Actually could you copy and paste in the entire error for me?

interr_

sure

dl4xt

I still think

dl4xt

You need to do sudo

dl4xt

But idrc what you guys are talking about

interr_

i think i need to do the command again

interr_

im sorry give me a sec

k9t33n

Ohh that might help

dl4xt

Yea

dl4xt

Ofc it does

interr_

what is sudo ahha?

k9t33n

Wouldn't that put it out the venv tho?

dl4xt

Same command

dl4xt

Just add "sudo"

dl4xt

At the beginning

k9t33n

Sudo means substitute user. It uses root for your command so you have ultimate power

interr_

ok

k9t33n

Yk how pi is your user? Root is another user, the ultimate user capable of everything - it's a security thing.

interr_

ahh i see

dl4xt

Fricking god

interr_

which command?

k9t33n

What?

dl4xt

The pip

interr_

sorry if im a bit slow, im new

dl4xt

The pip install ....

k9t33n

What's wrong tho?

dl4xt

It said

dl4xt

Externally managed environment

dl4xt

Wich means

k9t33n

Venv is open tho

dl4xt

It's not local on his user installed

dl4xt

Idk

dl4xt

Try it

dl4xt

With sudo

interr_

sorry which command?

interr_

do i put after sudo

k9t33n

The original one

interr_

this? python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements.txt

interr_

or the requirements one

k9t33n

The pip install -r requirements.txt

interr_

ok

dl4xt

Installed?

k9t33n

Oh sorry autocorrect

dl4xt

Yea

dl4xt

I thought that

k9t33n

Love dat horrible autocorrect

interr_


interr_

oh ok

interr_

i do install

k9t33n

Yea sorry about that

dl4xt

Yea

interr_


interr_

np man

interr_

here you go jan

k9t33n

Thought that might happen

dl4xt

Oh

k9t33n

We can try logging in to root and then trying venv

k9t33n

And then we don't need anymore sudo

interr_

ok sure

k9t33n

One second I forgot how to actually do so

k9t33n

sudo -i if I remember correctly

interr_

ok

k9t33n

But let me double check that one

interr_

sure

k9t33n

Ah so close

k9t33n

sudo -s

interr_

ok ill try

k9t33n

Oh wait nvm I was right I think

k9t33n

One sites saying -s the others saying -i

interr_

oh ok

interr_

the one u just sent doesn't really do anything

dl4xt

<@1071178789939331253> how to get mod(fast)

interr_

ill try the one with i

k9t33n

No fast option

interr_

solve my issue jkjk

dl4xt

Jkjk

dl4xt

I was joking mate

k9t33n

Does sudo -i do it? It should replace raspberrypi with root

k9t33n

Nah that actually is how to get mod

k9t33n

Just get mod by helping people and earning respect from the current mods.

k9t33n

But it takes time

k9t33n

We don't add easily

dl4xt

Oh

interr_


k9t33n

Yup

k9t33n

I was right, Im so happy I remembered rn

k9t33n

Lol

interr_

YOO ur soo sick

interr_

lets go

interr_

did it work?

k9t33n

Anyway do the venv command

interr_

sure

k9t33n

Yes

dl4xt

Lol

dl4xt

Where's the difference between sudo su?

dl4xt

I'm curious now

k9t33n

Su you have to use password

dl4xt

Oh

dl4xt

Ok

k9t33n

Wed have to set it

k9t33n

It's weird we'd have to set password from outside of root and then use it to get in

interr_


interr_

oh

dl4xt

Wha

dl4xt

The

dl4xt

Root is gone

k9t33n

Ohh I know

dl4xt

And you need to copy the file

k9t33n

Oh yeah lol

interr_

yooo ur too sick

interr_

ur like a genius

interr_

or smth

k9t33n

Nah

dl4xt

Lol

k9t33n

It work?

dl4xt

No comment

k9t33n

Or you just said that randomly? 😂

interr_

nah it didn't

interr_

i just said it

interr_

cuz u said u knew

interr_

what to do

interr_

lol

dl4xt

I said that but ok

dl4xt

Lmfao

k9t33n

Yeah

k9t33n

Nah I'm better than u anyway

dl4xt

Yea ik

dl4xt

Wanna meet on a parking lot?

dl4xt

No weapons

k9t33n

Anyway for whatever reason you logged out of root

interr_

wait so what do i do now

dl4xt

/knfies

interr_

oh

k9t33n

Lol

interr_

lemme run the sudo command again then

dl4xt

Yea

k9t33n

You open a new terminal or something?

interr_

yh

k9t33n

That'd be it then

k9t33n

The way we logged into root doesn't stay between terminals

interr_


interr_

just says same error

k9t33n

Yeah

k9t33n

For a good reason

interr_

oh

interr_

ur too sickk

k9t33n

Because we just changed users we don't have that file copied over

interr_

i see

k9t33n

Nah stop flattering me 😂

interr_

lol

k9t33n

Uh what file destination would it be in again..

interr_

btw the deadline for this is 11:15 gmt lol

k9t33n

One second I'll be right back

interr_

sure

k9t33n

But they wont enforce you do it be exactly then right?

interr_

they would

interr_

my teachers suck

interr_

and if i don't do it im finished lol

interr_

its before 11:30PM max

k9t33n

Okay found it

interr_

ok

k9t33n

Should be cd /../home/pi

interr_

ill run it

interr_


k9t33n

Great

k9t33n

No run ls

interr_

ok

interr_


k9t33n

Great

k9t33n

Cd into the repository dir again

interr_

sure

k9t33n

cd [repository dir]

interr_


interr_

yo u still there lol

interr_

wait no take ur time

interr_

ill let u cook

k9t33n

Sorry I had to do something

k9t33n

Nice now start up your venv

interr_

nah its all good

interr_

ok

interr_

python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements.txt

interr_

this right?

k9t33n

Yes

interr_

its processing

interr_

mb for the title

k9t33n

<@661583386992836619> whilst your here watching from above, you have an opinion?

interr_


interr_

oh no

jannik44

about what

k9t33n

This

interr_

sorry for the name haha

k9t33n

And how to solve

interr_

im finished 😭

k9t33n

Hmm seems root did not fix

jannik44

sorry, i dont work with python so no idea

k9t33n

Done?

k9t33n

That's fine

interr_

yh the command is done

k9t33n

I still have another idea

interr_

YOOO

interr_

UR TOO SICK

interr_

lemme hear it

k9t33n

I mean are you done?

interr_

no no

interr_

im fullt determined

interr_

to use ur genius

k9t33n

We find the individual module that's causing the issue and we can install it individually and work from there

interr_

sure

k9t33n

Also run that current pip install command but change it to pip3

interr_

ok

k9t33n

That probs won't work

interr_

it wont let me copy and paste on this terminal

interr_

should i open a new one?

k9t33n

Preferably not

interr_


interr_

ok

interr_

ill try again on the other one

k9t33n

Wait

k9t33n

Select all of the command on this and use right click to copy

k9t33n

Then you can use right click to paste in the other one

interr_

oh shit

interr_

it doing smth

interr_

its like processing smth

k9t33n

It always did that didn't it?

interr_

nah the new terminal didnt

interr_


interr_

damn

k9t33n

Yeah that's because it isn't in a venv or in the repository

interr_

oh okay

k9t33n

Yeah thought so

interr_

any other ideas?

k9t33n

Did you copy and paste the entire error in before?

interr_

which one

k9t33n

Yeah we still got one last glimmer of hope

k9t33n

I mean error

k9t33n

The entire error

k9t33n

Paste it in

interr_

error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip.

k9t33n

That's not all of it

interr_

just comes like this

interr_

from where

interr_

do u want me to paste it

k9t33n

I mean show me all of it from where you entered the command to the end

k9t33n

Here or if it's too long use pastebin

interr_

okay sure

interr_

sry took a while to find the command

k9t33n

So it's numpy then

k9t33n

Stupid numpy, always a numpty 😂

k9t33n

Run pip3 install numpy now

interr_

YOO ur too sickkk

k9t33n

Did that work? Don't get your hopes up before failure

interr_

its installng now

interr_

sure

k9t33n

I can't guarantee success at any point

interr_

mhm

interr_

numpy just installed

k9t33n

Nice

k9t33n

Now try the requirements.txt pip install

interr_

okay

interr_

do i do pip 3

interr_

or normal

k9t33n

Pip3 because why not

interr_

sure

interr_

its installing

interr_

i think its working

interr_


interr_

nvm lol

interr_

should i send the whole error again

k9t33n

It hates us

interr_

fr

k9t33n

Nah ur fine

k9t33n

One second

interr_

sure

interr_

im sorry if this is taking up your time btw

dl4xt

Did you guys asked chat gpt before?

k9t33n

Nah it's no problem I enjoy this

k9t33n

No try it

interr_

great 🙂

dl4xt

I'm too lazy

interr_

i have no clue what to say to chatgpt, but if you could i would immensely appreciate it ^^

interr_

damn

interr_

alr

interr_

its fine

dl4xt

Just paste the error and look what happenes

k9t33n

Run python3 photoDriver.py --output [output_folder_name] now

interr_

ok

k9t33n

I'm gonna try another better AI service one second

dl4xt

Ok chill

interr_


interr_

thanks man ^^

k9t33n

I am

interr_

no the ^^ means like a happy face

dl4xt

The goat is goating rn

interr_

frfr

k9t33n

Oh we can play a game of chat and mouse then

interr_

should i paste error?

k9t33n

Basically run it each time and when it says no module named "so and so" well just pip install it

interr_

sure

interr_

makes sense

k9t33n

So pip install PIL

interr_

ok

k9t33n

Nice and easy game of cat and mouse

interr_


interr_

nah L raspi

interr_

it hates me i think

dl4xt

Well

dl4xt

Idk

dl4xt

At this point

interr_

nw

k9t33n

One second

interr_

yh for sure

k9t33n

https://pypi.org/project/PIL/#content PIL exists so I don't know why it's lying

interr_

is this how to install it?

interr_

the dude had the same error

dl4xt

It seems like you python version ain't compatible with pil or some shit

interr_

oh

interr_

idk what to do atp

dl4xt

But I really don't know

dl4xt

Cry

dl4xt

That's what I'd do

dl4xt

Jkjk

interr_

haha yh

dl4xt

Ask goat

interr_

nah I almost cried today because of this

interr_

what i shame i am

interr_

i will never do that again because of goat

dl4xt

I cried multiple times already cause of errors

dl4xt

Nw

interr_

tyty

k9t33n

https://phind.com says pip3 install --upgrade Cython

dl4xt

I'm fr bro

k9t33n

Crying is the first troubleshooting step.

dl4xt

Hm

interr_

fr haha

interr_

ill try the command now

dl4xt

Did you ever cry cause of an error? <@1071178789939331253>

interr_

it sucessfully installed

k9t33n

I've tried many times because of my pi and I'm not even lying, but that only makes success 10x better

interr_

r u guys uni students?

dl4xt

No

dl4xt

I'm 16

k9t33n

Remind me, did numpy install correctly before when we did pip3 install numpy

dl4xt

Lol

k9t33n

I'm 14 lol

interr_

WTF

interr_

im 16

interr_

asw

dl4xt

Nice

dl4xt

Another young one

interr_

yeah

interr_

i think so

k9t33n

Try it again now anyway

interr_

sure

interr_

yep its installed

interr_

r u guys from uk

k9t33n

I am, he's from Germany

interr_

u should compete in the informatics olympiad

k9t33n

Then do the requirements.txt one

interr_

ok

k9t33n

Lol 😂

k9t33n

Nah I not good enough yet

interr_

sry but your in year 10 or 11

k9t33n

Oops.se is competing for Sweden and im not winning against him

interr_

oh damnn

k9t33n

Neither, year 9.

dl4xt

Sweden hottest girls out there

dl4xt

🔥

interr_

damn

k9t33n

WOW

dl4xt

Ik

interr_


k9t33n

Ugh

k9t33n

Hmm

dl4xt

I'm very productive here I see

k9t33n

Run cat requirements.txt

interr_

ok

k9t33n

And paste the output here

interr_

ok

interr_

absl-py==0.9.0 astunparse==1.6.3 cachetools==4.1.1 certifi==2020.6.20 chardet==3.0.4 gast==0.3.3 google-auth==1.20.1 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 grpcio==1.31.0 h5py==2.10.0 idna==2.10 importlib-metadata==1.7.0 imutils==0.5.3 Keras-Preprocessing==1.1.2 Markdown==3.2.2 numpy==1.18.5 oauthlib==3.1.0 opt-einsum==3.3.0 Pillow==7.2.0 protobuf==3.12.4 pyasn1==0.4.8 pyasn1-modules==0.2.8 requests==2.24.0 requests-oauthlib==1.3.0 rsa==4.6 scipy==1.4.1 six==1.15.0 tensorboard==2.3.0 tensorboard-plugin-wit==1.7.0 tensorflow==2.3.0 tensorflow-estimator==2.3.0 termcolor==1.1.0 urllib3==1.25.10 Werkzeug==1.0.1 wincertstore==0.2 wrapt==1.12.1 zipp==3.1.0 (.venv) root@raspberrypi:/home/pi/Raspberry-Pi-Emotion-Recognition#

interr_

i think pillow is pil

interr_

btw

dl4xt

Well

dl4xt

It could be

dl4xt

That

k9t33n

Yeah try pip install pillow

interr_

ok

dl4xt

Some version ain't compatible with your python version I believe

interr_

sucessfully installled

k9t33n

We need to do a upgrade or downgrade?

k9t33n

Then try the other command with the cat and mouse chase

interr_

ok

dl4xt

Idk is there a tutorial for this

dl4xt

You are following

k9t33n

I know how to do it but which way should we go?

k9t33n

I say upgrade

dl4xt

We could track down the python version he's using on when the tutorial got released

interr_


dl4xt

imutils

k9t33n

Were getting somewhere

interr_

nice

k9t33n

the cat and mouse chase begins!

k9t33n

May take a while but just keep following it

interr_

hopefully done in one hour lol

interr_

sure

k9t33n

So pip install imutils

k9t33n

Nah it's just repetitive, the task it's self won't take that long but it sure is boring

interr_

it installed let me run command again

interr_


k9t33n

Uh

k9t33n

How do we do that

interr_

this may help

k9t33n

Try sudo apt-get install libopenblas-dev

interr_

ok

interr_

it says y/n

interr_

should i say y

k9t33n

Yes

interr_

yh its finished

k9t33n

One second

interr_

ok

k9t33n

This confusleing

interr_

oh

k9t33n

One second more

interr_

ill try pip install -r requirements.txt one more time

interr_

oh no the connectoin closed remotel

interr_

ok it connected again

k9t33n

Run pwd

interr_

ok

interr_


k9t33n

Which is not in the numpy source dir

interr_

Hi i thin i just downgrade

k9t33n

What?

interr_

how do i downgrade to 3.10.9

k9t33n

Why?

interr_

i saw another thing and it said it worked

interr_

if they downgraded

k9t33n

We can try it

interr_

okay how do i do it

k9t33n

First may you try just uninstalling and reinstall numpy?

k9t33n

pip uninstall numpy pip install numpy sudo apt install numpy try that

interr_

ok

k9t33n

Then if it doesn't work in the activation command we try messing with python versions

interr_


interr_

here

interr_

u still there?

k9t33n

Ok works well enough

k9t33n

Now run activation command

interr_

whats that sorry

interr_

im just tryna do this rn

interr_

python -m pip install sentence_transformers

interr_

im doing this

k9t33n

python3 photoDriver.py --output [output_folder_name]

interr_

ok

k9t33n

Then when that inevitably fails run just python and show me

k9t33n

So I can see current python version

interr_

it says no module named cv2

interr_

should i pip install it

k9t33n

yes that's more progress

interr_

installing opencv

interr_

now

k9t33n

Great

interr_

it still doesn't work

interr_

should i just pip install these

interr_

absl-py==0.9.0 astunparse==1.6.3 cachetools==4.1.1 certifi==2020.6.20 chardet==3.0.4 gast==0.3.3 google-auth==1.20.1 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 grpcio==1.31.0 h5py==2.10.0 idna==2.10 importlib-metadata==1.7.0 imutils==0.5.3 Keras-Preprocessing==1.1.2 Markdown==3.2.2 numpy==1.18.5 oauthlib==3.1.0 opt-einsum==3.3.0 Pillow==7.2.0 protobuf==3.12.4 pyasn1==0.4.8 pyasn1-modules==0.2.8 requests==2.24.0 requests-oauthlib==1.3.0 rsa==4.6 scipy==1.4.1 six==1.15.0 tensorboard==2.3.0 tensorboard-plugin-wit==1.7.0 tensorflow==2.3.0 tensorflow-estimator==2.3.0 termcolor==1.1.0 urllib3==1.25.10 Werkzeug==1.0.1 wincertstore==0.2 wrapt==1.12.1 zipp==3.1.0

interr_

manually

interr_

from the requirements

k9t33n

Sure

interr_

ok

k9t33n

Wait

k9t33n

Let me save u some time

interr_

ok

k9t33n

Start with oauthlib

interr_

and then?

k9t33n

Then continue on past that

k9t33n

Nothing before numpy since that's already done

interr_

oh so i just put oauthlib and then put the library?

interr_

im confused sorry

interr_

give me 10 mins ill just install all of these

k9t33n

what?

k9t33n

no i mean do pip install authlib first

interr_

ok

interr_

oauthlib or authlib

interr_

ohh

interr_

i see what you mean now

interr_

okay thanks

interr_

sry if its taking a while i am on termcolor now

k9t33n

np

interr_

ok

interr_

i installed all of them.

interr_

im gonna try the command now

interr_

damn it comes up with the no module named cv2 error again

k9t33n

hmm

k9t33n

one second a lot of ppl want me rn, let me sort them out real quick

interr_

sure

k9t33n

ok

k9t33n

is pip install cv2 succesfull?

interr_

nah

k9t33n

no module found?

interr_

yeah

k9t33n

run pip install opencv

interr_

i tried that already i think

interr_

i just tried pip install --upgrade opencv-python

interr_

i'll see if it works

interr_

yh it comes up with the same error

interr_

"subprocess-exited-with-error"

k9t33n

can i have the full error?

interr_

sure

interr_


k9t33n

scroll up a bit

interr_


interr_

here

k9t33n

little more

interr_

sure one sec

interr_


interr_

im gonna try ask chatgpt

k9t33n

now were getting into the deep errors

k9t33n

sure

k9t33n

out of all the errors these are the ones you dont wanna get

interr_

i see

interr_

okay yeah

interr_

chatgpt did not help

k9t33n

interr_

ok

k9t33n

im sorry but im going to sleep now

k9t33n

i dont know how to help for tonight so im just gonna re read everything and sleep on it

interr_

sure

interr_

thanks