Closed ex-nerd closed 5 years ago
Hi,
Thanks for pointing this out. The data directory should already be created since it's part of the repo with an empty init.py file in it. What's the relative path of the data directory relative to OSGenome root that you're manually creating the directory in?
I was in the OSGenome
root, which is what the instructions seem to imply. Maybe os.chdir
isn't getting called at the right place to put the script's execution state into the right directory?
Ah, I believe the script anticipates that the code is being run from within the SNPedia directory. I'll have to modify the code to check what directory it's in. Let me know if running it from within the SNPedia directory fixes the issue.
That makes sense. However, the README
instructions suggest running it from the top level. Either way, it would be nice to fix, especially if you ever intend to package this up so that it can be installed with pip and run from anywhere.
I just fixed it. Let me know how it works.
Hi Downloaded this today and I got the same error. Doing a quick creation of the data file in the top level fixed the issue. SNPedia/DataCrawler.py
fails to create data
directory
Great project, thanks!
When running the first step, it complains about a missing file/directory:
Everything works fine if I manually run
mkdir data
first.