-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loader.py won't bulkload on my computer #106
Comments
Quick sanity check: What's your OS and Python version? |
More sanity checking... I'm assuming you have the app running on |
Just pulled latest from master and I can reproduce. @tucotuco: Bump.. |
OS: MacOS X 10.6.8 Nope, I don't have the app running at all - I was hoping for some sort of "could not connect to the server" message. I just tried it again with the app on; I got exactly the same result I reported above. Yep, I'm on the latest code: @60bad99afb5e. |
With the latest commit @1bb1404 you can run it via |
Almost there. In @1bb1404 things are working except for that missing |
Confirmed. jetz and iucn loading to local App Engine and maintaining On Thu, Aug 25, 2011 at 10:58 PM, eightysteele
|
Closing issue, pending feedback from @gaurav. |
Works for me! Thanks for fixing this! |
As of @60bad99afb5, my
loader.py
has two problems I can't figure out:Running
python loader.py
(orpython loader.py --url=http://localhost:8080/_ah/remote_api --config_file=bulkload.yaml
) exits prematurely with the following error:INFO:root:All collection metadata saved to collection.csv.txt
INFO:root:Collections in jetz: ['birds']
INFO:root:Processing 1 layers in the birds collection
INFO:root:Extracting DBF fields from abeillia_abeillei.shp
INFO:root:All collection metadata saved to collection.csv.txt
Traceback (most recent call last):
File "loader.py", line 265, in
main()
File "loader.py", line 242, in main
filename = os.path.abspath('%s/%s/collection.csv.txt' % (sd, coll_dir))
NameError: global name 'coll_dir' is not defined
coll_dir
in only defined inside thefor collection in config.collections():
loop on line 101, so I think maybe the chunk of code referring tocoll_dir
might have fallen out of the loop at some point.python loader.py -s iucn
, the program exits without any error messages, but also without attempting bulkloading of the processed data (it appears to write the collection metadata tocollection.csv.txt
and exit). Runningpython loader.py --url=http://localhost:8080/_ah/remote_api --config_file=bulkload.yaml -s iucn
produces exactly the same result. I'm not sure why it isn't attempting to bulkload the data.Can anybody else reproduce this on their computers, or have I messed something up on my end?
The text was updated successfully, but these errors were encountered: