guaka / mediawikixml2meteor2phonegap

Turn MediaWiki XML dumps into a Phonegap app, through Meteor
http://wiki.yt/
Other
9 stars 1 forks source link

xml2json installation issue #23

Closed guaka closed 11 years ago

guaka commented 11 years ago

@MrTweek: I try to play around with your meteor-stuff, but I couldn't really get it running. I tried this on 2 machines that didn't have any meteor/node/npm/coffeescript running before.

The meteor app is running, but I can't convert the xml dump to json.

What I did:

However, when I run your xml2json.coffee, I am getting these errors: $ ./xml2json.coffee Error: Cannot find module '../build/Release/node_expat.node'

[some more backtrace...]

I tried installing node-expat and xml2json via apt-get, but no difference.

One thing I found strange: in node_modules/ there is only xml2json, while node-expat is in node_modules/xml2json/node_modules/node-expat

PhilGruber commented 11 years ago

I kind of got it running by patching node_expat.js. I changed var expat = require('../build/Release/node_expat.node'); to var expat = require('node-expat');

Doesn't look like the right way to do it, but for now it works.

guaka commented 11 years ago

Could be good to look into package.json. Current version is just an attempt at learning more about this file :)

PhilGruber commented 11 years ago

Ok, finally it works properly. Naively, I installed node.js, npm and coffeescript from the ubuntu-repository. They hopelessly outdated. I removed them and installed everything manually and that solved all problems.