Giter Club home page Giter Club logo

Comments (3)

sparkyfen avatar sparkyfen commented on May 28, 2024

Figured out where it's coming from.

$ node
> var dblite = require('dblite')
undefined
> dblite.bin = "./bin/sqlite3/sqlite3";
'./bin/sqlite3/sqlite3'
> var db = dblite('./lib/database/mcjs.sqlite');
undefined
> Error: near "-": syntax error

bye bye

Edit: Looks to be from when you call dblite() as I tested it with another DB. Possibly an issue with the dependency? I upgraded to dblite 0.3.6 with no luck.

from mediacenterjs.

sparkyfen avatar sparkyfen commented on May 28, 2024

Root cause of issue:
sqlite3 binary was of a different architecture than my machine.
Downloading the binary from http://www.sqlite.org/download.html and then replacing the file in the ./bin/sqlite3/ folder fixed the error.

Maybe consider a way to check and get the right binary for the right architecture.

from mediacenterjs.

jansmolders86 avatar jansmolders86 commented on May 28, 2024

Great find! I don't have a mac so to be honest I did not test it properly on a Mac.
both the FFMPEG and SQLITE binaries should be included for MAC.

When the backend code has been refactored (Hoffi is doing that right now), I'll add a check to see if you are using a MAC. If so, the correct binaries will be used. I've added this on the Trello to do list

Thanks again for the find!

from mediacenterjs.

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.