Closed samford closed 9 years ago
Hey @samford.
Please compile the master branch using go version 1.4
. Don't use the binaries provided since the files you are using are of new format. So, stick with the master branch.
The 2 main problem you are having are:
desc
in doc.json
even if it is for url_use
. (readers
-> feed
in doc.json
is missing id
param)value
in the doc.json
after desc
key.There are 2 suggestions I am giving you based on your files:
import
as a class or function name since it is a keyword in pythonopml_upload
is okay.I was originally using Go 1.4 but I switched to 1.2 after running into trouble (just in case that was contributing to the issue). I switched back to using Go 1.4 and recompiled Alpaca, so I'm good there.
You have an excellent eye; those problems were exactly what was wrong. After I fixed those two issues Alpaca happily processed the files.
I appreciate your suggestions and I'll keep them in mind as I move forward with this. Thanks very much for your helpful response (and Alpaca).
I started working on some libraries for the NewsBlur API and decided to use Alpaca for this but for some reason I get a run-time error when I run it on my files (you can find the repo here). I looked through the example code in the README and set up my files similar to the examples in the examples folder.
When I run Alpaca on the Buffer and Helpful examples the various libraries are created fine so it's probably safe to assume that the issue is specifically related to my files. I've tried debugging it for a while but I can't see anything that would be causing the issue (but I may be blinded from having looked at this for so long).
For what it's worth, I'm using Go 1.2 (installed using GVM) on Mac OS X 10.10.3 and I installed Alpaca using the "by using golang (v1.2)" instructions in the README; I've also tried the provided i386 Darwin binary but it produces the same run-time error.
That having been said, here's the error I receive when running
alpaca .
in the directory:Let me know if you have any ideas in terms of troubleshooting the issue or if I've overlooked something in my formatting of the JSON files. Thanks!