Create database #11
Labels
No Label
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DHBW/GuessThePrice#11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Can you explane please how to create a database for this bot?
When i try to start the bot i receive the same error every time:
I have never seen anything like that before.
Which command did you use to start this application? Which database?
Maybe you have to set the environment variables correctly
The database should be created automatically at startup
Did you run the db.py file before running the bot script ? I think that might be a reason
Since the db file is imported in the bot.py file you do not have to run it seperately
nevermind, true
In the .env file I have to replace the database setting data with the one I should create, right?
I create an environment, activate it and install the requirements, then in theory I manually add the key of my bot in the .env file but I do not replace the database data because I have not created any.
I launch the script with python source / bot.py but I get the above error ...
i may look at it tonight or tomorrow to find out what the problem is.
Until then you can use the docker image.
Build the image using
docker build .
I have updated our README.
Hope the new documentation helps to deploy this telegram bot.
For further questions/problems just contact us
@junkscript did you try it just with the mysql DATABASE_CONNECTION or also with the SQLite ?
Hello @FlorianKellermann and @H4CK3R-01,
i solved this problem eliminating
?check_same_thread=False
from line 6 on .env file.I created a mysql database by hand and linked it to the .env file because the script was unable to do it by itself, I deleted the reference to check_same_thread and everything worked.
There are also other errors, if you want I can continue to report them.
Nice to know that it's working now.
There is one known issue: We are using Gecko and Mozilla Firefox to load data from Amazon. In the Docker image it is working but we have never tested the non docker version of that.
If you have other errors, feel free to report them 😄