madebyhiro / codem-transcode

Offline video transcoder written in node.js
Other
153 stars 68 forks source link

Cannot find module './dialects/undefined/connector-manager' #15

Closed ahmad closed 11 years ago

ahmad commented 11 years ago

Can someone assit me on this error I get when attempting to start ./codem-transcode

module.js:340 throw err; ^ Error: Cannot find module './dialects/undefined/connector-manager' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at new module.exports.Sequelize (/usr/local/share/npm/lib/node_modules/codem-transcode/node_modules/sequelize/lib/sequelize.js:81:28) at Object.JobUtils.getDatabase (/usr/local/share/npm/lib/node_modules/codem-transcode/lib/job.js:30:24) at Object. (/usr/local/share/npm/lib/node_modules/codem-transcode/lib/job.js:91:20) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32)

Thanks.

tieleman commented 11 years ago

Are you attempting to use MySQL or sqlite? In any case, make sure you have the necessary node modules installed for your particular flavour:

MySQL: npm install mysql (current version 2.0.0-alpha7)

tieleman commented 11 years ago

Ah, I've located the issue. It occurs when you do not specify your own config file but instead launch codem-transcode directly. I'll push a fix.

I do however recommend you specify your own config file unless you're absolutely sure you want to use the defaults.

tieleman commented 11 years ago

Fixed and pushed to npm. Thanks for reporting!

ahmad commented 11 years ago

Thank you for your help. It works when I specify my own config file.

Once again thanks.