Code Monkey home page Code Monkey logo

Comments (3)

tomaarsen avatar tomaarsen commented on July 19, 2024

@mangojuice0 I suspect you are using an older version with a database format that the bot didn't expect.
It tried to update the database to the newest version, which failed, because the original database didn't contain a MarkovStartA table. During the updating process, a new database called "MarkovChain_yabbe_modified.db" will be made, which you can safely delete.

Now, I'm not quite sure which database version you are using. In order to find out, I'd like to ask you to execute the following:

[sic]\TwitchMarkovChain> python
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect("MarkovChain_yabbe.db")    
>>> cursor = conn.cursor()
>>> cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")   
<sqlite3.Cursor object at 0x000002409EBB2EA0>
>>> cursor.fetchall()

In short, this imports sqlite3, which can interact with the database table. Then we create a connection to your database, and we grab a cursor on which we can execute SQL. The SQL query finds all tables, and the last command should output a list of tables. Could you create a comment with this list?

from twitchmarkovchain.

mangojuice0 avatar mangojuice0 commented on July 19, 2024

It works now. What I did is I downloaded the 1.0 version and made it generate a MarkovChain.db file which i then copied to the 2.1 version. It then automatically updated the database to the newer version.

from twitchmarkovchain.

tomaarsen avatar tomaarsen commented on July 19, 2024

Wonderful! Glad to hear that it works now.

from twitchmarkovchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.