#๐Ÿ”’ a small path error

22 messages ยท Page 1 of 1 (latest)

shell riverBOT
#

@ornate cobalt

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.

fluid heath
#

your file simply does not contain that table

stoic sandal
#

what does the error have to do with the string you're using to name the db file?

#

I think you're confusing "sqlite cannot find the database" with "sqlite cannot find the table within the database"

#

perhaps you have two different databases, with very similar names, and one has the table and the other doesn't.

fluid heath
#

Use a SQLite executable

stoic sandal
#

your python code uses a relative path, which is always confusing

#

dunno what "on the repo" means here

#

change your python code to use an absolute path, then let's see where we are

timid sonnet
#

can you check if your database contains the table

stoic sandal
#

I have no idea what github has to do with your problem

timid sonnet
#

that's a different table

#

there's no table named v1_tokens in your database

#

change the name then

#

now what

#

does the code run?

#

before moving forward, I want to ask if this is your code and if you know what you are trying to do

regal oar
#

Your question doesn't make sense. The error isn't on opening the database, so your path is right - it's on trying to access a table in the database.

#

If it works locally, perhaps you didn't push the latest version of your database to github, and so the table isn't there?

ornate cobalt
#

!close

shell riverBOT
#
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.