r/pythonhelp • u/alurkymclurker • Jan 19 '19
Struggling to "fire" some python code from GitHub
I'm struggling to run some python code from GitHub. I've been writing my own very simple code but I'm nowhere near competent enough to see what I'm doing wrong with someone else's code.
I use the Spyder IDE through Anaconda and don't run code from the command prompt in Windows.
I'm trying to convert Charities Commission BCP files (contained within a Zip file) to CSV. There is Python code on Github to do exactly that here: https://github.com/ncvo/charity-commission-extract
The guide to the code says to run the command "python /path/to/script/import.py /path/to/download/zip/RegPlusExtract_February_2015.zip" at the command prompt (which I've tried and failed to do - assume as I only have the Anaconda / Spyder install).
I've opened import.py in the Spyder IDE and have import.py, bcp.py and the current, December extract all in the same folder. I assume that I can amend a line in import.py to point to the December extract but I can't see which one and now I'm stuck.
Any help very gratefully received.
2
u/ryanrocket Jan 19 '19
You cant run that command from the Windows command prompt because windows does not have a built in python module like linux does.
Moving on... i looked at the repo and it states in the README that you run import.py first inorder to configure the scripts... then run the bcp.py file. Make sure to edit the file path within the python script.