Open auxym opened 8 years ago
For what it's worth, I ran the script through autopep8 and 2to3 and tweaked some stuff, it seems to work fine on both python 2.7 and 3.4. Would you like me to submit a pull request? I'm also working on implementing fuzzy string matching (via fuzzywuzzy) and might be able to get it to run on windows. Let me know.
Bah, sorry, I've been flooded with notifications and missed this one. If you've still got it, I'd be happy to take a pull request. Fire away!
Sorry, I'm a bit busy right now to prepare a proper PR. However, you can check out my fork, I fixed a few bugs. It runs on python 3.4, but I think it still needs a tiny bit of work to run on python 2 with the same code.
Mostly, using io.open instead of plain open, as to have the same behavior on 2/3 (that is, read returns unicode objects). It could use OS default encoding by default and provide a CLI switch to force a specific encoding.
Also, I think you'd need only replace that path concatenation with os.path.join to provide full windows compatibility.
Last thing, my fork has a branch where I started working on fuzzy-matching journal names, it seems to work ok, probably needs some more testing.
Attemping install through pip3 yields
As a short term goal, perhaps incompatibility with python 3 might be made explicit?