flut1 / discogs-data-tools Goto Github PK
View Code? Open in Web Editor NEWA collection of utils to manage Discogs monthly data dumps
A collection of utils to manage Discogs monthly data dumps
when trying to run the mongo tool processing fails with the following output on all 4 targets. I think it is probably a dependency problem or maybe a change in the actual xml files from the dumps. I have spent a few hours trying to pinpoint it but i am not a java script guy so do not really know where to start. Also i am not clear if after the dumps are done if there is some preprocessing that must be done before trying to import into the mongo db. So far on my end; updated npm and node.js to most recent versions installed discogs-data-tools and any dependancies asked for, ran the fetcher to retrieve the latest discogs dumps , lastly try to import into mongo with this command :
discogs-data-tools mongo --latest --connection mongodb://USER:[email protected]:27017 --data-dir F:/DataBase/Discogs-Data_flut1_tools/data/ .... with some variations for testing ..the error returned is consistent for all 4 dumps ( same error )
*************** COMMAND OUTPUT *********************
Latest version is "20211201"
node --trace-warnings ...
to show where the warning was created)TypeError: Cannot destructure property 'entry' of 'documents[e.index]' as it is undefined.
at processEntries (C:\Users\USER\AppData\Roaming\npm\node_modules\discogs-data-tools\cli\mongo.js:255:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
***************** END OUTPUT *****************************
so again i am not sure what is failing here but this would be a handy as heck tool if it was working ...
or if there is some preprocessing or unpacking that needs done the documentation needs updated to reflect that .
I should mention also there seems to be some issues in npm with this tool too here is the output from npm install -g discogs-data-tools
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
changed 192 packages, and audited 193 packages in 17s
11 packages are looking for funding
run npm fund
for details
8 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit
for details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.