#๐Ÿ”’ beginner needs help with QR code generator

89 messages ยท Page 1 of 1 (latest)

signal kilnBOT
#

@fathom wedge

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.

fathom wedge
#

idk why it gives me error

fringe charm
#

oh I totally didn't notice you already made a thread ๐Ÿ˜ญ

fathom wedge
#

is my pc broken or something cuz I followed the tutorial step by step after it didn't work for the first and second try

#

and then it still doesn't work so I am kinda cooked rn

fringe charm
#

have you activated your virtual environment? I can't remember if the windows shell puts a little '(venv)' before the terminal prompt

fathom wedge
#

I know lua so I learn python really fast

fathom wedge
#

but I figured it out

#

and activated it with powershell

#

cuz it wasn't working with normal terminals

#

visual code told me to get this thing

#

and I tried and it worked

fringe charm
#

it looks like the requirements of your package aren't installed for some reason

#

have a look inside the 'Lib' folder of your virtual environment

fathom wedge
#

I am really new to python

fringe charm
#

that's okay

fathom wedge
#

I am a complete idiot ngl so I have no clue what's going on

#

just an idiot for python tho

#

yet

fringe charm
#

since PIL is in there I imagine that your virtual environment hasn't been activated properly

fringe charm
#

I'm unsure how it works on windows but try typing in '.\venv\bin\Activate.ps1' into the terminal

fathom wedge
fringe charm
#

oh yeah like that

#

ignore what I just said

fathom wedge
#

I have to activate bin?

#

ok

#

no problem

#

why does terminal works now lol

fringe charm
#

no since you've got the '(venv)' thing at the start of your prompt it should be okayy

fathom wedge
#

I did that in terminal and it worked

fringe charm
#

your program runs now?

fathom wedge
#

ok so I just run the script?

#

or I run it with terminal

#

OHHH

fringe charm
#

uhh were you pressing the run button before?

fathom wedge
#

I have to run it from the terminal I think

#

like this

#

let me try again

#

I never tried running it from the termnial

fringe charm
#

I just noticed that your qrcodegenerator.py file is in the same directory as the virtual environment. Generally we keep source files outside of the virtual environment

fathom wedge
#

IT WORKED

#

I LOVE U

#

TY

fringe charm
#

nice

fathom wedge
#

yay

#

ignore the fact that its not an image

#

idc since it didn't give me an error

fringe charm
fathom wedge
#

YOO coding is so cool

#

do you know lua?

#

I started with lua

#

I made a whole rpg game

#

roblox lua

#

lol

#

do you know why it didn't make it a image file tho?

fringe charm
prisma roost
fringe charm
fathom wedge
#

so what do I have to type

#

with this code

fringe charm
#

oops I replied to the wrong message...

fathom wedge
fringe charm
fathom wedge
#

oh ye I'm dumb

#

๐Ÿ’€

#

or jpg

fringe charm
#

I don't know if that library infers the file type of your image

fathom wedge
#

mb I'm actually dumb hahaha

#

I was too happy with the fact that I got no error

#

it worked

#

ty so much guys

#

lemme scan it rq lol

#

ty @fringe charm

signal kilnBOT
#
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.

#

๐Ÿ”’ beginner needs help with QR code generator