#๐Ÿ”’ hi i need help with my code

97 messages ยท Page 1 of 1 (latest)

worn cosmosBOT
#

@shadow comet

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.

shadow comet
#

hello

#

Traceback (most recent call last):
File "C:\Users\Desktop\main.py", line 24, in <module>
from utils.checks import getConfig, updateConfig, staff_only
ModuleNotFoundError: No module named 'utils.checks'

i get this error

inland veldt
#

give the file structure

shadow comet
#

sorry

#

this?

solar crane
#

preferably expanded like this if youre in an IDE

shadow comet
#

uh

solar crane
#

which i do see you have vscode open so just give us this part of vscode

shadow comet
#

dont have it expanded

#

yo i wont lie

#

idk how to see that

solar crane
#

theres a file button on the top left of your vscode that shows it

inland veldt
#

I think you ain't running your code in correct location: You run main.py in Desktop while the explorer screen isn't in Desktop

solar crane
inland veldt
#

and the one on VSCode ain't even the same project

inland veldt
inland veldt
shadow comet
#

@solar crane

solar crane
shadow comet
#

how do i fix that

#

im running it from my folder thats on the desktop

solar crane
#

run main.py from within vscode and see if it works first. vscode should run it from the right place

shadow comet
#

how do i run it

#

in vscode

solar crane
#

the play button on the top right

#

(while the file is open in vscode)

shadow comet
#

it said this

#

@solar crane

solar crane
#

just gonna put this here for others

shadow comet
shadow comet
solar crane
#

probably not youre problem but it does cause problems. microsoft python isnt the python you want to be using

shadow comet
#

ok ill change it later

#

can we fix this somehow though it shows a new error

#

now

old imp
shadow comet
solar crane
#

i saw it too XD

#

it looks like you need to install the dependencies first

#

do you know how to use pip?

shadow comet
#

where do i do that

#

yes i do

#

pip install

#

rihgt

#

ok i dont think i do

solar crane
#

is this from a github? if so i can i have the link?

shadow comet
#

what the bot?

#

it isnt from github

solar crane
#

who made it?

shadow comet
#

it works for someone else

#

the guy that made it is offline

shadow comet
#

it worked for him

#

without any problems

solar crane
#

ok, so i dont see a requirements file which means we dont know everything it needs

shadow comet
#

yes

#

thats what i was saying

#

theres no requirements file

solar crane
#

i know you need to do pip install discord but other than that its a trial and error

shadow comet
#

i also installed utils

solar crane
shadow comet
#

idk

solar crane
#

you werent supposed to do that

shadow comet
#

wdym

#

it asked me to

solar crane
#

utils is a folder included in that package

shadow comet
#

it was saying module 'utils' not found

#

?

solar crane
#

its a local module not a pip install

#

but it shouldnt matter at least

shadow comet
#

so

#

let me try

#

anyway

#

re-try

#

how do i deinstall

#

utils

#

pip

solar crane
#

pip uninstall utils

shadow comet
solar crane
#

but dont run it

shadow comet
#

I MADE IT WOKR

#

[i think]

#

ok i made it work

#

i need 1 usd to test

#

close it

worn cosmosBOT
#
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.