Open nwtn opened 10 years ago
Hi!
The files are not downloaded by default, so the first time you run the script the download flag needs to be provided:
$ ./searchthemcp.py --download
Does that help?
It helps, but still results in an error. This time it looks like it's breaking while trying to create the data directory:
dnewton@newtron ~/Sites/searchthemcp-master 👍 ./searchthemcp.py --download
Traceback (most recent call last):
File "./searchthemcp.py", line 178, in <module>
createFiles(update_source_files=args.download, sql_files_max_size=args.maxsqlsize)
File "./searchthemcp.py", line 127, in createFiles
parser.updateMCPFiles()
File "/Users/dnewton/Sites/searchthemcp-master/mcparser.py", line 176, in updateMCPFiles
os.mkdir(MCPFILESDIR)
OSError: [Errno 2] No such file or directory: '/Users/dnewton/Sites/searchthemcp-master/data/mcp'
dnewton@newtron ~/Sites/searchthemcp-master
If I create the directories manually, though, it works! Thanks for the help.
Good!
I should probably make the script more friendly by asking to download them if they don't exist.
Hey, I'm having trouble getting this going. It looks like the files aren't being saved, and then an error is being thrown when the script tries to read the files that aren't there:
Any ideas?
Thanks!